my host cannot turn off the safe mode.
so i downloaded the cgi version, and followed
the directions according to the website.
however, safe-mode is still on.
/php-cgi is in the root, and has the gallery in it.
/cgi-bin, which was also in the root, has the php.cgi
/php-cgi, also has the.httacccess with the given instructions.
wha im a doing wrong?
Posts: 7994
Are you sure that your host is obeying .htaccess directives? Because without those, you won't be able to get this to work without assistance from your ISP.
Since this kind of thing varies wildly from ISP to ISP, you should probably contact them, show them what you've done and see if they can help.
-Bharat
Posts: 3
well should the binary be uploaded specifically to the
./configure --enable-force-cgi-redirect --disable-safe-mode --with-config-file-path=/usr/local/lib/php-cgi ?
or can i create a php-cgi in a /httpdocs folder in my domain?
just incase, how might i create my own binary? and how do i incorporate
./configure --enable-force-cgi-redirect --disable-safe-mode --with-config-file-path=/usr/local/lib/php-cgi into it?
Posts: 7994
You can put the binary anywhere you want on your system. The important thing is that you correctly specify the path to it in your .htaccess config. We put /usr/local/lib/php-cgi in the configuration instructions just to make sure that the path that we specify doesn't conflict with any existing paths that your ISP may have. That way it won't pick up the hosts's default php.ini and cause problems.
Creating your own binary is fairly straightforward. Download the PHP source code from their website (www.php.net) and follow their build instructions. Just use the configure line that we specify when you get to that stage of the process.
Posts: 3
the path that you specified must be created though, or does it already exist on the isp?
:oops:
do i go with the lastest version of php from them? its the windows binaries correct if im using windows? lol :oops:
about configuring the lines with the gallery, are you talking about this line?
./configure --enable-force-cgi-redirect --disable-safe-mode --with-config-file-path=/usr/local/lib/php-cgi
thanks for the help! im new to this
:grin:
Posts: 7994
No to both questions. The file does not need to exist.
You probably should be addressing these questions to the PHP community on php.net, not to us, since these are beginner questions about PHP and they have a lot more information about getting PHP installed.
You need to download the source code and then compile it on the same operating system that your server runs. If you find this confusing you really need to go to the PHP website and do a lot of reading.