PDA

View Full Version : Apache Server Config..


Simo
01-25-2002, 09:48 AM
Hey what line do I edit in the latest version of Apache to set it up to read .php files?

Ive been running Xitami but it has problems with server load etc etc and we all know apache is good (and free) so Im changin over to that.

Need to get it reading .php files quick or im in trouble :(

wizbones
01-25-2002, 05:38 PM
When you install it you need to compile and build it for php.

Are you doing on a linux box or windows box?

In the httpd.conf file you need the following:


<IfModule mod_dir.c>
SPAM SPAMDirectoryIndex index.shtml index.html index.php index.php3
</IfModule>

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


These should all be in there already just may be commented out. If this doens't help give me some error messages or config that you currently have or heck just email me.

Laters.