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: PHP install troubles
Author
timothypaul



Joined: 24 Jul 2015
Posts: 2
Location: USA

PostPosted: Tue 28 Jul '15 14:02    Post subject: PHP install troubles Reply with quote

Hello, I fairly new to PHP and Apache but I have installed a few web servers before.

I'm running Windows 2003 Enterprise on a Dell 1425. Apache install went smooth. However I can't get PHP to run.

I tried several downloads but I prefer the last release of 5.4.

As there was no installer, I copied the PHP download folder over to my c drive and named it c:\php. I renamed the production file to PHP.ini. and added the appropriate lines to my http.conf. I've tried many different syntax as I've seen on forums, but my application log keeps showing an error at the load PHP module.

I do have a path statement in my environment variables. I've even copied both my PHP.ini and http.conf off my other production machines and this did not work.

I'm not really sure what I should be looking for at this point.

Thanks....TP
Back to top
James Blond
Moderator


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

PostPosted: Tue 28 Jul '15 17:52    Post subject: Reply with quote

Please your current trial config for PHP ( not the whole httpd.conf)
Back to top
timothypaul



Joined: 24 Jul 2015
Posts: 2
Location: USA

PostPosted: Tue 28 Jul '15 20:59    Post subject: Reply with quote

# Add PHP support
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
PHPIniDir 'C:/Program Files/PHP/'
#<directory "f:/sites/htdocs/">
# Options Indexes FollowSymLinks
# AllowOverride All
# Order allow,deny
# Allow from all
#</directory>

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
##PHPIniDir "C:/PHP/"
##LoadModule php5_module "C:/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL


#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
Back to top
glsmith
Moderator


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

PostPosted: Tue 28 Jul '15 21:17    Post subject: Reply with quote

I can think of 2 possibilities off the top of my head.

1. You're running Apache 2.4 but trying to load the module for Apache 2.2.

2. You're using the php_openssl extension and the major.minor.revision openssl version in Apache does not match the one included in php 5.4 (0.9.8).

There's a couple other outlying possibilities but it is hard to know what might be going on without knowing which version of Apache you're running and where you got it from.
Back to top


Reply to topic   Topic: PHP install troubles View previous topic :: View next topic
Post new topic   Forum Index -> Other Software