Many hosts are running PHP as cgi. And now my host announced plans to do the same.
How will this effect me?
Do I need to do anything special?
Many hosts are running PHP as cgi. And now my host announced plans to do the same.
How will this effect me?
Do I need to do anything special?
once your host makes the switch you will need to set all folders to 755 ( this means the images folders and all )
and all files need to go to 644 ( exception are the 2 configure.php files these need to be at 444 )
thats it
what about httaccess?
you will need to remove alll php over rides from your htaccess and put them in a php.ini
i.e. ?
Merry Something
register_globals on
this would not be able to be in the htaccess
would need to go into a custom php.ini
Special, no, but you should verify your site is still functional. Unless your site is static HTML pages then odds are it is going to break if certain things are not done.
These type upgrades/changes require 4 things regarding Hosting accounts. Three have been mentioned already by Merlin and the 4rth one is 'nobody' files.
Many popular scripts such as Joomla and Mambo use files with Ownership of 'nobody' and running PHP as CGI does not allow that. As they are not owned by you, the Hosting account Owner, they cannot be changed by you. Only through a special script or by Server 'root' can Ownership be changed.
In my opinion as a Hoster, it would make no sense to switch PHP to run as CGI without also doing all 4 steps mentioned at the Server level, along with advising all Clients affected of the upcoming change. Leaving it up to the Hosting Clients is not right and is just going to make a lot of people upset; when they find their site no longer works and don't know how to correct. I can only presume your Hoster has advised of when the PHP change will be made and, hopefully, will be doing all necessary changes as well.
Last edited by Website Rob; 25 Dec 2008 at 08:35 PM.
Example of changes you could make after the PHP change, is with your .htaccess file.
## public_html/.htaccess
php_flag session.use_trans_sid off
php_value register_globals off
change to
## public_html/php.ini
session.use_trans_sid = off
register_globals = off
OK, I did a fresh install. But I have a problem.
I can login to admin.
But
I get 500 error on main page.
Is there something minor here? Or do I have to do some serious digging.
if you are getting a 500 error
1 owner and group are not set rignt ( call host )
2 you have a folder thats holding a php file in it set above 755 ( fix folder permissions
3 you have files that are set higher than 644 once again fix the permissions
Bookmarks