Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th June 2009, 18:16
Slowhand Slowhand is offline
Member
 
Join Date: Sep 2007
Posts: 96
Thanks: 6
Thanked 0 Times in 0 Posts
Default Newb: Roundcube installation gone slightly awry...

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...

Quote:
I have just been battling with the RC installer on a machine which isn't yet facing the internet and has no DNS pointing at it.

I completed the install but couldn't complete the final tests due to the reasons above.

Now I find that RC is installed in /usr/share/webmail/roundcubemail-0.2.2
Not /usr/share/webmail/ where I wanted it to be.

If I go to mydomain/webmail/roundcubemail-0.2.2/ I can log in fine (although there is only one folder, 'Inbox'...)

Did this happen because I didn't complete the installer properly?

I googled for a solution and settled on:
Code:
sudo su
cd to /usr/share/webmail/roundcubemail-0.2.2
then did
tar cf - . |(cd //usr/share/webmail; tar xvf -)
Quick prayer before hitting return...
Seems to have worked.

Can anyone comment on whether I have done the right thing?
Is my install Ok?
Why did this happen?
Shouldn't I see sent/junk/drafts folders? I'm not, only Inbox.
Slowhand
Reply With Quote
Sponsored Links
  #2  
Old 11th June 2009, 18:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

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 Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 11th June 2009, 19:37
Slowhand Slowhand is offline
Member
 
Join Date: Sep 2007
Posts: 96
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
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
Reply With Quote
  #4  
Old 11th June 2009, 19:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

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 Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 11th June 2009, 20:40
Slowhand Slowhand is offline
Member
 
Join Date: Sep 2007
Posts: 96
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
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
Reply With Quote
  #6  
Old 12th June 2009, 08:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Quote:
How did that .htaccess file come to look the way it did?
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 Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Slowhand (12th June 2009)
  #7  
Old 12th June 2009, 10:43
Slowhand Slowhand is offline
Member
 
Join Date: Sep 2007
Posts: 96
Thanks: 6
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newb: Need mail server settings (Roundcube installer driving me insane...) Slowhand Installation/Configuration 11 11th June 2009 10:44
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 22:47
FTP access to roundcube pkg install directories dancn General 4 11th August 2008 19:03
newbie ububtu 6.0.6 error PHP binary line 816 davidsky73 Installation/Configuration 8 17th September 2006 11:51
ISPC install stops str2etboy Installation/Configuration 19 28th January 2006 07:18


All times are GMT +2. The time now is 08:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.