Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi and pl returns a 500 error

Status
Not open for further replies.

totallyspaced

Technical User
May 18, 2003
5
AU
i have windows 2k.
please explain what the problem is. i have apache 2.0.45, perl 5 (ActivePerl 5.8.0.806), php-4.3.1, mysql 3.23.56. they are all working. (i can get perl to work but not with apache) apache works except cgi or perl. php is working as is mysql.

perl is installed to c:/perl/bin/

here is the error log.

Child process is ending.
[Sun May 18 23:55:40 2003] [notice] Parent: Created child process 528
[Sun May 18 23:55:41 2003] [notice] Child 528: Child process is running
[Sun May 18 23:55:41 2003] [notice] Child 528: Acquired the start mutex.
[Sun May 18 23:55:41 2003] [notice] Child 3540: Released the start mutex
[Sun May 18 23:55:41 2003] [notice] Child 528: Starting 250 worker threads.
[Sun May 18 23:55:42 2003] [notice] Child 3540: Waiting for 250 worker threads to exit.
[Sun May 18 23:55:42 2003] [notice] Child 3540: All worker threads have exited.
[Sun May 18 23:55:42 2003] [notice] Child 3540: Child process is exiting
[Sun May 18 23:55:44 2003] [error] [client 127.0.0.1] (OS 123)The filename, directory name, or volume label syntax is incorrect. : couldn't create child process: 720123: hello.pl
[Sun May 18 23:55:44 2003] [error] [client 127.0.0.1] (OS 123)The filename, directory name, or volume label syntax is incorrect. : couldn't spawn child process: c:/apache/Apache2/cgi-bin/hello.pl

this is my httpd.conf file (i have just pasted the parts you might need to tell me the problem)

ServerRoot "e:/Apache/root/Apache2"
Listen 80
<Directory />
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride all
</Directory>
<Directory &quot;c:/Apache/Apache2/htdocs&quot;>
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride none
Order allow,deny
Allow from all
</Directory>

DirectoryIndex index.shtml default.shtml index.htm default.htm index.html default.html index.phtml default.phtml index.php index.php index.php3 default.php3 index.cgi default.cgi index.pl default.pl

Alias /icons/ &quot;c:/Apache/Apache2/icons/&quot;

<Directory &quot;c:/Apache/Apache2/icons&quot;>
Options Indexes MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ &quot;c:/Apache/Apache2/cgi-bin/&quot;
ScriptAlias /php/ &quot;c:/Apache/Apache2/cgi-bin/&quot;
<Directory &quot;c:/Apache/Apache2/cgi-bin&quot;>
AllowOverride all Options
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>

AddHandler cgi-script .cgi .pl

AddHandler type-map var

AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler cgi- script .shtml
AddOutputFilter INCLUDES .shtml



this is the perl script.

#!/c:/perl/bin/perl.exe

# simple hello world cgi script
print &quot;Content-type: text/html\n\n&quot;;
print &quot;<html><body>\n&quot;;
print &quot;<hr>Hello, world!<br><hr>\n&quot;;
print &quot;
<!-- ZoneLabs Popup Blocking Insertion -->
<script language='javascript'>postamble();</script>

<!-- ZoneLabs Popup Blocking Insertion -->
<script language='javascript'>postamble();</script>
</body></html>\n&quot;;


ive also been working on ssl, i've removed it now. but would still like to use it. when ever my computer starts or openssl.exe is started it has this error openssl.exe - ordinal not found the ordinal 2201 could not be located in the dynamic link library libeay32.dll.
what is that error?


thanks in advanced.

 
i've seen a error in my typeing it is ServerRoot &quot;e:/Apache/root/Apache2&quot;
it should be ServerRoot &quot;c:/Apache/root/Apache2&quot;
 
And maybe another typo ? --->

AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler cgi- script .shtml
AddOutputFilter INCLUDES .shtml

remove that space!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top