Hi, Still battling on... (Ubuntu 8.04 LTS) I have roundcube installed in /usr/share/webmail (Mostlly seems Ok. See below) I have Croydon's plugin enabled in ISPc3 to create a webmail folder in each site created by ISPc3. My server is sierra.myserver.com. If I go to myserver.com/webmail I see roundcube I created site www.123.co.uk When I go to www.123.co.uk/webmail I get a ERROR 500 - Internal Server Error! I then did the following: Code: slowhand@sierra:/var/www/www.123.co.uk/web$ ll total 20 drwxr-xr-x 2 web1 client1 4096 2009-06-09 10:48 error -rwxr-xr-- 1 web1 client1 1406 2009-06-09 10:48 favicon.ico -rwxr-xr-- 1 web1 client1 1861 2009-06-09 10:48 index.html -rwxr-xr-- 1 web1 client1 34 2009-06-09 10:48 robots.txt drwxr-xr-x 2 web1 client1 4096 2009-06-10 00:30 stats lrwxrwxrwx 1 root root 16 2009-06-09 12:12 webmail -> /var/www/webmail slowhand@sierra:/var/www/www.123.co.uk/web$ cd /var/www slowhand@sierra:/var/www$ ll total 24 drwxr-xr-x 2 root root 4096 2009-03-10 18:14 apache2-default drwxr-xr-x 3 root root 4096 2009-06-09 10:48 clients -rw-r--r-- 1 root root 45 2009-06-04 16:49 index.html lrwxrwxrwx 1 root root 34 2009-06-04 18:28 ispconfig -> /usr/local/ispconfig/interface/web drwxr-xr-x 3 root root 4096 2009-06-04 18:28 php-fcgi-scripts drwxr-xr-x 2 root root 4096 2009-06-09 13:18 special folder drwxr-xr-x 2 root root 4096 2009-06-07 06:48 webalizer lrwxrwxrwx 1 root root 19 2009-06-09 16:29 webmail -> /usr/share/webmail/ lrwxrwxrwx 1 root root 30 2009-06-09 11:19 www.123.co.uk -> /var/www/clients/client1/web1/ slowhand@sierra:/var/www$ To my newb eyes it looks as if there is a symlink from /usr/share/webmail/ to /var/www/webmail which in turn goes to /var/www/www.123.co.uk/web/webmail I thought it was the trailing '/' in the first line </usr/share/webmail/> which was the problem so I did Code: slowhand@sierra:/var/www$ sudo rm webmail slowhand@sierra:/var/www$ sudo ln -s /usr/share/webmail /var/www/webmail slowhand@sierra:/var/www$ ll total 24 drwxr-xr-x 2 root root 4096 2009-03-10 18:14 apache2-default drwxr-xr-x 3 root root 4096 2009-06-09 10:48 clients -rw-r--r-- 1 root root 45 2009-06-04 16:49 index.html lrwxrwxrwx 1 root root 34 2009-06-04 18:28 ispconfig -> /usr/local/ispconfig/interface/web drwxr-xr-x 3 root root 4096 2009-06-04 18:28 php-fcgi-scripts drwxr-xr-x 2 root root 4096 2009-06-09 13:18 special folder drwxr-xr-x 2 root root 4096 2009-06-07 06:48 webalizer lrwxrwxrwx 1 root root 18 2009-06-11 16:54 webmail -> /usr/share/webmail lrwxrwxrwx 1 root root 30 2009-06-09 11:19 www.123.co.uk -> /var/www/clients/client1/web1/ and rebooted the box. I still get the same error as before. How badly did I screw it up? Probably shouldn't wrap two issues in one thread but it might be relevant... Slowhand
If you get an error when you access a website, then look into the error log of the website and post the exact error message.
Till, (Thanks as always...) From /var/www/clients/client1/web1/log/error.log Code: [Thu Jun 11 16:17:15 2009] [alert] [client 192.168.0.6] /var/www/www.123.co.uk/web/webmail/.htaccess: php_flag not allowed here [Thu Jun 11 16:23:31 2009] [alert] [client 192.168.0.6] /var/www/www.123.co.uk/web/webmail/.htaccess: php_flag not allowed here [Thu Jun 11 16:24:08 2009] [alert] [client 192.168.0.6] /var/www/www.123.co.uk/web/webmail/.htaccess: php_flag not allowed here [Thu Jun 11 16:26:53 2009] [alert] [client 192.168.0.6] /var/www/www.123.co.uk/web/webmail/.htaccess: php_flag not allowed here [Thu Jun 11 16:55:04 2009] [alert] [client 192.168.0.6] /var/www/www.123.co.uk/web/webmail/.htaccess: php_flag not allowed here [Thu Jun 11 16:55:11 2009] [alert] [client 192.168.0.6] /var/www/www.123.co.uk/web/webmail/.htaccess: php_flag not allowed here [Thu Jun 11 17:00:37 2009] [alert] [client 192.168.0.6] /var/www/www.123.co.uk/web/webmail/.htaccess: php_flag not allowed here [Thu Jun 11 17:00:41 2009] [alert] [client 192.168.0.6] /var/www/www.123.co.uk/web/webmail/.htaccess: php_flag not allowed here Nothing more ? S
Remove all php_flag lines from the .htaccess file as they are not allowed in .htaccess files in a hosting setup. Move them to the apache directives field instead if you use mod_php, otherwise remove them completely.
Till, The /var/www/www.123.co.uk/webmail/.htaccess now looks like this Code: # AddDefaultCharset UTF-8 AddType text/x-component .htc <IfModule mod_php5.c> php_value error_log logs/errors php_value upload_max_filesize 5M php_value post_max_size 6M php_value memory_limit 64M php_value zlib.output_compression 0 php_value magic_quotes_gpc 0 php_value zend.ze1_compatibility_mode 0 php_value session.auto_start 0 php_value session.gc_maxlifetime 21600 php_value session.gc_divisor 500 php_value session.gc_probability 1 # http://bugs.php.net/bug.php?id=30766 php_value mbstring.func_overload 0 </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^favicon.ico$ skins/default/images/favicon.ico </IfModule> Order deny,allow Allow from all There were 2 lines of php_flag directives in there. I didn't add them. Is something wrongly configured somewhere? I still got the Same 5oo error in my browser.. The log file said to remove any php_value flags. The .htaccess now looks like Code: # AddDefaultCharset UTF-8 AddType text/x-component .htc <IfModule mod_php5.c> # http://bugs.php.net/bug.php?id=30766 </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^favicon.ico$ skins/default/images/favicon.ico </IfModule> Order deny,allow Allow from all And I see Roundcube in the right place! How did that .htaccess file come to look the way it did? S
it is part of roundcube, but this does not nescessarily mean that it suits for a hosting setup were the priveliges of a site has to be limited.
Till, Is there anything I can do to correct this 'globally' or will I have to correct it manually each time I create a site? S