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: WinServer 2008 R2 Apache & PHP ?
Author
Skynet3020



Joined: 12 Jul 2012
Posts: 8
Location: Zuerich

PostPosted: Fri 13 Jul '12 1:11    Post subject: WinServer 2008 R2 Apache & PHP ? Reply with quote

i have install apache 2.4.2 an php 5.4.4 (manually)

apache running fine whiteout the php5 module

but if i activate in httpd.conf:

LoadModule php5_module "C:/php/php5apache2_4.dll"

apache wont start it give's only this error message:

"The requested operation has failed"

php.ini doc_root is set to c:/php

that is not my first apache2 with php and sql but the first on windows
has anyone a idea ?

thanks
Pat
Back to top
James Blond
Moderator


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

PostPosted: Fri 13 Jul '12 11:06    Post subject: Reply with quote

Where did you download apache and php?
Back to top
Skynet3020



Joined: 12 Jul 2012
Posts: 8
Location: Zuerich

PostPosted: Fri 13 Jul '12 11:10    Post subject: Reply with quote

apache from here (apache lounge) and php from:

http://windows.php.net/download/#php-5.3


in the error log are nothing about this :-/
Back to top
James Blond
Moderator


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

PostPosted: Fri 13 Jul '12 11:34    Post subject: Reply with quote

Please try the php5_apache2_4.dll (fitting to your PHP version) from http://www.apachelounge.com/download/

Than also add to your httpd.conf

Code:

AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/php"
Back to top
Skynet3020



Joined: 12 Jul 2012
Posts: 8
Location: Zuerich

PostPosted: Fri 13 Jul '12 12:01    Post subject: Reply with quote

i do that > "The requested operation has failed"

strange is when i delete the hash in the string
PHPIniDir "c:/php"

it comes the same error :-/ directories etc are 100% correct


typical windows....it won't work Smile

do want to see my httpd config and php config ? I'm confused
Back to top
Steffen
Moderator


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

PostPosted: Fri 13 Jul '12 12:28    Post subject: Reply with quote

Type in a DOS window:

>httpd.exe -t

What response do you get ?

Also you say in the top post: php 5.4.4 and in the other you downloaded 5.3 ??
Back to top
Skynet3020



Joined: 12 Jul 2012
Posts: 8
Location: Zuerich

PostPosted: Fri 13 Jul '12 13:18    Post subject: Reply with quote

okay got a win32 error...


C:\Users\Administrator\httpd.exe is not a admissible Win32 Application
Back to top
Steffen
Moderator


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

PostPosted: Fri 13 Jul '12 13:45    Post subject: Reply with quote

Navigate first to the folder where httpd.exe is.

Please also search in the forum about your issue, there are posts to install php.
Back to top
Skynet3020



Joined: 12 Jul 2012
Posts: 8
Location: Zuerich

PostPosted: Fri 13 Jul '12 14:18    Post subject: Reply with quote

with activated phpinidir & module:

get following syntax:

Das angegebene module wurde nicht gefunden

httpd.conf


LoadModule php5_module "C:/php/php5apache2_4.dll"


# configure the path to php.ini
PHPIniDir "c:/php"

the .dll is there in C:/php/php5apache2_4.dll
and are the correct name !!
Back to top
Skynet3020



Joined: 12 Jul 2012
Posts: 8
Location: Zuerich

PostPosted: Fri 13 Jul '12 14:33    Post subject: Reply with quote

is there a problem with the zip file ?

download/win32/modules-2.4/php5apache2_4.dll-php-5.4-win32.zip

when i download to a mac i can't expand it !

normal i can always all expand on a mac.


edit:

when i use
php-5.3.14-Win32-VC9-x86.zip

i the same thing :-/
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 691

PostPosted: Fri 13 Jul '12 15:00    Post subject: Reply with quote

Be sure you have 2.4.2 win32 and the correct php5apache2_4.dll and PHP TS (Thread Safe).

No reports that the .zip are not correct.
Back to top
Steffen
Moderator


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

PostPosted: Fri 13 Jul '12 15:21    Post subject: Reply with quote

You are talking about:

php5apache2_4.dll-php-5.4-win32.zip

and

php-5.3.14-Win32-VC9-x86.zip


That does not match php version, php 5.4 and 5.3.
Back to top
Skynet3020



Joined: 12 Jul 2012
Posts: 8
Location: Zuerich

PostPosted: Fri 13 Jul '12 16:56    Post subject: Reply with quote

Steffen wrote:
You are talking about:

php5apache2_4.dll-php-5.4-win32.zip

and

php-5.3.14-Win32-VC9-x86.zip


That does not match php version, php 5.4 and 5.3.



i know, i change the .dll file for 5.3.14 ! but it doesn't work too and I'm shure that i have all right versions !
Back to top
James Blond
Moderator


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

PostPosted: Sat 14 Jul '12 12:04    Post subject: Reply with quote

Skynet3020 wrote:
is there a problem with the zip file ?


Which unpacking tool to you use on windows that you get that error?

Skynet3020 wrote:

when i download to a mac i can't expand it ! normal i can always all expand on a mac.


Why would you want to unpack those files on a mac? Do not unpack stuff on that mac and than not move it to the windows server. Unpack the files directly on the windows server with a tool like 7zip or winrar.
Back to top
Skynet3020



Joined: 12 Jul 2012
Posts: 8
Location: Zuerich

PostPosted: Sat 14 Jul '12 19:30    Post subject: Reply with quote

i have to check the zip file on the mac.
now i redownload it and it works (solved)

only mysql will not work correctly
Back to top
James Blond
Moderator


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

PostPosted: Sat 14 Jul '12 20:37    Post subject: Reply with quote

How did you enable mysql in php.ini? Set the ext dir correctly?
Back to top


Reply to topic   Topic: WinServer 2008 R2 Apache & PHP ? View previous topic :: View next topic
Post new topic   Forum Index -> Other Software