Re: Apache Problem

From: Date: Sat, 13 Jan 2001 10:00:52 +0000
Subject: Re: Apache Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34415@lists.php.net to get a copy of this message
> I was always using pws until recently when I got Apache for windows. = > Unfortunately when apache gets to a php file it doesnt parse it, it = > thinks its a file to download. I uncommented the php lines in the = > http.conf file but still no use. Does anyone know how to fix this? Make sure to get these lines in the right place in httpd.conf then RESTART Apache: #with the scriptaliases: scriptalias /php/ c:/php/ # where c:/php/ is your php directory! so this is a windows example! #at AddType one or more of these: AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .phtml /*I believe it can also be AddType application/x-httpd-php .php .php3 .phtml */ Action application/x-httpd-php "/php/php.exe" #Optionally add index.php to the automatically opened files (opened when link lacks filename): DirectoryIndex index.html index.php3 index.htm index.php hth, Chris -------------------------------------------------------------------- -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- --------------------------------------------------------------------

« previous php.general (#34415) next »