Tag: Apache

Ubuntu: PHP libphp5.so missing: cannot open shared object file

If Apache2 service fails to start with a “libphp5.so: cannot open shared object file” message, it indicates that libphp5.so is missing on your Ubuntu server. Apache2 has detected a syntax error in your configuration files: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open […]

How To Manage Apache Resources Limits With mod_slotlimit (Debian Etch)

mod_slotlimit is an Apache module that using dynamic slot allocation algorithm and static rules, can manage resources used for each running site.   1. Installation In order to compile mod_slotlimit, you will need to have apxs2 (APache eXtension tool) installed and configured with Apache. The follow command will install it: […]

Linux Apache httpd init.d Script

It is usually a good practice to install the Apache httpd as the service on the linux server so that it can be added to system startup and does not require any intervention from user to start the Apache httpd server manually on every reboot. Linux servers like (CentOS, RHEL, […]

Apache Optimization

MaxClients ————— The number of worker processes is limited by the parameter MaxClients. MaxClients = Total RAM dedicated to the web server / Max child process size. The default value of  MaxClients is 150. If we have a server with 1gb of ram and  child process take an average size […]

[HOW-TO] Install mod_rpaf for Apache 2.2

When you do a reverse proxy in which Nginx will be the one who listen the traffic and forward anything needs to be process through PHP to Apache. With this, Apache will always receive an IP from Nginx server (or I should say localhost / 127.0.0.1 / local IP), not […]

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 […]