note 103704 deleted from install.windows.apache2 by cmb

From: Date: Sun, 12 May 2019 15:25:57 +0000
Subject: note 103704 deleted from install.windows.apache2 by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211016@lists.php.net to get a copy of this message
Note Submitter: mike at supergrowlasers dot com ---- 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.

« previous php.notes (#211016) next »