Author |
|
Skynet3020
Joined: 12 Jul 2012 Posts: 8 Location: Zuerich
|
Posted: Fri 13 Jul '12 1:11 Post subject: WinServer 2008 R2 Apache & PHP ? |
|
|
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
|
Posted: Fri 13 Jul '12 11:06 Post subject: |
|
|
Where did you download apache and php? |
|
Back to top |
|
Skynet3020
Joined: 12 Jul 2012 Posts: 8 Location: Zuerich
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7364 Location: Germany, Next to Hamburg
|
Posted: Fri 13 Jul '12 11:34 Post subject: |
|
|
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
|
Posted: Fri 13 Jul '12 12:01 Post subject: |
|
|
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
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
|
Posted: Fri 13 Jul '12 12:28 Post subject: |
|
|
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
|
Posted: Fri 13 Jul '12 13:18 Post subject: |
|
|
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
|
Posted: Fri 13 Jul '12 13:45 Post subject: |
|
|
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
|
Posted: Fri 13 Jul '12 14:18 Post subject: |
|
|
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
|
Posted: Fri 13 Jul '12 14:33 Post subject: |
|
|
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
|
Posted: Fri 13 Jul '12 15:00 Post subject: |
|
|
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
|
Posted: Fri 13 Jul '12 15:21 Post subject: |
|
|
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
|
Posted: Fri 13 Jul '12 16:56 Post subject: |
|
|
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
|
Posted: Sat 14 Jul '12 12:04 Post subject: |
|
|
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
|
Posted: Sat 14 Jul '12 19:30 Post subject: |
|
|
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
|
Posted: Sat 14 Jul '12 20:37 Post subject: |
|
|
How did you enable mysql in php.ini? Set the ext dir correctly? |
|
Back to top |
|