Monthly Archives: July 2014

reinstall roundcube on cpanel from source

cd /usr/local/cpanel/base
rm -rf roundcube*
mysql mysql>drop database roundcube;

cd /usr/local/cpanel/base
wget http://easynews.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.1beta2.1.tar.gz
tar -zxvf roundcubemail-0.1beta2.1.tar.gz
mv -f roundcubemail-0.1beta2 roundcube
cd roundcube
chmod -R 777 temp
chmod -R 777 logs

mysql>CREATE DATABASE roundcube;
mysql>use roundcube;
mysql>source SQL/mysql.initial.sql;
mysql>>quit

cd config
mv db.inc.php.dist db.inc.php
mv main.inc.php.dist main.inc.php

vi db.inc.php
$rcmail_config[‘db_dsnw’] = ‘mysql://roundcube:pass@localhost/roundcubemail’;
vi main.inc.php
$rcmail_config[‘localhost’] = “localhost”;

cd /usr/local/cpanel/base/roundcube/skins/default/images/
cp roundcube_logo.png /usr/local/cpanel/base/frontend/x/images/roundcube_logo.png
cp roundcube_logo.png /usr/local/cpanel/base/webmail/x/images/roundcube_logo.png
wget http://www.yourserverguide.com/Files/HGpatch-roundcube-1.0BETA2.1
patch -p0 < HGpatch-roundcube-1.0BETA2.1

Starting httpd: httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf

If you can’t start directadmin on your Centos server:

Starting httpd: httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf

Fix:

cd /usr/local/directadmin/custombuild/
./build apache
./build mod_ruid2
./build php n
./build rewrite_confs

/etc/init.d/httpd restart