Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 & Fedora 19-12

If you have any questions or problems regarding this article and want help within 24 Hours? Ask Now

Ravi Saive

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

175 Responses

  1. j ali says:

    BOSS ?? Distro From Indian Govt. Org C-DIT Chennai

  2. gufran ahmad says:

    Plz help to get job on linux platform.

  3. naveen says:

    i am getting problem…while installing

    it is you can try skip broken problem….like this

  4. naveen says:

    i am getting error while installing……it showing yum skip broken problemmmmm…..like this….

  5. ROHIT RANA says:

    Hi,
    my current version of soft. running on server are –
    1.php – 5.3
    2.mysql-5.1

    I need to upgrade php5.3 to 5.4 but during upgrading one of php module (i.e php-mysql) trying to upgrade my mysql server too as it considering it as its dependency.

    I need to use mysql5.1 with upgraded version of php5.4 and need php-mysql module to have proper communication with them but do not want to upgrade my mysql version.Is it possible?

    Please help.

  6. Sneha says:

    Hi, I am getting an error while re-installing PHP packages on centos 6.6

    I do have mysql 5.6.12 (server version) and I want to install PHP enbled with mysqli support. Can you please tell me without changing any other configuration how can I get PHP installed with mysqli support.

    • Ravi Saive says:

      @Sneha,
      Could you please tell us what error you getting while re-installing PHP? Could you post that error here, so that we can work around for the solution…

  7. Thomas TAG says:

    Hello,

    I’m trying to setup my server for the latest version of moodle, which has requirements in mysql and php which you have made easy through this tutorial, however while running the install command for apache, mysql ,and php I get the following error:

    Finished Dependency Resolution
    Error: Package: php-common-5.5.15-0.1.RC1.el6.remi.x86_64 (remi-test)
    Requires: php-pecl-zip(x86-64)
    Available: php-common-5.4.33-1.el6.remi.x86_64 (remi)
    php-pecl-zip(x86-64) = 1.11.0
    Available: php-common-5.4.33-2.el6.remi.x86_64 (remi)
    php-pecl-zip(x86-64) = 1.11.0
    Removing: php-common-5.3.3-27.el6_5.1.x86_64 (@rhel-x86_64-server-6)
    Not found
    Updated By: php-common-5.5.15-0.1.RC1.el6.remi.x86_64 (remi-test)
    Not found
    Available: php-common-5.3.2-6.el6.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.2-6.el6_0.1.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.3-3.el6.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.3-3.el6_1.3.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.3-3.el6_2.5.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.3-3.el6_2.6.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.3-3.el6_2.8.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.3-14.el6_3.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.3-22.el6.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.3-23.el6_4.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.3-26.el6.x86_64 (rhel-x86_64-server-6)
    Not found
    Available: php-common-5.3.3-27.el6_5.x86_64 (rhel-x86_64-server-6)
    Not found

    Any Ideas?

  8. Gaurang Dave says:

    Hello Ravi Saiveji,
    first of all thanks for the tutorial.I am a regular reader of your website, I learn a lot from it, thanks for your all post.

    Can you give details for BOSS OS and How to install LAMP in BOSS.

  9. Ananda Bhattacharjee says:

    Hello Mr. Ravi Saive,
    I am a regular reader of your post, I learn a lot from it, thanks for your all post.
    Today I will request you for a topic about Apache & ftp(vsftp or proftp) configuration . Here I am sharing the issue.

    I have 2 sites in same server say site1.abc.com & site2.abc.com. I have 2 developer for each site say user1 & user2.
    Now I need to configure apache & ftp server, so that both developer can upload site contain to there site folder(/var/www/html/site1 & /var/www/html/site2).
    How to configure this type of setting. Hope you understand the issue & will share configuration tips on this. I ma using CentOS 6.5 64 bit Os.

    • Ravi Saive says:

      Dear Ananda,

      Thanks for being regular reader of TecMint.com. After looking into your requirements, I can say first you have to install apache and vsftp. Once these required packages are installed, follow the below configuration steps.

      1. Create two Virtual hosts in apache configuration for both the domains with respective folders. For example,

      /var/www/html/site1
      /var/www/html/site2
      

      For more information about how to create Vhosts, read our following article.

      http://www.tecmint.com/apache-ip-based-and-name-based-virtual-hosting/

      2. Create two FTP users say user1 and user2 with their respective passwords with home directories as site1 and site2.

      3. Now grant permission as owner and group to new Vhosts folders.

      # chown -R user1:user1 /var/www/html/site1
      # chown -R user2:user2 /var/www/html/site2
      

      That’s it now they are able to login to their respective folder and do ftp.

  1. February 26, 2013

    […] Cache on their Linux systems. The administrator must have a basic knowledge on how to configure and install a web server and little bit understanding of HTTP […]

  2. June 6, 2013

    […] Installation of Apache, PHP and MySQL Guide […]

  3. June 24, 2013

    […] is no need to run X Window desktops like KDE or GNOME on your dedicated LAMP server. You can remove or disable them to increase security of server and performance. To disable […]

  4. June 24, 2013

    […] is no need to run X Window desktops like KDE or GNOME on your dedicated LAMPserver. You can remove or disable them to increase security of server and performance. To disable […]

  5. October 15, 2013

    […] Install Apache Web Server […]

  6. January 2, 2014

    […] Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 & Fedora 19-12 – 88,602 Views […]

  7. May 30, 2014

    […] is no need to run X Window desktops like KDE or GNOME on your dedicated LAMP server. You can remove or disable them to increase security of server and performance. To disable […]

  8. November 25, 2014

    […] is no need to run X Window desktops like KDE or GNOME on your dedicated LAMP server. You can remove or disable them to increase security of server and performance. To disable […]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Join Over 80000+ Linux Users
  1. 53,676
  2. 2,838
  3. 20,639

Enter your email to get latest Linux Howto's