Monthly Archives: July 2014

Cpanel Error “EasyApache is currently upgrading your Apache and PHP installation.”

Configure PHP and suEXEC
EasyApache is currently upgrading your Apache and PHP installation.
Please wait for this process to finish before changing your PHP and Suexec settings.

root@as [~]# cd /usr/local/apache
root@as [/usr/local/apache]# ls
./                                        cgi-bin/       etc@      logs/
../                                       conf/          htdocs/   man/
AN_EASYAPACHE_BUILD_IS_CURRENTLY_RUNNING  conf_pre_ea3/  icons/    manual/
bin/                                      domlogs/       include/  modules/
build/                                    error/         lib/

root@as [/usr/local/apache]# rm AN_EASYAPACHE_BUILD_IS_CURRENTLY_RUNNING
rm: remove regular empty file `AN_EASYAPACHE_BUILD_IS_CURRENTLY_RUNNING'? y
root@as [/usr/local/apache]#

Too many open files: could not open transfer log file

This is an error which is usually thrown by the server when there is a failure to start apache. The above description can be found in the error logs of the server.

Solutions:

Step 1: Open file /etc/init.d/httpd OR /usr/sbin/apachectl

Step 2: Add `ulimit -n 65536`

{The error usually occurs due to the lower number of file descriptors.}

To check the limit of file descriptors over the server described within the file /proc/sys/fs/file-max, run the following command:

# cat /proc/sys/fs/file-max
1024

If the value found in fs.file-max small, you must increase it by running the following command:

# echo “65535 > /proc/sys/fs/file-max

To save these settings for future reboots to keep the values, you may add it to the file /etc/sysctl.conf.

# Maximum number of open files permitted
fs.file-max = 65535

To load new values from the sysctl.conf file, run:

# sysctl -p /etc/sysctl.conf

Now you must restart httpd service by running the following command:

/etc/init.d/httpd restart