Apache 2.0.35 + PHP 5.8.0

Caporegime
Joined
18 Oct 2002
Posts
29,490
Location
Back in East London
Hello.. this is infact my first post in the Linux forum :)

I'm trying to run a PHP script on a Unix Web Server that's running Apache 2.0.35.

I have changed the DirectoryIndex to look for index.php, but it will not run it.

If I point my browser at the file it will open it and view the script, but it won't run it... has anyone got any ideas????

thanks a lot!!!
 
Permabanned
Joined
18 Oct 2002
Posts
2,010
Location
Huddersfield / Antartica
The line we need to add is this


Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


So press CTRL+W and type AddType to search for the relavant section

Then add the line, my AddType section looks like this:

Code:
#                                                                               
# AddType allows you to add to or override the MIME configuration               
# file mime.types for specific file types.                                      
#                                                                               
AddType application/x-tar .tgz                                                  
AddType application/x-httpd-php .php  
AddType application/x-httpd-php-source .phps

Taken from the Apache and PHP HOWTO written by me on this very forum

Shak
 
Caporegime
OP
Joined
18 Oct 2002
Posts
29,490
Location
Back in East London
Hello again, getting an error message after the make command on the PHP install...

Code:
make: fatal error: command failed for target 'sapi/cli/php'

Also had a few lines 'Output line too long' before it :/

Any ideas?

I tried running make clean, but got the same message again on the second run :(
 
Permabanned
Joined
18 Oct 2002
Posts
2,010
Location
Huddersfield / Antartica
Have you tried re-extracting the sources? Sounds like a dodgy set of sources to me, re-extract them, and if that doesnt work download a previous version. Is 5.8.0 testing? Im using 4.23 here, *I think*

Shak
 
Caporegime
OP
Joined
18 Oct 2002
Posts
29,490
Location
Back in East London
Originally posted by Shak
Have you tried re-extracting the sources? Sounds like a dodgy set of sources to me, re-extract them, and if that doesnt work download a previous version. Is 5.8.0 testing? Im using 4.23 here, *I think*

Shak
I'm atually using PHP 4.3.0pre2.. my colleague thought that Pearl = PHP ;)

Will try re-extracting :)
 
Permabanned
Joined
18 Oct 2002
Posts
2,010
Location
Huddersfield / Antartica
Try the previous version, AFAIK the one that most people use is 4.23, sometimes there is a problem with the newer releases.

Oh, and tell you collegue that PHP stands for

People
Hate
Perl

Shak
 
Back
Top Bottom