Search code examples
apacheperlubuntulampbitnami

How to execute a script Perl with mozilla with Bitnami LAMP Stack?


I downloaded LAMP Stack from Bitnami web site as Ubuntu VM. I'm not expert, and I've some difficultes. I created a perl script as CGI called prova.cgi : it is a simple hello world. Now I have to execute it using mozilla (in windows), keeping alive the bitnami VM: I write: http://192.168.88.129/opt/bitnami/apache2/cgi-bin/prova.cgi but the result is: Not Found The requested URL /opt/bitnami/apache2/cgi-bin/prova.cgi was not found on this server.

Maybe I'm making an error about the location in which my script is supposed to stay: I put it in /opt/bitnami/apache2/cgi-bin/.

Any Suggestion? Regards, Matteo


Solution

  • "Not Found" means exactly what it says on the tin.

    What's going on, is apache is configured with a scripting location - the precise details will be in your httpd.conf. When you access a url of an appropriate type, apache will redirect the request and run the script.

    I will guess in this case - you need to fetch http://192.168.88.129/cgi-bin/prova.cgi

    But to be sure, you'd need to check your httpd.conf.