Activity Stream
48,167 MEMBERS
6848 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member
    Website's:
    enetcloud.com enetcloud.co.uk

    Default How To Install Apache with MySQL and PHP on Linux CentOS

    In this tutorial we will use the hostname server1.example.com with the IP address 192.168.0.1. These settings might differ for you, so you replace them where appropriate.

    1. Install MySQL 5

    yum install mysql mysql-server

    Then we need to create the system startup links for MySQL so that MySQL starts automatically whenever the system boots:

    chkconfig ?levels 235 mysqld on /etc/init.d/mysqld start

    Then run the following commands to setup a password for the root user of mySQL database (otherwise everyone will be able to connect!):

    mysqladmin -u root password yourrootsqlpassword
    mysqladmin -h server1.example.com -u root password yourrootsqlpassword

    2. Install Apache 2

    yum install httpd

    Now run the following command to configure Apache to start at boot time?

    chkconfig ?levels 235 httpd on

    Now start Apache:

    /etc/init.d/httpd start

    Apache has been successfully installed! Go to http://192.168.0.1 and you should see the Apache2 Welcome page.

    3. Install PHP5

    yum install php

    Now restart Apache:

    /etc/init.d/httpd restart

    ? and you are done!

    4. MySQL Support in PHP5

    To get MySQL support in PHP, install the php-mysql package. We also recommend to install some other PHP5 modules as you will probably need them for your applications. You can search for available PHP5 modules like this:

    yum search php

    Choose the ones you need and install them like this:

    yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc

    Now restart Apache2 again:

    /etc/init.d/httpd restart

    ? and you are done!

    Now if you go to http://192.168.0.1/info.php in your browser, scroll down to the modules section again and you should now find lots of new modules there.
    enetcloud Reviewed by enetcloud on . How To Install Apache with MySQL and PHP on Linux CentOS In this tutorial we will use the hostname server1.example.com with the IP address 192.168.0.1. These settings might differ for you, so you replace them where appropriate. 1. Install MySQL 5 yum install mysql mysql-server Then we need to create the system startup links for MySQL so that MySQL starts automatically whenever the system boots: chkconfig ?levels 235 mysqld on /etc/init.d/mysqld start Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Nice guide. +rep

  4.     
    #3
    Member
    Just to verify, FTP wont be installed unless I install it seperately?

    Cheers,

    Made by Envee :P

  5.     
    #4
    Member
    Website's:
    enetcloud.com enetcloud.co.uk
    Hi,

    In some cases FTP may need to installed sperately if you are going with control panel then it does not require manual installation of FTP

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CentOS Apache Help
    By feronso in forum Server Management
    Replies: 3
    Last Post: 30th May 2012, 08:47 PM
  2. How to put Varnish in front of Apache on CentOS?
    By AlternativeWeb in forum Server Management
    Replies: 4
    Last Post: 24th May 2012, 05:04 PM
  3. Install MySQL 5.5.17 on CentOS 6
    By ifirstdoz in forum Tutorials and Guides
    Replies: 1
    Last Post: 20th Nov 2011, 01:18 PM
  4. How do i uninstall apache on Centos 5?
    By RNBxBeatz in forum Webmaster Discussion
    Replies: 3
    Last Post: 22nd Apr 2011, 02:44 PM
  5. Installing Apache, MySQL and PHP using Yum on a Linux Server
    By JacksonWeb in forum Tutorials and Guides
    Replies: 6
    Last Post: 11th Feb 2011, 06:43 AM

Tags for this Thread

BE SOCIAL