MLUG: Re: [MLUG] php pages not running in apache2
Re: [MLUG] php pages not running in apache2
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Basically, you need to add a few things to your apache configuration to
make php work correctly.  You need to add the following:

########## start################
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php5_module modules/libphp5.so

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
############## end ###################3

In Fedora Core 4 this gets put into the file /etc/httpd/conf.d/php.conf,
but I'm not sure where this would go in suse.  The files
in /etc/httpd/conf.d get included by the httpd.conf file anyway, so you
could just as easily stick it into the httpd.conf file.  

Also, you may need to modify the name and/or path of used in the
LoadModule statement above based on your configuration.  

--matt


On Mon, 2006-01-09 at 15:48 -0600, Mike Pepper wrote:
> I am working with php files. I am running apache2.
> I'm not sure what I have done, but when I attempt to open a .php page, I get a 
> dialog box wanting me to either open it, or save it. The browser will not 
> display it. I have looked and looked, but can find nothing that fixes it.
> I have apache2-mod_php5 installed along with php5 and all affiliated files.
> 
> I looked in the httpd.conf file, and found nothing that mentions php.
> Where would I place the statement that calls the php5 module?
> 
> I omitted including the httpd.conf for size sake, I can post it if it would 
> help.
> 
> Thanks.
> 
> Mike
> 
> _______________________________________________
> members mailing list
> EMAIL:PROTECTED
> http://mlug.missouri.edu/mailman/listinfo/members


_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members