Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT: Apache displaying php code

Status
Not open for further replies.

RemoteSilicon

Programmer
Feb 13, 2001
45
0
0
GB
Hi
I have re-installed the apache web server on linux. It works fine with html pages, but when I try to access PHP pages, it displays me code of the page. What should I do. Plz help.
 
Hi,

Assuming you still have mod_php and php installed, check that the following Directives are in your httpd.conf :

LoadModule php4_module modules/libphp4.so

Addmodule mod_php4.c

AddType application/x-httpd-php .php .php4

(If the other LoadModule directives use a different directory use that instead - e.g. 'libexec/libphp4.so' )

Then get apache to re-read the config :

killall -HUP httpd

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top