Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

(13)Permission denied: exec of admin/admin.cgi failed, how to?

Quote Reply
(13)Permission denied: exec of admin/admin.cgi failed, how to?
hello,

i get this error after installation


Code:
AH01215: (13)Permission denied: exec of '/var/www/html/test/admin/admin.cgi' failed
End of script output before headers: admin.cgi



the user is
Code:
root:root
the same goes for apache



here is my host




Code:
<VirtualHost *:80>
ServerName test.com
DocumentRoot /var/www/html/test

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/test>
Options +ExecCGI -Indexes -MultiViews +SymLinksIfOwnerMatch

Options All
AllowOverride None
Order allow,deny
Allow from all
Options ExecCGI
AddHandler cgi-script cgi pl
</Directory>
</VirtualHost>

any ideas?

Quote Reply
Re: [patrioticcow] (13)Permission denied: exec of admin/admin.cgi failed, how to? In reply to
Hi,

Are you sure you want it as root? Seems a bit too high of a privilege to give to the script! You may want to look into "SuEXEC", so it runs and stores as the FTP user (not "nobody" or "root") - http://httpd.apache.org/docs/2.2/suexec.html

What CHMOD is it? What CHMOD is the admin folder?

Also, you **REALLY** should have a totally separate folder for cgi stuff. For example:

Code:
<VirtualHost *:80>
ServerName test.com
DocumentRoot /var/www/html/test

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

<Directory /var/www/cgi/test>
Options +ExecCGI -Indexes -MultiViews +SymLinksIfOwnerMatch

Options All
AllowOverride None
Order allow,deny
Allow from all
Options ExecCGI
AddHandler cgi-script cgi pl
</Directory>

<Directory /var/www/html/test>
Options +ExecCGI -Indexes -MultiViews +SymLinksIfOwnerMatch

Options All
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Otherwise, you are shooting yourself in the foot if you ever wanted to get mod_perl running Shocked

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!