• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Object not found, CGI problems again!

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
I would really appreciate a little help here...
In my httpd.conf I have included the following:
LoadModule cgi_module modules/mod_cgi.so
AddHandler cgi-script .cgi .pl
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@myserver.net
DocumentRoot "C:\WebSites\logs.myserver.net"

ServerName logs.myserver.net

Options +Includes +Indexes
IndexOptions +FancyIndexing
ErrorLog error.log
CustomLog access.log common

# ScriptAlias /cgi-bin "C:/WebSites/logs.myserver.net/cgi-bin"

<Directory "C:/WebSites/logs.myserver.net/cgi-bin">
# #AllowOverride Options
Options +ExecCGI
# +Indexes
# Order deny,allow
# Allow from all
</Directory>
</VirtualHost>

The first problem is that I cannot get a directory listing generated of the cgi-bin directory if the ScriptAlias directive is used.
The second problem is that I get:
The server encountered an internal error and was unable to complete your request.
Error message:
couldn't create child process: 720003: hello.pl
when trying to access the very simple and definately correct 'hello.pl' Perl script within the cgi-bin directory. I have the Perl executable in the system PATH (I am using Windows XP).
I can sometimes get an 'Object not found' message, when messing around with the last directives in the <directory> block.
Do I need to specify how to run Perl scripts?
If someone could specify exactly the directive settings needed to get cgi's to run under Apache I would be most grateful.

Best regards,
Matt.
 
reply
    Bookmark Topic Watch Topic
  • New Topic