logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Getting Apache to work with PHP locally
Author
old_gregg



Joined: 15 Jan 2012
Posts: 1
Location: UK

PostPosted: Tue 17 Jan '12 22:07    Post subject: Getting Apache to work with PHP locally Reply with quote

I'm trying to set up Apache on my own PC to use as a PHP development environment.

I got Apache working fine, then made some changes to the httpd file to configue PHP as an Apache module, but when I do this, Apache won't start anymore.

I am following the instructions here http://www.sitepoint.com/how-to-install-php-on-windows/

When I add these lines to the end of the httpd file Apache won't start:

# PHP5 module
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

Could anyone tell me what I'm doing wrong?
Thank you!
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 17 Jan '12 23:29    Post subject: Reply with quote

Hi Gregg,

There should be something in Apache's error log, or in Windows Event log. What is one or the other saying?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7377
Location: Germany, Next to Hamburg

PostPosted: Thu 19 Jan '12 17:16    Post subject: Reply with quote

Is your apache from apache.org?
Back to top


Reply to topic   Topic: Getting Apache to work with PHP locally View previous topic :: View next topic
Post new topic   Forum Index -> Other Software