|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
php installation went fine but no php works
using redhat 9.0, apache 2.0.54, php-4.4.0 -----
I used these installation instructions here http://codewalkers.com/phpdocs/install.apache2.html I followed it to a "t" but now when testing simple php page the php script does not run. Simple php script i am using is <html> <head> <title>php test</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> </head> <body> <h1> php test </h1> <?php phpinfo();?> </body> </html> Wondering if it has something to do with the 2 http.conf files and only one has the LoadModule php4_module libexec/libphp4.so and the AddType application/x-httpd-php .php . I have one httpd.conf in /usr/local/apache2/conf and another one in /etc/httpd/conf . Any suggestions on what else i could check or what may be the problem? Oh ya and when i load that web page only the html displays---it is saved as a .php file. |
|
#2
|
|||
|
|||
|
RE: php installation went fine but no php works
The one to edit is the httpd.conf in /usr/local/apache2/conf
to test with phpinfo() the file has to contain only You can avoid to write all the html tags. |
|
#3
|
|||
|
|||
|
RE: php installation went fine but no php works
One more thing.
among php files you'll find install.txt with all you need to make it work. However, did you set the php pages to be processed by Apache? |
|
#4
|
|||
|
|||
|
RE: php installation went fine but no php works
I added the LoadModule and AddType lines to the /etc/httpd/httpd.conf file and then restarted apache and now i get this error when trying to start apache and it fails;
sapi_apache2.c is not compatible with this version of apache i actually reinstalled the os and apache 2.0.40 and php 4.4.0 twice today trying to see if i messed something up. Still the same error. Any suggestions? |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > php installation went fine but no php works |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|