Where is apache cgi-bin?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Where is apache cgi-bin?

Postby dukarc » 21. July 2005 17:09

I am trying to use a php/perl scipted program to show a progress bar when i upload files to my webserver. The instructions to get it working are as follows:

Installation Steps.
-------------------
1) copy the files in the php folder to your webspace. This will be
/var/www/html or /usr/local/apache/htdocs for default installations
of apache. c:\inetpub\wwwroot for IIS

2) copy the files in the cgi-bin folder into your webservers cgi-bin
directory. For 'standard' apache installations this may be
/var/www/cgi-bin or /usr/local/apache/cgi-bin

3) load upload.html in your browser and test.

4) If your web server's cgi-bin is NOT labeled as cgi-bin you will have
to edit the upload.php and replace '/cgi-bin/upload.cgi' with what
ever your path is. Also open header.cgi and change the line that
starts with php_uploader to match your PHP scripts url.
------------------------------------------------------------------------------------

I have changed apache's document root to mnt/hdc/www. This is where I placed the php folder they speak of. However I'm not sure where apache's cgi-bin folder is on XAMPP? I tried /opt/lampp/cgi-bin, but that didn't work. Other than this I am running off of a fairly fresh installation.
and the jellyfish replied,
"why thats nothing but the lip of the vast bowl that holds the sea"
User avatar
dukarc
 
Posts: 2
Joined: 14. April 2005 21:56

Postby yguru » 22. July 2005 09:34

In /lampp/etc you find the Apache configuration file httpd.conf .
The cgi folder is defined with
Code: Select all
ScriptAlias /cgi-bin/  /opt/lampp/cgi-bin

At the same time, the request http://localhost/cgi-bin/ is redirected to the local folder /opt/lampp/cgi-bin .

If you want to execute perl scripts in /htdocs (your web folder), you have to configure httpd.conf with
Code: Select all
Options +ExecCGI

preferably allowing script execution only in those folders where you run your scripts, ie.
Code: Select all
<Directory "/opt/lampp/htdocs/myscripts">
Options +ExecCGI
</Directory>


More information here:
http://httpd.apache.org/docs/howto/cgi. ... opermitcgi
User avatar
yguru
 
Posts: 32
Joined: 23. March 2005 01:47


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 46 guests