GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Nov-2003, 10:00
fab13 fab13 is offline
New Member
 
Join Date: Nov 2003
Posts: 2
fab13 is an unknown quantity at this point

problem with php5 cgi installation


hi,

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
<Directory /var/www/cgi-php5>
Options +ExecCGI
</Directory>

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 81.49.2.159] Premature end of script headers:
/opt/php5/bin/php"

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
php).
  #2  
Old 18-Nov-2003, 10:25
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
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
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #3  
Old 18-Nov-2003, 17:47
fab13 fab13 is offline
New Member
 
Join Date: Nov 2003
Posts: 2
fab13 is an unknown quantity at this point
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 .
  #4  
Old 19-Nov-2003, 09:11
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
hmm..

you can try a snapshot.. http://snaps.php.net

or be on the safe side and install PHP4

PHP 5 just isn't ready yet
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
 
 

Recent GIDBlogGID Spam Detector 1.1.0 by gidnetwork

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem to access htdocs folders fraggle two Apache Web Server Forum 5 12-Nov-2003 00:40
Time Problem in Program MrSmiley C Programming Language 1 03-Nov-2003 12:00
unwanted scrollbar problem kelly001 Web Design Forum 3 24-Oct-2003 10:44
Geforce FX 5600 Ultra problem jenovasbirth Computer Hardware Forum 1 04-Oct-2003 17:00
client side problem zuzupus MySQL / PHP Forum 2 22-Jul-2003 06:47

Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 13:26.


vBulletin, Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.