Subj : Apache permission denied To : comp.os.linux From : max Date : Fri Aug 20 2004 04:06 am Hi I have a problem with my Apache 1.3.26 running on Debian woody installed with bf24. I got this apache (stable) from apt sources. When I want Apache to execute cgi scripts it takes 500 Internal server error. In the error log it writes (13) Permission denied: exec of /var/www/online.cgi failed Premature end of script headers It seems, that I have set wrong privileges, but i don't. Every directory before /var/www/online.cgi have chmod 755 and online.cgi has 755 too (I know it does not need so much privileges) It seems, that my script file online.cgi is broken. But it isn't. On another computer works fine. I tried to copy configuration files from the computer on which cgi is working to the bad one. I copied all from /etc/apache, all modules, and I set all the privileges the same. I read, that I must disable suExec mechanism, so I renamed file /usr/lib/apache/suexec to suexec.disabled But it is still reporting 500 and permission denied. Where can be the problem? *** httpd.conf *** LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so LoadModule status_module /usr/lib/apache/1.3/mod_status.so LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so LoadModule access_module /usr/lib/apache/1.3/mod_access.so LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so .... User www-data Group www-data .... DocumentRoot /var/www .... Options ExecCGI AllowOverride None Order allow,deny Allow from all .... AddHandler cgi-script .cgi .sh .pl .... *** end httpd.conf *** .