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 -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache24 issue when trying to use PHP...
Author
snovakov



Joined: 21 May 2013
Posts: 3
Location: USA, Grapevine

PostPosted: Tue 21 May '13 22:23    Post subject: Apache24 issue when trying to use PHP... Reply with quote

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

PostPosted: Tue 21 May '13 22:28    Post subject: Reply with quote

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

PostPosted: Tue 21 May '13 22:35    Post subject: Reply with quote

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: 3117
Location: Hilversum, NL, EU

PostPosted: Wed 22 May '13 10:53    Post subject: Reply with quote

See for your options: www.apachelounge.com/viewtopic.php?t=4481
Back to top
BillAngus



Joined: 20 May 2012
Posts: 7
Location: Maple Ridge, BC Canada

PostPosted: Sun 26 May '13 21:37    Post subject: I got PHP working thusly... Reply with quote

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: 3117
Location: Hilversum, NL, EU

PostPosted: Sun 26 May '13 22:29    Post subject: Reply with quote

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


Reply to topic   Topic: Apache24 issue when trying to use PHP... View previous topic :: View next topic
Post new topic   Forum Index -> Apache