Portal Home > Knowledgebase > Articles Database > will cgi、suphp affect the code running?


will cgi、suphp affect the code running?




Posted by joelin, 04-08-2008, 10:36 AM
HI, i have a server with whm/cpanel, i use the "Apache Update" to compile the php4、php5 of the server, and i set the "PHP 5 Handler" as cgi, some account tell me his php script can not login any more, i want to ask,if i changing to cgi will affect it? if yes, how can i solve it? thanks

Posted by whmcsguru, 04-08-2008, 04:43 PM
Suphp will, in fact, affect user scripts. I've seen it many, many times. From poor permissions (sometimes you need them, sadly, as developers aren't always thinking about security). Personally, I'd say remove suphp and use suhosin instead. Fewer affects, and the script seems to hold it's own as far as security is related.

Posted by Lightwave, 04-08-2008, 04:50 PM
Often problems with a php scripts not being able to login anymore, deal with the changes to the system not being able to save session data where the default location is. Check your php.ini for session.save_path = "/var/lib/php/session" and maybe change that to: session.save_path = "/tmp" or change permissions on above so it's writeable by users.

Posted by joelin, 04-08-2008, 10:04 PM
Hi,Lightwave, i put a customized php.ini in the folder of the account, and it looks likely solve the problem of the account. i doubt why the account can not work with login problem, but other websites(like vBulletin forum) do not take such problem. thanks



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read