Showing posts with label Services. Show all posts
Showing posts with label Services. Show all posts

How to change server time/timezone linux

0 comments
In /etc the file, localtime, is a link to or copy of a file containing information about your time zone. Zone information files are usually in /usr/share/zoneinfo but this depends on your distribution. So if your localtime file points to a zone info file that is not your time zone you can change it by browsing the directories in /usr/share/zoneinfo to find your country, then find your city or a city in the same time zone and link localtime to it.

#  ln -sf /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime

Cpanel restart services

0 comments

/scripts/restartsrv mysql
/scripts/restartsrv httpd
/scripts/restartsrv bind
(proftpd,exim,sshd,cppop,bind,mysql)


/etc/rc.d/init.d/cpanel restart
/scripts/reswhostmgr
/etc/rc.d/init.d/portsentry start
/etc/rc.d/init.d/network restart
/etc/sysconfig/network-scripts (where ip’s are stored)


/etc/init.d/exim restart


services exim stop

Iptables services

0 comments

service iptables start
service iptables stop
service iptables restart