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 -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: log rotate and build 2.4.9
Author
msem



Joined: 21 Nov 2005
Posts: 8
Location: Milan Italy

PostPosted: Sat 12 Apr '14 12:41    Post subject: log rotate and build 2.4.9 Reply with quote

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: 3056
Location: Hilversum, NL, EU

PostPosted: Sat 12 Apr '14 20:03    Post subject: Reply with quote

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

PostPosted: Mon 14 Apr '14 9:40    Post subject: Reply with quote

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: 3056
Location: Hilversum, NL, EU

PostPosted: Mon 14 Apr '14 10:58    Post subject: Reply with quote

VC9, VC10 or VC11?

Anything in the Windows Event Viewer ?
Back to top
msem



Joined: 21 Nov 2005
Posts: 8
Location: Milan Italy

PostPosted: Mon 14 Apr '14 11:04    Post subject: Reply with quote

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: 3056
Location: Hilversum, NL, EU

PostPosted: Mon 14 Apr '14 11:15    Post subject: Reply with quote

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

PostPosted: Mon 14 Apr '14 11:37    Post subject: Reply with quote

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: 3056
Location: Hilversum, NL, EU

PostPosted: Mon 14 Apr '14 11:41    Post subject: Reply with quote

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

PostPosted: Mon 14 Apr '14 14:21    Post subject: Reply with quote

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: 1248
Location: Amsterdam, NL, EU

PostPosted: Mon 14 Apr '14 14:33    Post subject: Reply with quote

'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

PostPosted: Mon 14 Apr '14 14:52    Post subject: Reply with quote

forget my last message
My fault
Back to top
Jubri



Joined: 15 Jan 2015
Posts: 3

PostPosted: Thu 15 Jan '15 16:52    Post subject: Reply with quote

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: 7294
Location: Germany, Next to Hamburg

PostPosted: Sat 17 Jan '15 23:25    Post subject: Reply with quote

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 Wink
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Sun 18 Jan '15 22:06    Post subject: Reply with quote

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

PostPosted: Thu 22 Jan '15 11:45    Post subject: Reply with quote

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 Wink


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

PostPosted: Wed 28 Jan '15 14:26    Post subject: Reply with quote

Finally, Installing Visual C++ Redistributable for Visual Studio 2012, ... it works as service!



Thks.




Regards.
Back to top


Reply to topic   Topic: log rotate and build 2.4.9 View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules