Author |
|
snovakov
Joined: 21 May 2013 Posts: 3 Location: USA, Grapevine
|
Posted: Tue 21 May '13 22:23 Post subject: Apache24 issue when trying to use PHP... |
|
|
Am trying to get Apache and PHP working together on Windows 8 install.
I keep getting the following message when trying to run httpd on the command-line:
C:\Users\Steven\misc\Apache24\bin>httpd
httpd: Syntax error on line 275 of C:/Users/Steven/misc/Apache24/conf/httpd.conf
: Cannot load C:\\php\\php5apache2_2.dll into server: The specified procedure co
uld not be found.
Here is my information:
OS: Windows8 Version 6.2 (Build 9200) [2012]
Apache: httpd-2.4.4-win32
PHP: 5.2.17-Win32-VC6-x86
PHP is installed in C:\php directory.
My http.conf file that tries to load PHP looks like:
LoadModule php5_module "C:\php\php5apache2_2.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:\php"
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
~ Steven |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7404 Location: EU, Germany, Next to Hamburg
|
Posted: Tue 21 May '13 22:28 Post subject: |
|
|
Hi Steven,
from the php dll name you may see php5apache2_2.dll but you need to load the php5apache2_4.dll.
However the VC6 build from PHP will not load into VC9 build from apache (at least if you downloaded apache from apachelounge).
Why still using PHP 5.2? What is very outdated! |
|
Back to top |
|
snovakov
Joined: 21 May 2013 Posts: 3 Location: USA, Grapevine
|
Posted: Tue 21 May '13 22:35 Post subject: |
|
|
Thanks for the reply, James.
Ok, so PHP 5.2 is old...
Perhaps my question should now be:
What is a correct combination of Apache and PHP to get it to work together on Windows8?
Which Apache should I download and install?
Which PHP should I download and install? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3118 Location: Hilversum, NL, EU
|
|
Back to top |
|
BillAngus
Joined: 20 May 2012 Posts: 7 Location: Maple Ridge, BC Canada
|
Posted: Sun 26 May '13 21:37 Post subject: I got PHP working thusly... |
|
|
Loaded compatible Windows x86 compiled Apache 2.4 files from Apachelounge... Installed Php ... installed an x86 compiled php5apache2_4.dll from Apachelounge
setup http.conf as below
[...]
scriptalias /php/ "C:/Program Files (x86)/PHP/"
LoadModule php5_module "C:/Program Files (x86)/PHP/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/Program Files (x86)/php"
[...]
Still having other trouble with Apache 2.4 however -- may go back to 2.2 which was always very stable. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3118 Location: Hilversum, NL, EU
|
Posted: Sun 26 May '13 22:29 Post subject: |
|
|
Bure sure you have PHP 5.3 or 5.4 VC9 x86 Thread Safe from windows.php.net.
The php5apache2_4.dll is now included in this downloads.
Steffen |
|
Back to top |
|