problem with php5 cgi installation
i have a problem to install php5 beta as cgi.
after compiling ( ./configure --with-apxs --with-mysql
--prefix=/opt/php5 et make install), i add in my http.conf :
ScriptAlias /cgi-php5/ /opt/php5/bin/
AddHandler cgi-php5 .php5
Action cgi-php5 /cgi-php5/php
and i put my the file info.php5
( containing <?php phpinfo() ?>) in the directory /opt/php5/bin/
The problem is that if i don't give execute permssion to file info.php5, i have
the following message in my browser :
"You don't have permission to access /cgi-php5/info.php5 on this server"
and if i give execute permission to info.php5, i have an "internal server error" with
the message from /var/log/apache/error.log :
"[error] [client 188.8.131.52] Premature end of script headers:
if anybody could help me, i don't understand how the file info.php5 is passed
on to the binary /opt/php5/bin/php.(which is the cgi-script ?, info.php5 or the binary
have you tried running that script using the php-cli version? ( php info.php5 )
looking at the error message, there is something wrong with your PHP5 installation.
also, have you tried the PHP5 apache module and not the cgi?
never used the cgi version, but I got PHP5 running as module
i have tried the command line "./php info.php5" and it works.
if i try to load both php4 and php5 apache module (also, adding
"AddType application/x-httpd-php5 .php5" in http.conf) ,
i can't reach my site.
when i start apache, i have this message in /var/log/apache/error.log :
"PHP Warning: (null): Unable to initialize module
Module compiled with debug=0, thread-safety=0 module API=20020429
PHP compiled with debug=0, thread-safety=0 module API=20010901
These options need to match
in Unknown on line 0
[Wed Nov 19 02:30:48 2003] [info] mod_unique_id: using ip addr 127.0.0.1
[Wed Nov 19 02:30:49 2003] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/apache/share/magic"
i don't know what to do .
|Thread Tools||Search this Thread|
|Rate This Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|problem to access htdocs folders||fraggle two||Apache Web Server Forum||5||12-Nov-2003 01:40|
|Time Problem in Program||MrSmiley||C Programming Language||1||03-Nov-2003 13:00|
|unwanted scrollbar problem||kelly001||Web Design Forum||3||24-Oct-2003 11:44|
|Geforce FX 5600 Ultra problem||jenovasbirth||Computer Hardware Forum||1||04-Oct-2003 18:00|
|client side problem||zuzupus||MySQL / PHP Forum||2||22-Jul-2003 07:47|