My ISP migrated my domain name to a different server and in this change they decided to enable Safe Mode = On. As you all probably know Gallery will not work in these conditions so I read through the FAQ and found out that I could install my own PHP binarie to solve this. I have downloaded the appropriate one. uploaded it to my cgi-bin. chmod'd it 755 and created the directory php-cgi. the only problem is it tells me to put it in my webservers "root" directory. I am confused if this is root as in next to the CGI-BIN. or the lowest level of publicly viewable html??
the faq is below:
2.3: How do I run Gallery using PHP as a CGI?
For those of you who's server runs in safe mode, you can still use Gallery. You need to install a cgi-bin version of PHP on your server and instruct Gallery to use that instead of the one that's built in to your webserver. Note that in order for this to work, your server must be configured to read your .htaccess files! Here are instructions:
Obtain a CGI version of PHP for your platform. Jesse Lambdin is graciously hosting a set of prebuilt binaries here. If you can't find a binary for your platform, you can compile it yourself. Configure PHP properly by running
./configure --enable-force-cgi-redirect --disable-safe-mode --with-config-file-path=/usr/local/lib/php-cgi
and then make. The resulting binary will be called php in the top level directory of the PHP source. Then please submit this binary back to Jesse Lambdin so that he can include it on his page.
Note: We specify the path to the PHP config file as /usr/local/lib/php-cgi so that all the binaries on Jesse's download page can be uniform and won't conflict with any other php.ini that your ISP might have. If you change this path but still want to donate your version of PHP to Jesse, please compile a version with the path specified as above and donate that one instead!
Upload the CGI version of PHP to /cgi-bin and call it php.cgi
chmod 755 /cgi-bin/php.cgi
Create a new directory in your webserver root called php-cgi and put gallery in that directory.
Create a new .htaccess file php-cgi directory (the one in your webserver root) and put the following lines in it:
AddType application/cgi-php php
Action application/cgi-php /cgi-bin/php.cgi
That's it. Now Gallery, and any other PHP app that you put in the cgi-php directory, should run using the CGI version of PHP. To make sure that you're running the CGI version, you can go to gallery/setup/phpinfo.php where you can see lots of info about PHP.
If anyone knows please help me out