Ahmed Amayem has written 90 articles

A Web Application Developer Entrepreneur.

Replacing (yum-plugin-replace) one yum install package (php) with another on Linux (CentOS 6)

If you have installed software from one yum repository and want to upgrade it using packages in a different yum repository you may encounter some problems because of conflicts in packages. In those cases you would have to remove the old packages then install the new ones. For example I have installed php using the…

Enabling php in Apache on Linux (CentOS 6) by Loading the Module in httpd.conf

Though installing different versions of php using yum should enable php automatically on Apache 2.2, in case there is a problem and it is not enabled this tutorial shows how to enable it. Make Sure php Is Installed We are assuming php has already been installed. If yum was used you can check this way:…

Using phpinfo to Display Info (Including Version Number) of your php (Linux)

An easy and quick way to find out what php version your apache server is using is to use the phpinfo() function. To do this we will create a file with <?php phpinfo() ?> in it and access it through our server by opening it in a browser. Deciding Where to Put the PHP File…

Installing Different Versions of php Using yum on Linux (CentOS 6)

I will be installing the yum default version of php. Check You Don’t Have php Installed [ahmed@amayem ~]$ rpm -q php package php is not installed Or [ahmed@amayem ~]$ yum list installed | grep php [ahmed@amayem ~]$ We don’t have php installed let’s check what is available: Checking Available php Packages in Default yum Repositories…

Viewing the Apache Modules Available on your Disk (Linux (CentOS 6))

If you wish to see the Apache modules available on your disk, perhaps to see the spelling when modifying the httpd.conf, then go to the following directory: [ahmed@amayem ~]$ cd /etc/httpd/ [ahmed@amayem httpd]$ ls conf conf.d logs modules run The modules directory is what we are after: [ahmed@amayem httpd]$ cd modules [ahmed@amayem modules]$ ls libphp5.so…