How to change the time zone for a domain on shared server?

You can change the time zone for a particular domain via .htaccess or php.ini file. If the server PHP is compiled with apache (dso) then you can use .htaccess file to set the time zone.

SetEnv TZ location

For SuPHP servers, you can create custom php.ini file for that particular domain and add the following code.

date.timezone = “location”

How to install CSF?

You can install CSF by downloading the package from www.configserver.com.

#wget www.configserver.com/free/csf.tgz

Extract the package

#tar -zxvf csf.taz
#cd csf

[CSF firewall requires to remove any currently running IP based firewall]

If any IP based firewall is running. Remove it

#./remove_apf_bfd.sh

Install script

#./install.sh

we can start the firewall in testing mode using this commands.

#csf -s
//start the firewall

Configuration file of csf is /etc/csf/csf.conf

It is very important to check the firewall on which ports to open and close all remaining port numbers. Open the /etc/csf/csf.conf and edit the following line with port numbers.

#Incoming TCP ports
TCP_IN = “20,21,22,25,53,80,110,143,443,953,993,995,2082,2083,2087,2086.2089”
# Allow outgoing TCP ports
TCP_OUT = “20,21,22,25,37,43,53,80,110,443.953,2087,2089”
#Incoming UDP ports
UDP_IN = “20,21,53,953”
#Outgoing UDP ports
UDP_OUT = “20,21,53,113,123,953

Disable the Testing mode and start the firewall