Apache 2.0.35 + PHP 5.8.0

Caporegime
Joined
18 Oct 2002
Posts
29,493
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!!!
 
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
 
Originally posted by Shak
Taken from the Apache and PHP HOWTO written by me on this very forum

Shak
You sir, are an absolute DIAMOND! :D Thanks a helluvalot! :)

Do you have a linkt to the full HOWTO by any chance? (Please don't tell me it's a sticky :rolleyes: ;))
 
No problems mate, all my HOWTOs will be appearing on my site when Ive finished it then Ill make sure no-one misses them :p

Shak
 
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 :(
 
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
 
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 :)
 
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
 
Originally posted by Shak
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

Roger, Wilco! :D
 
Originally posted by Shak
Did it work then?

Shak
Yup, I downgraded to 4.2.3 as it still failed after second doenload and extract... running make install now :D Ta once again! That's 2 drinks I owe ya ;)
 
Back
Top Bottom