Author |
|
borisp
Joined: 13 Jan 2012 Posts: 4
|
Posted: Fri 13 Jan '12 11:35 Post subject: PHP 5.3.9 with Apache 2.3.16 on 64bit Windows 7 |
|
|
I am trying to install Apache Web Server 2.3.16 with PHP php-5.3.9, both on 64 bit Windows 7. The apache installation itself went OK and I was able to access test page from browser. But as soon as I tried to enable PHP support I get the "C:\Apache23\bin>httpd.exe
httpd.exe: Syntax error on line 510 of C:/Apache23/conf/httpd.conf: Cannot load
C:/PHP/php5apache2_4.dll into server: The specified module could not be found." error message. "php5apache2_4.dll" has been downloaded from the same server and at aproximately the same time as web server. Also it is present in formentioned folder. I am unable to find any more information in log files, and also I cannot find any information in event viewer.
Hopefully someone on forum will have a hint that will help me solve this problem. BTW, the reason that I am working on experimental software is that I would like to have owncloud on Windows, which demands PHP >= 5.3. which means I need VC9 compiled apache, which means 2.4. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3096 Location: Hilversum, NL, EU
|
Posted: Fri 13 Jan '12 11:48 Post subject: |
|
|
Sure you downloaded the correct version of the PHP handler from the download page here ?
Nothing in the Windows Event Viewer ?
Steffen |
|
Back to top |
|
borisp
Joined: 13 Jan 2012 Posts: 4
|
Posted: Fri 13 Jan '12 14:09 Post subject: |
|
|
I downloaded "httpd-2.3.16-win32.zip" and "php5apache2_4.dll-php-5.3.9-win32.zip" from your download page. Created date on httpd.exe file is 15.12.2011 (file version 2.3.16.0), and on php5apache2_4.dll 21.12.2011.
Since it was late yesterday I checked again - deleted all events from ebent log and all apache log files. There is nothing in Event Viewer and log files were not created in log folder.
If I remove "LoadModule" and PHPIniDir entries from httpd.conf I can start service without problem, logs are created on disk, and logs are created in event viewer.
Boris |
|
Back to top |
|
borisp
Joined: 13 Jan 2012 Posts: 4
|
Posted: Fri 13 Jan '12 14:23 Post subject: |
|
|
I read what I wrote above and I must clarify something. I tried to start apache in command prompt with command httpd.exe. This is why there is nothing in event viewer and error described above in console. If I try to start it as a service (with php) I do get an error in event viewer. Error is "The Apache2.4 service terminated with service-specific error Incorrect function..".
Details; XML view:
- <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-01-13T12:18:27.323283500Z" />
<EventRecordID>10193</EventRecordID>
<Correlation />
<Execution ProcessID="588" ThreadID="4492" />
<Channel>System</Channel>
<Computer>HTPC</Computer>
<Security />
</System>
- <EventData>
<Data Name="param1">Apache2.4</Data>
<Data Name="param2">%%1</Data>
</EventData>
</Event>
/*********/
With PHP disabled it is running both as a standalone program and as a service. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3096 Location: Hilversum, NL, EU
|
Posted: Fri 13 Jan '12 14:36 Post subject: |
|
|
Do you run the TS php 5.3.9 download ?
Steffen |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7377 Location: Germany, Next to Hamburg
|
Posted: Fri 13 Jan '12 16:10 Post subject: |
|
|
Please set in your php.ini
Code: |
display_startup_errors = On
|
can you run
Code: |
cd path\to\php
php -m
|
|
|
Back to top |
|
borisp
Joined: 13 Jan 2012 Posts: 4
|
Posted: Sat 14 Jan '12 13:51 Post subject: |
|
|
Version is 5.3.9 as it can be seen from output below:
c:\PHP>php.exe -v
PHP 5.3.9 (cli) (built: Jan 10 2012 16:33:06)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
php.exe -m returns:
c:\PHP>php.exe -m
[PHP Modules]
bcmath
bz2
calendar
com_dotnet
Core
ctype
curl
date
dom
enchant
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
odbc
openssl
pcre
PDO
pdo_mysql
Phar
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules] |
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
|
Back to top |
|