RSSAll Entries in the "Apache Web Server" Category

PHP relocation error

This will be quick tutorial about how to fix PHP relocation error like this one: php: symbol zlibVersion , version libmysqlclient_16 not defined in in file with link time reference. Instead php: relocation error: php: symbol zlibVersion the error could be php: relocation error: php: symbol crc32.

This is an example and the issue could happen with any shared library not only with .

As per the error message the library version is not matching so we have to check the shared library dependencies. This can be done with tool called ‘ldd’ which prints the shared library dependencies. In this case we will check PHP for “libmysqlclient” so the command should be like this:

Or if for some reason the PHP binary is located elsewhere:

The output should be similar to this one:

Let’s check the file:

In my case this is a symbolic link to the library in the same folder:

Now let’s check if this file exist in another place.

My output is:

So there are two libraries, and now we have to check where is the missing symbol – for example zlibVersion. For that will use ‘nm’ command lists symbols from object files. Let’s try the current linked file:

The output is:

So it seams there are no symbols in this library.

With the other file:

The output is:

Which seams better.

Now I will just remote the current link:

And will create a new one with the library that contains the symbol:

This should resolve the case, and the php: symbol zlibVersion , version libmysqlclient_16 not defined in in file with link time reference error was solved.


Apache server status

In this tutorial I will show you how to enable Apache Server Status (server-status).

As probably you know this will provide a lot of valuable information , but since you are reading this page you are aware of this.

In general to enable the apache server status option you must edit the apache configuration file (httpd.conf)

There look for this section:


How to install Zend Optimizer

This tutorial will show you how to install Zend Optimizer on a server with RedHat like Linux operation systems.
Zend Optimizer is required by many scripts to run on your server decrypting and running them while increasing runtime performance.
This tutorial can be used when you run a server with CPanel or Plesk control panel with Apache server .

First download appropriate version of Zend Optimizer according to your server set from Upload it to the server where will be installed using FTP client like Filezilla.
Unfortunately Zend does not provide a direct download so ”wget” cannot be used in this case.

Connect to your server via SSH using your favorite SSH client (for example Putty) and switch to super user. Go to the folder where the the file was uploaded and unpack it.
This can be done with the following command: