Author Archive

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”

 

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.

 

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

 

 

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

 

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 )

 

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

 

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

 

To restore the roundcube configuration type:
#~/usr/local/cpanel/bin/update-roundcube –force
This will recreate the roundcube config files

 

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

 

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.