Author |
|
msem
Joined: 21 Nov 2005 Posts: 8 Location: Milan Italy
|
Posted: Sat 12 Apr '14 12:41 Post subject: log rotate and build 2.4.9 |
|
|
Hi All
We are running build 2.4.7 (win32)and i'm using mod log rotate.
I want to upgrade to build 2.4.9 in order to address the heartbleed issue.
I kept the same configuration but httpd stops while loading mod_log_rotate.so module
httpd.exe: Syntax error on line 132 of F:/Apache24/conf/httpd.conf: Cannot load modules/mod_log_rotate.so
I checked out
Does anyone encountered this error ? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 12 Apr '14 20:03 Post subject: |
|
|
Sure you have the correct Win32 or Win64 mod_log_rotate.so ? |
|
Back to top |
|
msem
Joined: 21 Nov 2005 Posts: 8 Location: Milan Italy
|
Posted: Mon 14 Apr '14 9:40 Post subject: |
|
|
Yes i'm sure
I'm using the win32 version
The win64 version works fine |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 14 Apr '14 10:58 Post subject: |
|
|
VC9, VC10 or VC11?
Anything in the Windows Event Viewer ? |
|
Back to top |
|
msem
Joined: 21 Nov 2005 Posts: 8 Location: Milan Italy
|
Posted: Mon 14 Apr '14 11:04 Post subject: |
|
|
VC11 build 11.0.61030
Nothing in the windows event viewer,
I'm running Windows 7 professional x64 sp1 |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 14 Apr '14 11:15 Post subject: |
|
|
Checked it(again). It loads fine in the Apache VC11 Win32 build.
Sure you have the mod_log_rotate.so from the modules-2.4-win32-VC11.zip here ? |
|
Back to top |
|
msem
Joined: 21 Nov 2005 Posts: 8 Location: Milan Italy
|
Posted: Mon 14 Apr '14 11:37 Post subject: |
|
|
this is the module i'm currently using
04/08/2013 15:13 11,264 mod_log_rotate.so |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 14 Apr '14 11:41 Post subject: |
|
|
Looks correct.
So you must have/introduced another issue, sorry I cannot help sofar. You must have some mixed up, like Win32 mixing with Win64 etc. |
|
Back to top |
|
msem
Joined: 21 Nov 2005 Posts: 8 Location: Milan Italy
|
Posted: Mon 14 Apr '14 14:21 Post subject: |
|
|
Hi
on a Windows 2k8 server the error is a little bit more verbose
httpd.exe: Syntax error on line 132 of D:/apache_2.4.9/conf/httpd.conf: Cannot l
oad modules/mod_log_rotate.so into server: %1 is not a valid Win32 application. |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Mon 14 Apr '14 14:33 Post subject: |
|
|
'not a valid Win32 application' is the error you get when trying to load a Win32 binary in Win64 or vice versa |
|
Back to top |
|
msem
Joined: 21 Nov 2005 Posts: 8 Location: Milan Italy
|
Posted: Mon 14 Apr '14 14:52 Post subject: |
|
|
forget my last message
My fault |
|
Back to top |
|
Jubri
Joined: 15 Jan 2015 Posts: 3
|
Posted: Thu 15 Jan '15 16:52 Post subject: |
|
|
Hi all,
Same problem...
Windows Server 2012 R2 Standard Edition (x64)
Apache/2.4.10 (Win32), PHP/5.6.4 (WAMP Solution: The Uniform Server)
mod_log_rotate-1.00a (modules-2.4-win32-VC11.zip)
If it's launched via Uniform Launcher, all works fine, but if it's lauched via "windows service" don't work.
Windows Logs > System
The us_apache_1 service terminated with the following service-specific error:
Code: |
The us_apache_1 service terminated with the following service-specific error:
Incorrect function.
|
And testing with Apache Syntax test:
Code: |
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd_z.exe: Syntax error on line 187 of C:/Inetpub/UniServerZ/core/apache2/conf
/httpd.conf: Cannot load modules/mod_log_rotate.so into server: The specified mo
dule could not be found.
|
Any suggestion?
Regards. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sat 17 Jan '15 23:25 Post subject: |
|
|
Jubri wrote: |
Apache/2.4.10 (Win32), PHP/5.6.4 (WAMP Solution: The Uniform Server)
mod_log_rotate-1.00a (modules-2.4-win32-VC11.zip)
Any suggestion?
|
Yepp do not mix other binaries with the apache lounge or apachehaus binaries. I think the Uniform server guys are using a different compiler. That's why. Use only binaries from here |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Sun 18 Jan '15 22:06 Post subject: |
|
|
The Uniform Server uses a mixture of VC9 and VC10 binaries. Probably a VC9 version of mod_log_rotate will work. |
|
Back to top |
|
Jubri
Joined: 15 Jan 2015 Posts: 3
|
Posted: Thu 22 Jan '15 11:45 Post subject: |
|
|
James Blond wrote: |
Yepp do not mix other binaries with the apache lounge or apachehaus binaries. I think the Uniform server guys are using a different compiler. That's why. Use only binaries from here
|
Jan-E wrote: | The Uniform Server uses a mixture of VC9 and VC10 binaries. Probably a VC9 version of mod_log_rotate will work. |
Thanks for reply's
More info (Apache-Info):
Code: |
Server Settings
Server Version: Apache/2.4.10 (Win32) OpenSSL/1.0.1j-fips PHP/5.6.4
Apache Lounge VC10 Server Built: Jul 19 2014 11:02:31
Server loaded APR Version: 1.5.1
Compiled with APR Version: 1.5.1
Server loaded APU Version: 1.5.3
Compiled with APU Version: 1.5.3
Module Magic Number: 20120211:36
Hostname/port: xxx:80
Timeouts: connection: 60 keep-alive: 5
MPM Name: WinNT
MPM Information: Max Daemons: 64 Threaded: yes Forked: no
Server Architecture: 32-bit
Server Root: E:/Inetpub/UniServerZ/core/apache2
Config File: E:/Inetpub/UniServerZ/core/apache2/conf/httpd.conf
Server Built With:
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/apache"
-D SUEXEC_BIN="/apache/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error.log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
|
If it's launched via Uniform Launcher (exe app, with user current user credentials), all works fine, but if it's lauched via "windows service" don't work.
(h**p://w*w.uniformserver.com/ZeroXI_documentation/run_as_service.html)
Perhaps it's a "startup directory", permissions, or absolute paths needed problem...
Regards. |
|
Back to top |
|
Jubri
Joined: 15 Jan 2015 Posts: 3
|
Posted: Wed 28 Jan '15 14:26 Post subject: |
|
|
Finally, Installing Visual C++ Redistributable for Visual Studio 2012, ... it works as service!
Thks.
Regards. |
|
Back to top |
|