Results 1 to 4 of 4
-
20th Aug 2011, 10:30 AM #1OPMemberWebsite's:
enetcloud.com enetcloud.co.ukHow 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
-
20th Aug 2011, 11:24 AM #2Member
Nice guide. +rep
-
21st Aug 2011, 11:06 AM #3Member
Just to verify, FTP wont be installed unless I install it seperately?
Cheers,
Made by Envee :P
-
21st Aug 2011, 01:11 PM #4OPMemberWebsite's:
enetcloud.com enetcloud.co.ukHi,
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
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
CentOS Apache Help
By feronso in forum Server ManagementReplies: 3Last Post: 30th May 2012, 08:47 PM -
How to put Varnish in front of Apache on CentOS?
By AlternativeWeb in forum Server ManagementReplies: 4Last Post: 24th May 2012, 05:04 PM -
Install MySQL 5.5.17 on CentOS 6
By ifirstdoz in forum Tutorials and GuidesReplies: 1Last Post: 20th Nov 2011, 01:18 PM -
How do i uninstall apache on Centos 5?
By RNBxBeatz in forum Webmaster DiscussionReplies: 3Last Post: 22nd Apr 2011, 02:44 PM -
Installing Apache, MySQL and PHP using Yum on a Linux Server
By JacksonWeb in forum Tutorials and GuidesReplies: 6Last Post: 11th Feb 2011, 06:43 AM
themaPoster - post to forums and...
Version 5.22 released. Open older version (or...