cgi-bin question [SOLVED]
The following is in my apache2.conf:````
Include generic snippets of statements
Include /etc/apache2/conf.d/
Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
Server Name
ServerName site.org
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
This is my /etc/apache2/sites-available/default/ file:
DocumentRoot /var/www/
<directory>Options FollowSymLinks
AllowOverride None</directory>
<directory var="" www="">Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all</directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<directory "="" usr="" lib="" cgi-bin"="">AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all</directory>
…
````
Was wondering if anyone knew how to properly set up the cgi-bin.
1 Reply
EDIT: Officially went through all my code, and it turns out, that the cgi-bin was working fine, but there was a problem with actual code making files. When I moved my files from my old hosting to my VPS, the directories were different, so it was caused by a /dir/ needing to be dir/.
And mod_perl did help, too. Fixed up a different error I was having, yay.