Page tree
Skip to end of metadata
Go to start of metadata

 

What are the functionality changes to Apache 2.4?

Apache 2.4 introduced  changes to Apache's configuration file. Apache 2.4 also introduced, renamed, and removed several directives.

cPanel & WHM servers use the AdvConfig feature to manage the Apache configuration file (httpd.conf). To give our customers the best experience with Apache 2.4, we updated the AdvConfig feature to handle Apache upgrades and downgrades.

What is the cPanel and Apache page that I see at my domain?

This is a placeholder page for Apache. Contact your web host so that they can ensure that your VirtualHost is properly configured in Apache's configuration file.

Why does Apache restart every 10 minutes?

This is normal behavior. The cpanellogd daemon sends Apache a SIGUSR1 (graceful restart) signal every ten minutes so that it can rotate logs and process stats.

How can I add or remove support for features like PHP or Java server pages to my Apache webserver?

EasyApache adds or removes support for features from the Apache webserver.

  • You can access EasyApache through WHM's EasyApache (Apache Update) interface (Home >> Software >> EasyApache (Apache Update)).
  • You can also run EasyApache from the command line with the /scripts/easyapache script.

Why does Apache crash with this error: [notice] child pid x exit signal File size limit exceeded (25) ?

This usually means that a log file has grown too large for the system (generally 2 GB). To address this issue, run the /scripts/biglogcheck script.

If you have extremely large or active sites that reach this limit quickly, you may wish to upgrade to a 64bit OS, or disable logging for that site altogether. If you disable logging, you will gain a small speed increase and avoid this error.

Note:

If you disable logging, you will not be able to generate statistics for the domain.

Why did I receive the HTTP Error code: 206 Partial content error message?

To find out why you received this message, perform the following steps:

  1. SSH in to the server as the root user.
  2. Run the tail -f /usr/local/apache/logs/error_log command.
  3. Refresh the page. You will see an error message in your SSH session.

What are Apache dummy requests?

Apache occasionally needs to wake processes that listen for new connections. To do so, Apache uses dummy requests.

  • A dummy request is an HTTP request that Apache sends to itself.
  • When Apache uses dummy requests without SSL, these requests appear in access log files with the remote address set to the local host (127.0.0.1 for IPv4 or ::1 for IPv6).
  • These dummy requests are a normal part of Apache's functionality, and you can ignore them.
  • On a lightly loaded server, WHM's Apache Status interface (Home >> Server Status >> Apache Status) will frequently show a high number of dummy connections. This occurs because the feature shows the last request to a worker slot, which is typically a dummy request that wakes a process so that the process can repeat
  • Apache's dummy requests cannot use SSL. Servers with hosts that use SSL can receive noise in the log file that resembles the following example:

 

 

How do I customize the way that Apache treats certain types of files?

This is handled by the mod_mime Apache module. The AddHandler and AddType directives tell Apache that particular file extensions should be treated certain ways.

 

cPanel & WHM with PHP 5

Important:

cPanel & WHM no longer supports PHP 4. We recommend that you update your site scripts to a version that is compatible with PHP 5.

You can download and install PHP 4 as an unsupported custom optional module.

How do I upgrade from PHP 4 to PHP 5, and what changes do I need to make?

To upgrade from PHP 4 to PHP 5, recompile PHP during the Apache build process. You can start the Apache build process in two ways:

  1. Use WHM's EasyApache (Apache Update) interface (Home >> Software >> EasyApache (Apache Update)).
  2. Run the /scripts/easyapache command from the command line.

Note:

Make sure that the PHP programs and scripts that you plan to run are compatible with PHP5.

Which version of PHP 5 will run problem-free now?

The answer to this depends upon which third-party extensions that you need.

  • For example, Zend Opt 3.3.0 and PHP 5.2.2+ may cause errors when they are installed concurrently.

As we identify incompatibilities with third-party extensions, we document them in the EasyApache (Apache Update) interface (Home >> Software >> EasyApache (Apache Update)).

We also run some dependency resolution before the build. This skips extensions that are known to be incompatible in case a user ignores the warning in the interface.

Which PHP version displays on the end user's cPanel account?

The system's default PHP version displays.

How do I install and activate Zend Optimizer?

The root user can install and activate Zend Optimizer with the /scripts/installzendopt script.

How do I install ImageMagick?

Run the /scripts/installimagemagick script as the root user to install ImageMagick.

Note:

This information applies to both upgrades and fresh installs.

How do I change the maximum connections for HTTP?

You can change the value of the Max Clients setting in WHM's Global Configuration interface (Home >> Service Configuration >> Apache Configuration >> Global Configuration).

The value you choose for the Max Clients setting must be equal to or lower than the value of the Server Limit setting.