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!

Display php files with Apache 2.2.10

Status
Not open for further replies.

vegomatic

IS-IT--Management
Aug 22, 2008
20
0
0
US
Hello:
I'm sure there's an easy solution to this, but damned if I can find it!
We're running Apache 2.2.10 on SUSE Linux 11. Apache seems to be running okay (i.e. I can get to the "It works!" page) but when I try to load a .php file, the browser wants to download it.

I have mod_php5.so loaded in loadmodule.conf:

LoadModule ssl_module /usr/lib64/apache2-prefork/mod_ssl.so
LoadModule suexec_module /usr/lib64/apache2-prefork/mod_suexec$
LoadModule userdir_module /usr/lib64/apache2-prefork/mod_userdi$
#Added below 2/16
LoadModule php5_module /usr/lib64/apache2/mod_php5.so


and it seems to be running (from apache2ctl -M):

ssl_module (shared)
suexec_module (shared)
userdir_module (shared)
php5_module (shared)
Syntax OK


I have restarted Apache, but that doesn't help. Some information I found said to add AddType application /x-httpd-php .php to httpd.conf, but that seems to be for an older version of Apache.

Any ideas? Thanks in advance for any help!

veg
 
Figured it out: when I looked this morning, WP reported that I didnt' have the mysql module for php installed, so I installed it and now everything works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top