Thanks for the explanations re start/stop and graceful.
"now you have a working apache/php.
try pointing your webbrowser to http://localhost/test.php"
If I point my browser to http://localhost/test.php It simply asks me what I want to do with the php script file - open it with what text editor or save it.
My browser does not seem to get the idea to process a .php file. This is in spite of the test.php being in the /var/www directory where web pages are to be kept.
The browser displays .html files ok. But seems not to want to process any .php.
Your further advice and patience is much appreciated.
rf
New to PHP 3 Problems/Questions
Moderators: Website/Forum Admins, Other/Off Topic Moderators
your browser does not process PHP files, your webserver does. the webserver processes PHP files to generate HTML (usually)
check your httpd.conf, you should have lines similar to the following (path and filenames may differ depending on your installation)
if the lines start with #, they are commented out, and may need to be uncommented for PHP to work properly
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
check your httpd.conf, you should have lines similar to the following (path and filenames may differ depending on your installation)
if the lines start with #, they are commented out, and may need to be uncommented for PHP to work properly
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
In God we trust,
Everyone else must have an X.509 certificate.
Everyone else must have an X.509 certificate.
Thanks for your ever-green help.
Everything works now!
Only problem - I am not sure what made the difference!
"LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps"
was tried in /etc/apache/httpd.conf lines 204 -208 and all were refused - giving various error messages!
Two things I did that may account for the why the server now will process .php files instead of asking how they want to be opened:
1) added "Include /etc/apache/modulo.conf" in httpd.conf
2) uninstalled php4 (in XandrosNetwork) which I could not tell did anything.
So thanks so much for all the help - my server now works on .php files.
rf
Everything works now!
Only problem - I am not sure what made the difference!
"LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps"
was tried in /etc/apache/httpd.conf lines 204 -208 and all were refused - giving various error messages!
Two things I did that may account for the why the server now will process .php files instead of asking how they want to be opened:
1) added "Include /etc/apache/modulo.conf" in httpd.conf
2) uninstalled php4 (in XandrosNetwork) which I could not tell did anything.
So thanks so much for all the help - my server now works on .php files.
rf
Who is online
Users browsing this forum: No registered users and 5 guests