Install apache, php and MYSQL latest on centos 5.x

Filed in VPS 4 comments

First of all login to your VPS as root using SSH.

Now type this command and press enter.

nano -w /etc/yum.repos.d/utterramblings.repo

and then following lines into editor. Save the file and quit editor.

[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

For those new to linux, the nano command is for a linux editor, and once you type the 6 lines, press ctrl O to write the file and press enter to save to the file name given.

Now type this command and press enter.

yum install httpd

Now type this

yum install php

Now type this

yum install mysql mysql-server mysql-devel

apache, php and mysql are now install on your VPS. time to start these services

Type this command and press enter

/etc/init.d/httpd start

Now type this command

/etc/init.d/mysqld start

After starting mysql it will ask you to setup password for root user.

Type this command to do this

mysqladmin -u root -h localhost -p password NEWPASSWORD

Latest version of apache,php and mysql are now install and running on your VPS.

Enjoy!

Posted by Zubair Barkat   @   8 March 2010 4 comments
Tags : , , , ,

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

4 Comments

Comments
Apr 8, 2010
4:36 PM

I’ve been looking around zubairtech.info and really am impressed by the terrific content here. I work the nightshift at my job and it really gets boring. I’ve been coming here for the previous couple nights and reading. I just needed to let you know that I have been enjoying what I have seen and I look forward to reading more.

Apr 15, 2010
3:45 PM
#2 snshusat :

Can You give me tutorial of How to install php and mysql on my computer without using programs like xampp.

Author May 5, 2010
1:45 AM
#3 Zubair Barkat :

Yes! tutorial to install Apache is just published. I will post on php and mysql soon.

May 28, 2010
6:25 AM

You’re missing like 20 different packages that need to be installed for everything to actually work.

Like, mod_php, and etc.

Google LAMP, install it, boom, apache, mysql, php, all installed and working together inperfect harmony.

Leave a Comment

Previous Post
Next Post
»
Checkerize designed by Web Hosting.  In conjunction with Web Hosting   |   Free MMORPG   |   Reverse Phone Lookup