Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8975287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:50:21+00:00 2026-06-15T18:50:21+00:00

I have Apache 2.2 32bit server running on Windows 7 x64. I need to

  • 0

I have Apache 2.2 32bit server running on Windows 7 x64. I need to use perl, so I’ve installed Strawberry 5.12.3 32bit and configured apache so I have 2 locations:
primary – cgi only and secondary – with mod_perl. My problem is that I can run pages and scripts from the secondary location without any problems, while primary location generates 500 error and errorlog entry saying that:

[Wed Dec 12 09:13:10 2012] [error] [client 127.0.0.1] (OS 193)%1 is not a valid win32 application.  : couldn't create child process: 720193: login.pl

In Windows Event Log I have error 7001. Scripts in console run fine. Have you got any idea what is wrong?

Here is my Apache httpd.conf

ServerRoot "C:/Apache2_2"

PerlSetEnv NO_CACHE 1
PerlSetEnv DEBUG_SQL 1
Listen 80

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule perl_module modules/mod_perl.so
LoadFile "C:/strawberry/perl/bin/perl512.dll"

PerlSwitches -wT -IC:/home/kks/srv/bin

<IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
        User daemon
        Group daemon
    </IfModule>
</IfModule>
ThreadsPerChild 20
ServerAdmin me@me.pl
DocumentRoot "C:/Apache2_2/htdocs"
ErrorLog "|perl bin/pipedLogClient.pl -e"
LogLevel warn

SetEnv PERLDB_OPTS "RemotePort=localhost:9000"
SetEnv DBGP_IDEKEY "kks"

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
    CustomLog "|perl bin/pipedLogClient.pl -a" common
</IfModule>

<IfModule alias_module>
    Alias /primary/static/ "C:/home/kks/srv/bin/static/"
    ScriptAlias /primary/ "C:/home/kks/srv/bin/"

#===   primary   ===#

<Location "/primary/">
        AllowOverride None
        Options FollowSymLinks
        Order allow,deny
        Allow from all
</Location>
<Location "/primary/static/">
        SetHandler default-handler
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
</Location>

Alias /secondary/static/ "C:/home/kks/srv/bin/static/"
ScriptAlias /secondary/ "C:/home/kks/srv/bin/"

<Location "/secondary/">
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
        PerlOptions +ParseHeaders
        PerlCleanupHandler owf_cleanup
        Options FollowSymLinks
        Options  +ExecCGI
        Order allow,deny
        Allow from all
</Location>

<Location "/secondary/static/">
        SetHandler default-handler
        Options  None
        Order allow,deny
        Allow from all
</Location> 

</IfModule>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:50:22+00:00Added an answer on June 15, 2026 at 6:50 pm

    Check the shebang line in login.pl and make sure the perl there is pointing to the path where you have installed strawberry

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Apache/SVN running on Windows Server 2003 with authentication via LDAP/Active Directory and
I have configured Apache httpd to work as a forward proxy server. How can
I have apache installed on one of my server on two different ports, all
I have been running Apache HTTPD in 64bit mode by stripping out the 32bit
I have apache 2.2 and tomcat 5.5 running on a Windows XP machine. Which
I have Apache running on a public-facing Debian server, and am a bit worried
I am running PHP on a 64bit windows 2008 server. I have both ODBC
I have Windows 7 (32-bit) installed on laptop. I downloaded WAMP server and installed
I have Apache Tomcat 7 installed on Windows 7. I had its service in
I'm new to PHP. I installed XAMPP and have Apache running. I created helloworld.php

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.