How to change date and time zone in php ?

If your php script is not showing correct date and time then it means your script is using date and time zone configured on your server. If you want to set your own date and time zone for your domain then it can be done in a very simple manner. You will need to create […]

See More

How to Clear cPanel Server logs ?

You can empty cPanel servers logs by using following commands Login into server as root root@server[#]vi logs echo > /usr/local/apache/logs/error_log echo > /usr/local/apache/logs/access_log echo > /usr/local/apache/logs/access_log echo > /usr/local/apache/logs/error_log echo > /usr/local/cpanel/logs/access_log echo > /usr/local/cpanel/logs/error_log echo > /var/log/exim_mainlog echo > /var/log/exim_rejectlog echo > /var/log/maillog echo > /var/log/messages echo > /var/log/messages.1 echo > /var/log/maillog.1 :wq! root@server[#]chmod […]

See More

404 error page not found for http://IP address/~username .

If you are getting the 404 error for the http://IP address/~username Then follow the below steps >> Login to the WHM >> Main >> Security Center >> Apache mod_userdir Tweak Apache’s mod_userdir allows users to view their sites by entering a tilde(~) and their username as the uri on a specific host. For example :: […]

See More