Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Getting Apache to work with PHP locally |
|
Author |
|
old_gregg
Joined: 15 Jan 2012 Posts: 1 Location: UK
|
Posted: Tue 17 Jan '12 22:07 Post subject: Getting Apache to work with PHP locally |
|
|
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
|
Posted: Tue 17 Jan '12 23:29 Post subject: |
|
|
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
|
Posted: Thu 19 Jan '12 17:16 Post subject: |
|
|
Is your apache from apache.org? |
|
Back to top |
|
|
|
|
|
|