News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

error after host moving,

Started by Alex' Manson, October 08, 2010, 04:38:06 AM

Previous topic - Next topic

Alex' Manson

okay , i got always errors saying that theres  --  php_sapi_name()  --          disabled
==>1859: 'is_cgi' => isset($_SERVER['SERVER_SOFTWARE']) && strpos(php_sapi_name(), 'cgi') !== false,
is the line in the error log,in load.php.. can i remove that so everything works without errors or is it necessary ? :o

heres the whole error.:
http://xxxxxxxxxen.org/index.php?action=admin;area=logs;sa=errorlog;desc;f16f4798=738aa92c1fd3064692be2679746d91192: php_sapi_name() has been disabled for security reasonsFile: /home/skandour/public_html/Sources/Load.php
Line: 1859

and
http://xxxxxxxxxxsxxxxxdex.php?action=enotify2: php_sapi_name() has been disabled for security reasonsFile: /home/skandour/public_html/Sources/Load.php
Line: 1859

actually in every page i visit these errors add..


so can i remove that line and nothing will be affected?

-Skander1345

Oya

no

that call is made for a reason
ask your host to re-enable php_sapi_name() or find another host; there's no security benefit to having it disabled and if you have a host that thinks its a good idea they're probably not that knowledgeable

Alex' Manson

okay, thanks, actually i just asked because i saw this before the code
// This determines the server... not used in many places, except for login fixing.

so i just though its not necessary :o
can you recommend me a better host? [FREE]

Oya

most free hosts are pretty poor, haven't seen a good one yet

Alex' Manson

my forum is actually working perfectly, just the errors on the logs are raising so fast 50000 per 30 mins.
and the host looks pretty cool

Oya

well it clearly isn't working perfectly if you're getting a couple of thousand errors a minute

no doubt your host will shut you down before long too

Advertisement: