• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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

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,
Message for you sir! I think it is a tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
    Bookmark Topic Watch Topic
  • New Topic