The Rootserver Info Blog https://www.rootserver.lu The world of servers build on open software Mon, 19 Oct 2015 19:58:22 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.5 Wrong time in Webmail https://www.rootserver.lu/2015/10/19/wrong-time-in-webmail/ Mon, 19 Oct 2015 19:58:22 +0000 http://www.rootserver.lu/?p=456 Falls die Serverzeit und Zeitzone korrekt eingestellt is und die
Zeit in der Webmail trotzdem falsch anzeigt dann editieren Sie:
/usr/local/cpanel/3rdparty/php/54/etc/php.ini
Entfernen Sie das ; in der Zeile: date.timezone =
und geben Sie die korrekte Zeitzone an, z.B date.timezone = “Europe/Berlin”

]]>
Custom php.ini with Cpanel mod_suphp https://www.rootserver.lu/2015/01/28/custom-php-ini-with-cpanel-mod_suphp/ https://www.rootserver.lu/2015/01/28/custom-php-ini-with-cpanel-mod_suphp/#respond Wed, 28 Jan 2015 08:40:11 +0000 http://www.rootserver.lu/?p=451 Copy the server’s php.ini file (/usr/local/lib/) to the user’s home directory (For example, /home/username).
Add the new values to the user’s php.ini file
For each directory that contains PHP scripts that require the custom settings, add suPHP_ConfigPath /home/username/ to the .htaccess file in the folder where the PHP script is located.

]]>
https://www.rootserver.lu/2015/01/28/custom-php-ini-with-cpanel-mod_suphp/feed/ 0
CentOS syncronize with NTP Server https://www.rootserver.lu/2014/08/17/centos-syncronize-with-ntp-server/ https://www.rootserver.lu/2014/08/17/centos-syncronize-with-ntp-server/#respond Sun, 17 Aug 2014 11:35:51 +0000 http://www.rootserver.lu/?p=448 It can be done easily. Login as root and type the following:

yum install ntp
chkconfig ntpd on
ntpdate pool.ntp.org
service ntpd start

 

]]>
https://www.rootserver.lu/2014/08/17/centos-syncronize-with-ntp-server/feed/ 0
Cpanel Fatal Error https://www.rootserver.lu/2013/01/24/cpanel-fatal-error/ https://www.rootserver.lu/2013/01/24/cpanel-fatal-error/#respond Thu, 24 Jan 2013 18:10:23 +0000 http://www.rootserver.lu/?p=438 If your cpanel is not loading and you see instead:
“[a fatal error or timeout occurred while processing this directive]”
then login ssh as root user and execute:
~#chmod 555 /sbin/ifconfig

]]>
https://www.rootserver.lu/2013/01/24/cpanel-fatal-error/feed/ 0
Brute Force Protection Cpanel https://www.rootserver.lu/2012/10/10/brute-force-protection-cpanel/ https://www.rootserver.lu/2012/10/10/brute-force-protection-cpanel/#respond Wed, 10 Oct 2012 17:19:40 +0000 http://www.rootserver.lu/?p=426 Wenn Sie Brute Force über die Shell ein oder ausschalten möchten:
root@myhost [~]# /usr/local/cpanel/bin/cphulk_pam_ctl –disable
( ausschalten )
root@myhost [~]/usr/local/cpanel/bin/cphulk_pam_ctl –enable
( einschalten )

]]>
https://www.rootserver.lu/2012/10/10/brute-force-protection-cpanel/feed/ 0
.htaccess to subdirectories https://www.rootserver.lu/2012/08/23/htaccess-to-subdirectories/ https://www.rootserver.lu/2012/08/23/htaccess-to-subdirectories/#respond Thu, 23 Aug 2012 08:08:22 +0000 http://www.rootserver.lu/?p=416 {}/.htaccess’ \; This code will create an .htaccess into each subdirectoty with content “allow from all”.]]> If you want add a .htaccess file into each subdirectory of a folder type:
#~ find /home/mydirectory/public_html/ -type d -exec sh -c ‘echo “allow from all” > {}/.htaccess’ \;
This code will create an .htaccess into each subdirectoty with content “allow from all”.

]]>
https://www.rootserver.lu/2012/08/23/htaccess-to-subdirectories/feed/ 0
Cpanel Theme Broken https://www.rootserver.lu/2011/08/18/cpanel-theme-broken/ https://www.rootserver.lu/2011/08/18/cpanel-theme-broken/#respond Thu, 18 Aug 2011 19:54:59 +0000 http://www.rootserver.lu/?p=403 If you have a broken Cpanel Theme
you can reinstall it from a root shell.
cd /root
wget http://httpupdate.cpanel.net/cpanelsync/STABLE/x.tar.bz2
cd /usr/local/cpanel/base/frontend/
mv x x-old-backup
tar jxvf /root/x.tar.bz2

You may replace x with the name of the broken Cpanel Theme

]]>
https://www.rootserver.lu/2011/08/18/cpanel-theme-broken/feed/ 0
Cpanel Bugging Roundcube https://www.rootserver.lu/2011/01/10/cpanel-bugging-roundcube/ https://www.rootserver.lu/2011/01/10/cpanel-bugging-roundcube/#respond Mon, 10 Jan 2011 15:30:32 +0000 http://www.rootserver.lu/?p=398 To restore the roundcube configuration type:
#~/usr/local/cpanel/bin/update-roundcube –force
This will recreate the roundcube config files

]]>
https://www.rootserver.lu/2011/01/10/cpanel-bugging-roundcube/feed/ 0
Bugging ClamAV https://www.rootserver.lu/2010/10/06/bugging-clamav/ https://www.rootserver.lu/2010/10/06/bugging-clamav/#respond Wed, 06 Oct 2010 05:02:43 +0000 http://www.rootserver.lu/?p=392 install File::Scan::ClamAV exit]]> If ClamAV is refusing to work on your Cpanel Box
it’s probably caused by a missing perl module. Type:
~# perl -MCPAN -e shell
cpan> install File::Scan::ClamAV
exit

]]>
https://www.rootserver.lu/2010/10/06/bugging-clamav/feed/ 0
Untar multiple files https://www.rootserver.lu/2010/09/24/untar-multiple-files/ https://www.rootserver.lu/2010/09/24/untar-multiple-files/#respond Fri, 24 Sep 2010 06:55:33 +0000 http://www.rootserver.lu/?p=386 To untar multiple files in a directory type:
~ # $ for i in *.tar; do tar -xvf $i; done
This command creates a loop to extract all archives.

]]>
https://www.rootserver.lu/2010/09/24/untar-multiple-files/feed/ 0