OS

“rdate: couldn’t connect to host 172.25.32.1: Connection refused”

This problem is solve, issue was not with NTP but with xinetd service. when i run these commands on 172.25.32.1 problem is solved. chkconfig time-dgram on chkconfig time-stream on service xinetd restart} Incoming search terms:rdate connection refused (61)rdate: couldnt connect to host (17)rdate couldnt connect to host (12)

[Ubuntu] apt-get: Package has no installation candidate

When you try to install a package using apt-get, APT searches it’s own database for the package name, if the package is available in the database, then it looks for the repository from where to download the package. It then download the package from that repository and installs it. If […]

What is equivalent/alternative of chkconfig in Ubuntu or Debian?

The alternative / equivalent of chkconfig in Ubuntu is “sysv-rc-conf”. To install sysv-rc-conf, ssh to the server and execute: # apt-get install sysv-rc-conf to start manging the services, execute # sysv-rc-conf It’s an easy to use interface for managing /etc/rc{runlevel}.d/ symlinks.  sysv-rc-conf provides a graphical view for turning services on […]

phpize: command not found

You may receive the error “-bash: phpize: command not found” while executing the “phpize” command. The reason is the php-devel package is not installed on the server. The easiest way to install the package is to use ‘yum’. SSH to your server as root and execute: # yum install php-devel […]

Warning: user mockbuild does not exist: using root

The message “Warning: user mockbuild does not exist. using root” is received while installing a source rpm that was built using mock. The ‘mock’ module is required in this case which is responsible to build source RPMs (SRPMs) under a chroot environment and uses the ‘mockbuild’ user. In order to […]

Fatal error: Call to undefined function mysql_connect()

When PHP is not compiled with Mysql, you see the error Fatal error: Call to undefined function mysql_connect() in filename.php on line xx on your website though the database details mentioned in the configuration file are correct. In order to solve the problem, install the “php-mysql” package using yum # […]

PHP Warning: POST Content-Length exceeds the limit

PHP Warning: POST Content-Length of xxxxx bytes exceeds the limit of xxxxxx bytes in Unknown on line 0 You receive the “POST Content-Length” error message when a file greater than the size defined in the php.ini file is uploaded via the browser. The file you are uploading using the POST […]

Howto: Check Apache Connections

How to check number of connections to the Apache server? netstat command will show you the accurate connections to each of your service. In order to check the number of connections to port 80, use the netstat command and grep the Apache port. List the connections to port 80: netstat […]

/tmp partition full. Howto increase /tmp partition size

/tmp partition full… How to increase /tmp partition? You can create a Virtual partition on Linux in case your server isn’t built with a /tmp partition OR you need to increase the disk space of the partition for some reason, and then you can mount the virtual partition as /tmp. […]