safe-mode problems

fade

Joined: 2002-08-19
Posts: 3
Posted: Mon, 2002-08-19 17:23

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?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-08-19 18:16

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

 
fade

Joined: 2002-08-19
Posts: 3
Posted: Mon, 2002-08-19 18:39

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?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-08-19 18:57

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.

 
fade

Joined: 2002-08-19
Posts: 3
Posted: Mon, 2002-08-19 19:11
Quote:
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.

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:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2002-08-20 02:55
Quote:
the path that you specified must be created though, or does it already exist on the isp?
:oops:

No to both questions. The file does not need to exist.

Quote:
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:

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.