HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   trying to install roundcubemail (http://www.howtoforge.com/forums/showthread.php?t=42124)

ressel 23rd December 2009 14:38

trying to install roundcubemail
 
Hello I'm trying to install roundcubemail on my centos 5, and i have followed the guide i have found here on the forum, i have used this setup:

Can anyone help how i can fix this?
Code:

###########################################
#This is basically a modified version of /etc/apache2/conf.d/phpmyadmin.conf
# RoundCube default Apache configuration

Alias /roundcube /usr/share/roundcube/roundcubemail-0.3.1

<Directory /usr/share/roundcube/roundcubemail-0.3.1>
Options Indexes FollowSymLinks
DirectoryIndex index.php

# Authorize for setup
<IfModule mod_php4.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>
#########################################

when i try access i get following error:
Forbidden
You don't have permission to access /roundcube on this server.

owner: root:root
chmod 755

[Wed Dec 23 14:30:15 2009] [error] [client xxx.xxx.xxx.xxx] client denied by server configuration: /usr/share/roundcube/roundcubemail-0.3.1

maced0n 24th December 2009 02:21

Try this:

chown apache:apache -R /usr/share/roundcube/roundcubemail-0.3.1

ressel 24th December 2009 12:02

Quote:

Originally Posted by maced0n (Post 214398)
Try this:

chown apache:apache -R /usr/share/roundcube/roundcubemail-0.3.1

Sad but true, no change

falko 24th December 2009 15:02

What's the outptu of
Code:

ls -la /usr/share/roundcube/roundcubemail-0.3.1/
?

ressel 24th December 2009 15:04

Quote:

Originally Posted by falko (Post 214423)
What's the outptu of
Code:

ls -la /usr/share/roundcube/roundcubemail-0.3.1/
?

Here is the output:
Quote:

[root@web2 ~]# ls -la /usr/share/roundcube/roundcubemail-0.3.1/
total 112
drwxr-xr-x 11 apache apache 4096 Dec 23 14:27 .
drwxr-xr-x 3 root root 4096 Dec 21 22:05 ..
drwxr-xr-x 2 apache apache 4096 Oct 31 14:21 bin
-rwxr-xr-x 1 apache apache 2926 Oct 31 14:20 CHANGELOG
drwxr-xr-x 2 apache apache 4096 Oct 31 14:20 config
-rwxr-xr-x 1 apache apache 1111 Sep 22 09:50 .htaccess
-rwxr-xr-x 1 apache apache 35 Dec 23 14:28 index.html
-rwxr-xr-x 1 apache apache 9829 Oct 31 14:20 index.php
-rwxr-xr-x 1 apache apache 7645 Aug 28 10:29 INSTALL
drwxr-xr-x 3 apache apache 4096 Oct 31 14:20 installer
-rwxr-xr-x 1 apache apache 17987 Oct 29 2008 LICENSE
drwxr-xr-x 2 apache apache 4096 Oct 31 14:20 logs
drwxr-xr-x 22 apache apache 4096 Oct 31 14:20 plugins
drwxr-xr-x 7 apache apache 4096 Oct 31 14:21 program
-rwxr-xr-x 1 apache apache 1856 Oct 31 14:20 README
-rwxr-xr-x 1 apache apache 26 Mar 22 2008 robots.txt
drwxr-xr-x 3 apache apache 4096 Oct 31 14:20 skins
drwxr-xr-x 2 apache apache 4096 Oct 31 14:20 SQL
drwxr-xr-x 2 apache apache 4096 Oct 31 14:20 temp
-rwxr-xr-x 1 apache apache 4668 May 31 2009 UPGRADING
[root@web2 ~]#


maced0n 24th December 2009 16:10

mv /usr/share/roundcube/roundcubemail-0.3.1/index.html /usr/share/roundcube/roundcubemail-0.3.1/index.html.bak

ressel 24th December 2009 16:13

Quote:

Originally Posted by maced0n (Post 214434)
mv /usr/share/roundcube/roundcubemail-0.3.1/index.html /usr/share/roundcube/roundcubemail-0.3.1/index.html.bak

done, and no change.
still error 403.
Forbidden

You don't have permission to access /roundcube on this server.

maced0n 24th December 2009 17:35

This is probably a SELinux issue.

It's best to move your roundcube files in your /var/www/ directory and make appropriate changes in apache configuration.

Quote:

mv /usr/share/roundcube /var/www/roundcube
Quote:

Alias /roundcube "/var/www/roundcube/roundcubemail-0.3.1"

<Directory "/var/www/roundcube">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

ressel 24th December 2009 17:40

Quote:

Originally Posted by maced0n (Post 214438)
This is probably a SELinux issue.

It's best to move your roundcube files in your /var/www/ directory and make appropriate changes in apache configuration.

I have tried copy the files to /var/www/roundcube/

[Thu Dec 24 17:38:41 2009] [error] [client 85.81.104.178] client denied by server configuration: /var/www/roundcube/roundcubemail-0.3.1
[Thu Dec 24 17:38:41 2009] [error] [client 85.81.104.178] client denied by server configuration: /var/www/roundcube/roundcubemail-0.3.1

Code:

###########################################
#This is basically a modified version of /etc/apache2/conf.d/phpmyadmin.conf
# RoundCube default Apache configuration

Alias /roundcube /var/www/roundcube/roundcubemail-0.3.1

<Directory /var/www/roundcube/roundcubemail-0.3.1>
Options Indexes FollowSymLinks
DirectoryIndex index.php

# Authorize for setup
<IfModule mod_php4.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>
#########################################


maced0n 24th December 2009 19:30

Try with this configuration

Quote:

###########################################
#This is basically a modified version of /etc/apache2/conf.d/phpmyadmin.conf
# RoundCube default Apache configuration

Alias /roundcube /var/www/roundcube/roundcubemail-0.3.1

<Directory /var/www/roundcube/roundcubemail-0.3.1>
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all



# Authorize for setup
<IfModule mod_php4.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>
#########################################


All times are GMT +2. The time now is 13:49.

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