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: Apache says php5apache2_4.dll is not a valid Win32 app.
Author
Memori



Joined: 26 Apr 2012
Posts: 6

PostPosted: Thu 26 Apr '12 18:44    Post subject: Apache says php5apache2_4.dll is not a valid Win32 app. Reply with quote

Apache says php5apache2_4.dll is not a valid Win32 application:

Code:
D:\Development\Apache\bin>httpd -k start -n Apache_SlashDev
httpd: Syntax error on line 3 of D:/Development/Apache/conf/VHosts/slashdev.conf
: Cannot load D:/Development/PHP/php5apache2_4.dll into server: %1 is not a vali
d Win32 application.


I'm running the 32bit Apache 2.4.2 build with 32bit VC9 Non-thread safe PHP 5.4.1 on a 64bit Windows 7. This error also occured on PHP 5.4.0.

Anyone have any clue as of why it is not working?

This setup does work on my Windows 2003, 32bit production server.
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 692

PostPosted: Thu 26 Apr '12 19:05    Post subject: Reply with quote

You have to use the thread safe PHP.

Steffen
Back to top
Memori



Joined: 26 Apr 2012
Posts: 6

PostPosted: Thu 26 Apr '12 19:25    Post subject: Reply with quote

admin wrote:
You have to use the thread safe PHP.

Steffen


The same happens with the thread safe PHP.
Back to top
Steffen
Moderator


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

PostPosted: Thu 26 Apr '12 20:00    Post subject: Reply with quote

This error happens when you mix Win64 and Win32 modules. For example when you try to load a Win32 module in a Win64 Apache.

Be sure you have:

Win32 Apache 2.4.2 with the current php5apache2_4.dll from here.

Steffen
Back to top
Memori



Joined: 26 Apr 2012
Posts: 6

PostPosted: Thu 26 Apr '12 20:59    Post subject: Reply with quote

I feel stupid. I was absolutely sure I had the 32 bit Apache installed, but I had not.

I have the 32bit Apache installed now, but cannot test if this fixes it yet (though it should). Trying to start Apache service returns blank, without actually starting.
Back to top
Steffen
Moderator


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

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

Errors in the apache and/or windows event log ?

And try in a dos box:

>httpd.exe -t



Steffen
Back to top
Memori



Joined: 26 Apr 2012
Posts: 6

PostPosted: Thu 26 Apr '12 21:13    Post subject: Reply with quote

Command prompt returns:

Code:
D:\Development\Apache\bin>httpd -k start -t -n Apache_SlashDev
Syntax OK


Code:
D:\Development\Apache\bin>httpd -t
AH00558: httpd: Could not reliably determine the server's fully qualified domain
 name, using fe80::5c5:c3dc:ea57:4155. Set the 'ServerName' directive globally t
o suppress this message
Syntax OK


Windows event log:
Code:
The Apache_SlashDev service terminated with service-specific error Incorrect function..


Apache error log:
Code:
Starting the Apache_SlashDev service
T
Back to top
Steffen
Moderator


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

PostPosted: Thu 26 Apr '12 21:51    Post subject: Reply with quote

The Apache_SlashDev service terminated with service-specific error Incorrect function..

and

Starting the Apache_SlashDev service
T

What are the complete messages ?

Steffen
Back to top
Memori



Joined: 26 Apr 2012
Posts: 6

PostPosted: Thu 26 Apr '12 22:16    Post subject: Reply with quote

Steffen wrote:
The Apache_SlashDev service terminated with service-specific error Incorrect function..

and

Starting the Apache_SlashDev service
T

What are the complete messages ?

Steffen


Those are the complete messages. This is what the details say of the windows event:

Code:
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
  <EventID Qualifiers="49152">7024</EventID>
  <Version>0</Version>
  <Level>2</Level>
  <Task>0</Task>
  <Opcode>0</Opcode>
  <Keywords>0x8080000000000000</Keywords>
  <TimeCreated SystemTime="2012-04-26T20:13:28.228331300Z" />
  <EventRecordID>11895</EventRecordID>
  <Correlation />
  <Execution ProcessID="612" ThreadID="756" />
  <Channel>System</Channel>
  <Computer>Memori-PC</Computer>
  <Security />
  </System>
- <EventData>
  <Data Name="param1">Apache_SlashDev</Data>
  <Data Name="param2">%%1</Data>
  </EventData>
  </Event>
Back to top
Memori



Joined: 26 Apr 2012
Posts: 6

PostPosted: Thu 26 Apr '12 22:25    Post subject: Reply with quote

I found the problem:

Apache did not have write access to the apache/logs/access.log file. All is good now Smile PHP loads up too. It is strange that no feedback is given on this error.

Thank you for your help.
Back to top


Reply to topic   Topic: Apache says php5apache2_4.dll is not a valid Win32 app. View previous topic :: View next topic
Post new topic   Forum Index -> Other Software