It seems a bit self-evident, but have you checked that Apache has permission to
access your cgi-bin directory?
John==============================================On Wed, 2020-06-24 at 17:14
+0100, angel Hall-Coulston wrote:
> Try setting your log file level to debug, you will get far more information.
> Also at the end of the 'log format' code in your configuration file (easy
> double check by command 'httpd -V' which will double check your conf file) add
> '%L' which when added to both access_log file formats AND error_log formats
> will give matches between the two easily found with the 'grep' command 'grep
> "[long-scrambled-unique-characters-for-that-particular-error] '*_log' . Make
> sure you first are in the log directory.
> Another helpful tip… your apache comes with it’s VERY OWN manual pages which
> when enabled in your 'includes' section of your config file, will allow you to
> access MUCH quicker than going online, where you will find everything you need
> to know. 
> 
> Angel Hall-Coulston
> Scotland.
> 
> > On 24 Jun 2020, at 00:35, barry kimelman <perlmaste...@gmail.com> wrote:
> > 
> > my system is an ubuntu 20.04 lts laptop.
> > 
> > I successfully installed apache2. I verified the installation by visiting 
> > http://localhost:80
> > 
> > Now I am having problems trying to run a Perl CGI script which I had running
> > under Windows 10 on  Apache 2.4
> > 
> > I modified the sites-enabled/000-default.conf
> >  file by removing the '#' from the start of the "Include 
> > conf-available/serve-cgi-bin.conf" line. I then created the 
> > /usr/lib/cgi-bin directory. I next put a small Perl CGI script named 
> > "printenv.cgi" under /usr/lib/cgi-bin. I then restarted the apache2 
> > server. When I attempted to run my newly created CGI script gy visiting 
> >  localhost:80/cgi-bin/printenv.cgi
> >  all that happened was I received a "404 Not Found" error. I looked at 
> > the apache logfile and it provided no further info.
> > 
> > 
> > I even tried using the "wget" command. same 404 error.
> > 
> > 
> > 
> > What have I done 
> > wrong?
> > 
> > -- 
> > 
> > Barrry Kimelman
> > Winnipeg, Manitoba, Canada

Reply via email to