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: Having difficulties loading the PHP 5.4 handler
Author
Theos



Joined: 04 Mar 2012
Posts: 2

PostPosted: Sun 04 Mar '12 15:50    Post subject: Having difficulties loading the PHP 5.4 handler Reply with quote

I'm having difficulties loading the 5.4 handler. It's failing on startup with the error "The specified module could not be found.". Below are my configuration details. Any ideas?

Code:

System:
Windows 7 pro 64-bit
Installed vcredist_x86.exe

Apache:
httpd-2.4.1-win32.zip
C:/server/apache/2.4.1

PHP:
php-5.4.0-nts-Win32-VC9-x86.zip
php5apache2_4.dll-php-5.4-win32.zip
C:/server/php/5.4.0


Apache works w/o attemping to load the module:

Apache/2.4.1 (Win32) Server at localhost Port 8080


PHP section in httpd conf

LoadModule php5_module "c:/server/php/5.4.0/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "c:/server/php/5.4.0"


Error from elevated command prompt

C:\server\apache\2.4.1\bin>httpd
httpd: Syntax error on line 518 of C:/server/apache/2.4.1/conf/httpd.conf: Cannot load c:/server/php/5.4.0/php5apache2_4.dll into server: The specified module could not be found.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sun 04 Mar '12 15:55    Post subject: Reply with quote

The php-5.4.0-nts-Win32-VC9-x86 does not work.

You must use the VC9 x86 Thread Safe php-5.4.0-Win32-VC9-x86.zip from http://windows.php.net/download/

Steffen
Back to top
Theos



Joined: 04 Mar 2012
Posts: 2

PostPosted: Sun 04 Mar '12 16:26    Post subject: Reply with quote

Thanks that did it.
Back to top
holziusa



Joined: 02 Jan 2008
Posts: 48

PostPosted: Sun 25 Mar '12 17:41    Post subject: php5apache2_3.dll Reply with quote

Apache 2.4.1 PHP 5.4.0 threadsafe

he is referring to php5apache2_4.dll

i see only "php5apache2_2.dll and php5apache2_3.dll" in the available download

and it is not loading

thanks inadvance


resolved via here:

http://www.apachelounge.com/viewtopic.php?p=20263
Back to top
NewEraCracker



Joined: 23 Aug 2010
Posts: 36

PostPosted: Thu 12 Apr '12 10:08    Post subject: Reply with quote

Hello,

For php to work with apache Thread Safe version need to be installed.

Handlers for Apache 2.4 built by Apache Lounge are available here:
http://www.apachelounge.com/download/

Also, be sure to have the path to your php installation added to PATH environment variable.
Back to top
alexerwin33444



Joined: 12 May 2012
Posts: 7

PostPosted: Sat 24 Nov '12 20:06    Post subject: I know this an old thread but.. Reply with quote

I am having trouble with crash on start up after installing PHP 5.4.8.

My setup

Windows 7 32
Apache VC9 2.4.2
PHP 5.4.8
Apache PHP handler 5.4.8

Event Viewer Detail:

Log Name: Application
Source: Application Error
Date: 11/24/2012 12:56:54 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: Alex-PC
Description:
Faulting application name: httpd.exe, version: 2.4.2.0, time stamp: 0x4f913756
Faulting module name: php5ts.dll, version: 5.4.8.0, time stamp: 0x507dd793
Exception code: 0xc0000005
Fault offset: 0x00029904
Faulting process id: 0x8110
Faulting application start time: 0x01cdca6d15552785
Faulting application path: C:\usr\local\apache\bin\httpd.exe
Faulting module path: C:\usr\local\apache\var\php_5.4.8\php5ts.dll
Report Id: 54247460-3660-11e2-9ce5-002185c6ff04
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2012-11-24T17:56:54.000000000Z" />
<EventRecordID>630146</EventRecordID>
<Channel>Application</Channel>
<Computer>Alex-PC</Computer>
<Security />
</System>
<EventData>
<Data>httpd.exe</Data>
<Data>2.4.2.0</Data>
<Data>4f913756</Data>
<Data>php5ts.dll</Data>
<Data>5.4.8.0</Data>
<Data>507dd793</Data>
<Data>c0000005</Data>
<Data>00029904</Data>
<Data>8110</Data>
<Data>01cdca6d15552785</Data>
<Data>C:\usr\local\apache\bin\httpd.exe</Data>
<Data>C:\usr\local\apache\var\php_5.4.8\php5ts.dll</Data>
<Data>54247460-3660-11e2-9ce5-002185c6ff04</Data>
</EventData>
</Event>

I made sure everything is thread safe. I have PHP 5.3x on this box too and everything works perfectly. I would really like to use PHP 5.4 features, what am I doing wrong?

Thanks Alex
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sat 24 Nov '12 20:42    Post subject: Reply with quote

Anything in the Apache and/or PHP error log ?

What do you get when you start Apache from a command prompt ?

Sure your directives in httpd.conf are correct:

LoadModule php5_module "x:/xxx/php/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "x:/xxxx/php/"

you say that you are running Apache VC9 2.4.2 , where did you get it from ?

Steffen
Back to top
alexerwin33444



Joined: 12 May 2012
Posts: 7

PostPosted: Sat 24 Nov '12 21:07    Post subject: Reply with quote

I believe I downloaded it from Apache Lounge.

I did make sure to have all of those settings (LoadModule, AddHandler, and PHPIniDir) marked as required.

Apache does not complain, just crashes. PHP is not generating an error log
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Sat 24 Nov '12 21:13    Post subject: Reply with quote

So it craches when you run Apache from a command prompt, with no errors ?

Did you copied php5apache2_4.dll to you PHP folder ?


Steffen
Back to top
alexerwin33444



Joined: 12 May 2012
Posts: 7

PostPosted: Sat 24 Nov '12 21:23    Post subject: Correct Reply with quote

This is correct. I copied the file to my PHP directory and Apache crashes from the prompt with no errors but errors in the Event Viewer as posted.
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Sat 24 Nov '12 22:15    Post subject: Reply with quote

Try to run from command prompt:

>httpd.exe -t
Back to top
alexerwin33444



Joined: 12 May 2012
Posts: 7

PostPosted: Sat 24 Nov '12 22:30    Post subject: Syntax OK Reply with quote

Syntax OK
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Sat 24 Nov '12 22:44    Post subject: Reply with quote

I am stumbled why it is not working for you, maybe some else has a clue.
Back to top
Millennium



Joined: 17 Apr 2006
Posts: 179
Location: Leiderdorp, NL, EU

PostPosted: Mon 26 Nov '12 13:38    Post subject: Reply with quote

admin wrote:
I am stumbled why it is not working for you, maybe some else has a clue.


Apache config and php5apach2_4 handler are not the problem. It's php5ts.dll that crashes. This is ussual the case for some extension, so you should look into your php.ini and disable all extensions.
Back to top


Reply to topic   Topic: Having difficulties loading the PHP 5.4 handler View previous topic :: View next topic
Post new topic   Forum Index -> Other Software