Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: [Win64/Apache] Piped log: "not a valid Win32 applicatio |
|
Author |
|
simkin
Joined: 20 Sep 2013 Posts: 4 Location: NL
|
Posted: Fri 20 Sep '13 15:37 Post subject: [Win64/Apache] Piped log: "not a valid Win32 applicatio |
|
|
** FIXED **
I am migrating my webserver to another host. All is working fine except that I am no longer able to pipe custom logs to a local perl script.
If I add the following directive to my config:
Code: | CustomLog "|bin/udpclient.pl 172.16.16.178 57080" ls_apache_json env=!exclude |
Apache will not start with the following error:
Quote: | (OS 193)%1 is not a valid Win32 application. : AH00104: unable to start piped log program 'bin/udpclient.pl 172.16.16.178 57080' |
I know the perl script is working. When I call it from a dos shell with fixed arguments it is forwarding the log entries.
Code: | C:\Apache24\bin>perl udpclient.pl 172.16.16.178 57080
log test message |
I do not understand why apache is complaining the .pl file is not a valid win32 programm. If someone could help me forward that would be greatly appreciated!
Old server:
Microsoft Windows [Version 6.0.6002]
Apache 2.2.21
perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x64-multi-thread
New Server:
Microsoft Windows [Version 6.1.7601]
Apache 2.4.6
perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x64-multi-thread
Last edited by simkin on Fri 20 Sep '13 16:18; edited 1 time in total |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 20 Sep '13 15:56 Post subject: |
|
|
Add the perl.exe infront of it. (maybe will with full path) |
|
Back to top |
|
simkin
Joined: 20 Sep 2013 Posts: 4 Location: NL
|
Posted: Fri 20 Sep '13 16:17 Post subject: |
|
|
James Blond wrote: | Add the perl.exe infront of it. (maybe will with full path) |
Good catch! That worked, thanks
Wonder if this was caused by the new OS or new Apache version |
|
Back to top |
|
|
|
|
|
|