Forum Moderators: coopster
However, I have uploaded it to the web server and the PHP pages either return a blank page (Internet Explorer) or a page detailing the actual PHP code (Mozilla). I've been googling this for a week or two now and all ideas point to modifiying the httpd.conf file on the server. Mine all looks fine but I still can't get PHP to work properley on the server.
Any tips would be hugely appreciated.
Thanks
Mike
you might want to take a look at this thread explaining how to install php onto your webserver: [webmasterworld.com...]
You can skip all of extra information in there about installing other components and just focus on the php aspect. That should get you along the way. If it's the case where you already have php installed, then there is a problem with the installation and you should check all of the steps listed in the thread linked to above to see if anything was missed.
And as a general note, when you make changes to your server's configuration files don't forget to restart apache so that the changes can take affect.
We own the server and as far as I can see, the httpd.conf is configured correctly. From advice that other have given, I need to esnure the following lines are in place:
LoadModule php_module modules/mod_php.so
LoadModule php3_module modules/libphp3.so
LoadModule php4_module modules/libphp4.so
AddModule mod_php.c
AddModule mod_php3.c
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
These were initailly commented out. I've uncommented them, restarted the server but still the problem persists. This is very starnge as I have all pages working fine on my own local Apache / PHP installation and the httpd.conf.
Again, thanks for tips and advice and anything else you can offer would be hugely appreciated.
Many thanks
Mike