Hi, this is a question to the makers of ISPConfig and all other Apache buffs. I have followed the HowTo Intrusion Detection: Snort (IDS), OSSEC (HbIDS) And Prelude (HIDS) On Ubuntu Gutsy Gibbon and got stuck where it is all about including apache directives into the apache files. The HowTo obviously assumes a "normal" installation with configuration in 'sites-enabled' as opposed to under 'vhosts' as is done with ISPConfig: Now, I preferred the cgi option anyway and wanted to run prewikka out of a subdirectory. And lo, I found this on the prelude/prewikka site: I included the apache directives in the provided field of the ISPConfig managed site login03.chillifire.net, which generates Vhosts_ispconfig.conf. That now looks like this: Code: ################################### # # ISPConfig vHost Configuration File # Version 1.0 # ################################### # NameVirtualHost 210.48.62.36:80 <VirtualHost 210.48.62.36:80> ServerName localhost ServerAdmin root@localhost DocumentRoot /var/www/sharedip </VirtualHost> # # ###################################### # Vhost: login03.chillifire.net:80 ###################################### # # <VirtualHost 210.48.62.36:80> [B]Alias /prelude/prewikka /usr/share/prewikka/htdocs/ ScriptAlias /prelude/ /usr/share/prewikka/cgi-bin/prewikka.cgi <Directory "/usr/share/prewikka/htdocs/"> AllowOverride None Options ExecCGI <IfModule mod_mime.c> AddHandler cgi-script .cgi </IfModule> Order allow,deny Allow from all </Directory>[/B] ServerName login03.chillifire.net:80 ServerAdmin [email protected] DocumentRoot /var/www/web1/web ServerAlias chillifire.net DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm Alias /cgi-bin/ /var/www/web1/cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl ErrorLog /var/www/web1/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php3> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php4> SetOutputFilter PHP SetInputFilter PHP </Files> <Files *.php5> SetOutputFilter PHP SetInputFilter PHP </Files> php_admin_flag safe_mode Off Alias /error/ "/var/www/web1/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3 </VirtualHost> # Apache restarts without errors and no entries in error.log, so that's encouraging, but when I call http://login03.chillifire.net/prelude, I get a screen '500 error - Internal Server Error' - obviously the apache configuration is not allright yet. Now that's where I am stuck. Can an ISPConfig or Apache expert help me out, please? Any help is appreciated. Thanks chillifire
Solved: prewikka now opens correctly Hi, i could never figure why I did not get an error in /var/log/error.log or /var/log/suexec.log (as the error seemed cgi related). I found the relevant hint in this post http://www.howtoforge.com/forums/showthread.php?t=14820 which shows that different error.log is used - one per website. Makes sense. In there I found the cue: Code: [...] [Sun Feb 24 18:44:35 2008] [error] [client 121.98.128.10] for line in open(self.filename).readlines(): [Sun Feb 24 18:44:35 2008] [error] [client 121.98.128.10] IOError [Sun Feb 24 18:44:35 2008] [error] [client 121.98.128.10] : [Sun Feb 24 18:44:35 2008] [error] [client 121.98.128.10] [Errno 13] Permission denied: '/etc/prewikka/prewikka.conf' [Sun Feb 24 18:44:35 2008] [error] [client 121.98.128.10] [Sun Feb 24 18:44:35 2008] [error] [client 121.98.128.10] Premature end of script headers: prewikka.cgi It turns out the configuration file /etc/prewikka/prewikka.conf does not have the correct permissions set. One might be forgiven to think that it comes with the permissions it requires out of the package, but hey. Code: $ chmod 755 /etc/prewikka/prewikka.conf solved the problem Thought I close the loop for anyone else running into the same problem. Cheers chillifire