note 103704 added to install.windows.apache2
| From: | mike at supergrowlasers dot com | Date: | Fri, 29 Apr 2011 01:44:59 +0000 |
| Subject: | note 103704 added to install.windows.apache2 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179254@lists.php.net to get a copy of this message | ||
I just spent 5 hours repeatedly trying, usuccessfully, to get Apache to parse php files instead of
sending them to the browser. I am setting up a Win 7 Pro box, and went through the configuration
several times, as well as trying other configuration directives I found elsewhere by searching.
Nothing worked. I was tearing my hair out and ready to cry. I have set this up numerous times on XP
with no problem. But on Win 7 Pro it wasn't happening.
Eventually I found this code, which worked perfectly (after taking out directives from httpd.conf
that weren't working, of course)
LoadFile "C:/php/php5ts.dll"
LoadModule php5_module "C:/php/php5apache2.dll"
<IfModule php5_module>
#PHPIniDir "C:/Windows"
#PHPIniDir "C:/Winnt"
<Location />
AddType text/html .php .phps
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
</Location>
</IfModule>
If you've been having the same problem, try this.
You're welcome.
----
Server IP: 69.147.83.197
Probable Submitter: 173.170.157.34
----
Manual Page -- http://www.php.net/manual/en/install.windows.apache2.php
Edit -- https://master.php.net/note/edit/103704
Del: integrated -- https://master.php.net/note/delete/103704/integrated
Del: useless -- https://master.php.net/note/delete/103704/useless
Del: bad code -- https://master.php.net/note/delete/103704/bad+code
Del: spam -- https://master.php.net/note/delete/103704/spam
Del: non-english -- https://master.php.net/note/delete/103704/non-english
Del: in docs -- https://master.php.net/note/delete/103704/in+docs
Del: other reasons-- https://master.php.net/note/delete/103704
Reject -- https://master.php.net/note/reject/103704
Search -- https://master.php.net/manage/user-notes.php