Archive for the ‘ Linux Distributions ’ Category

Falls die Serverzeit und Zeitzone korrekt eingestellt is und die
Zeit in der Webmail trotzdem falsch anzeigt dann editieren Sie:
Entfernen Sie das ; in der Zeile: date.timezone =
und geben Sie die korrekte Zeitzone an, z.B date.timezone = “Europe/Berlin”


It can be done easily. Login as root and type the following:

yum install ntp
chkconfig ntpd on
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 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


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.


Beim Installieren erhält man die folgenden Fehlermeldung:
dpkg: Fehler beim Parsen, in Datei »/var/lib/dpkg/available
Lösung: Paketmanager neun initialisieren:
~#dpkg –clear-avail
~#dpkg -reconfigure apt


At read commands from standard input or a specified file
which are to be executed at a later time, using /bin/sh.
To schedule a computer shutdown with atd:
~# echo “/sbin/shutdown -h now” | at 22:15 01.06.2010
Your computer will shutdown on first June at 22:15


To configure a new graphic card on Debian or related distributions ( Ubuntu/Kubuntu etc. ) type:
~#dpkg-reconfigure xserver-xorg
and follow the interactive menu.