Archive for December, 2011

Webcalender Error Cache error: Could not write file /tmp

After installing web calender from fantastico, you will get the following error. Cache error: Could not write file /tmp/d16090f5de830d7675276b6523ce3f59.dat. Solution : Edit settings.php file which you will find under includes folder. Search for db_cachedir: /tmp and replace it with following db_cachedir: /home/user/public_html/tmp Save the file then create tmp folder under public_html and assign 777 permission. […]

Rouncube hangs while sending message

Whenever you compose email and click send, it just never sends the message. A circle keeps rotating at the top saying Sending. Solution : Login to server with root user and made following changes. vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php and serach for following line $rcmail_config[‘smtp_user’] = ‘%u’; Replace it with $rcmail_config[‘smtp_user’] = ”;    

Apache restart failed. Unable to load pid from pid file and no httpd process found in process list

If you are getting the message “Apache restart failed. Unable to load pid from pid file and no httpd process found in process list.” It may cause by the problem with mod_ssl. Just check the log files using tail -f /usr/local/apache/logs/error_log If you are getting “File exists: Cannot create SSLMutex with file `/usr/local/apache/logs/ssl_mutex’Configuration Failed“Also check apache status […]

How to install Fantastico on cpanel server?

Steps to install fantastico: 1. Login to server as root 2. cd /usr/local/cpanel/whostmgr/docroot/cgi 3. Now download fantastico tar file using following cmd: wget -N http://files.betaservant.com/files/free/fantastico_whm_admin.tgz(external link) 4. Untar it: tar -xzpf fantastico_whm_admin.tgz 5. Remove tar file : rm -rf fantastico_whm_admin.tgz 6. Now login to WHM 7. Go to plugins and click on Fantastico De Luxe […]

server security commands

Server security commands: 1) Make Sure No Non-Root Accounts Have UID Set To 0 awk -F: ‘($3 == “0”) {print}’ /etc/passwd 2) Disable Unwanted Services Type the following command to list all services which are started at boot time in run level # 3: chkconfig –list | grep ‘3:on’ 3) Find Listening Network Ports Use […]

How to configure Google Apps in cpanel server ?

DNS settings for Google Apps: 1) Set the following MX record for your domain . domain.com. IN MX 10 aspmx.l.google.com. domain.com. IN MX 20 alt1.aspmx.l.google.com. domain.com. IN MX 5 alt2.aspmx.l.google.com. domain.com. IN MX 10 alt3.aspmx.l.google.com. domain.com. IN MX 10 aspmx2.googlemail.com. domain.com. IN MX 10 aspmx3.googlemail.com. 2) Then set the CNAME record for your mail.domain.com Replace […]

How to cluster the DNS.

How to cluster the DNS? A DNS cluster is a number of nameservers that share records. This allows you to physically separate your nameservers so that in the event of, for instance, a power outage, you still have DNS functionality. This way, visitors can reach websites on your server more quickly after the web server […]

How to add Domainkeys for a domain on a cPanel server?

How to add Domainkeys for a domain on a cPanel server? Introduction: “DomainKeys” is an anti-spam software application that uses a public key, cryptography to authenticate the sender’s domain. cPanel offers a installer script “domain_keys_installer” using which the DomainKeys can be created and added automatically for a domain. Steps: By default the DomainKeys is not […]

How to connect MySql Database from remote machine?

How to connect MySql Database from remote machine Introduction: Some time clients or their web developer/designer need to connect to MySql database server hosted on remote cPanel server to be accessed from their desktop. Following are the steps to connect to MySql Database from remote Machine. A. How to enable Connection to Remote Host 1. […]

Hardening PHP for Security

Hardening PHP for Security PHP is the most popular scripting language for apache and mysql. You will need to disable system level functions in the php configuration file. Suhosin Suhosin is an advanced protection system for PHP installations. It was designed to protect your servers on the one hand against a number of well known […]