On 4 July 2011 13:39, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx> wrote: > Hi all, > (Hopefully I posted this in a place that can/will help me) > > I got curious about running php / apache on my own laptop in order to help > my devl process, instead of writing, uploading and testing on my site. > > Found a nice pair of docs from "thesitewizard.com" that appeared to be > pretty well-written instructions on installing each of these systems. btw- > I'm running XpSp2. Chose the Apache 2.0 and PHP 5.2 (thread-safe?) per the > recommendations. > > Went thru all instructions step-by-step, testing all the way. Apache > works - PHP doesn't. When I bring up IE and type in localhost I get the > default apache page as I was told I should see. When I type > "localhost/test.php" I get a windows dialog asking what program should run > the php script. > > In debugging I went to a cmd windows and ran "c:\php\php-cgi test.php" and > got the expected result from my script - so PHP works. > > End result - they each work separately, but php is not working under apache. > > As part of the docs instructions I added the following code to the apache > conf file: > > 1 - I chose the "configure apache to run php as an apache module. > 2 - added "LoadModule php5_module "c:/php/php5apache2.dll" as last one of > those lines > 3 - added "AddType application/x-httpd-php .php" as the last of those lines > 4 - added "PHPIniDir "c:/php" as the last line of the conf file. > > Upon adding these lines apache will no longer restart. In fact adding any > ONE of these lines breaks Apache. > > Ideas welcome. Do you have to use Apache? I use Abyss (closed source) or LightTPD (open source) are both good options. Really tiny and I feel a lot easier to install. Especially Abyss. Both would use cgi-fastcgi and be NTS. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php