Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-17-2007, 03:00 PM   #1
Blake M.
LQ Newbie
Registered: Aug 2007
Posts: 1

Rep: Reputation: 0
Install Apache2, PHP 5, & MySQL 5

Hello, not sure if this is the right section, but I installed CentOS 4.5 on my Spare computer and Im looking for instructions on how to install Apache 2.2.4, PHP 5.2.3, MySQL 5.1.2. does anyone know where to get one, or have one please?
Old 08-18-2007, 04:30 PM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Hi and welcome to LQ.

If you are looking to compile from source, this article may help you out. If you are looking to use rpms, you can enable the centosplus yum repo or download the rpms from here. Note that the rpms are a slighly older version of AMP.
Old 10-17-2007, 12:12 AM   #3
Registered: Dec 2004
Posts: 865

Rep: Reputation: 53
I just installed Apache/MySQL/PHP myself by using the 'yum' command on CentOS. They aren't the *latest* versions but they're quite recent. I'm using CentOS 5 and was using this tutorial:
Old 10-17-2007, 08:57 AM   #4
Registered: Oct 2007
Posts: 48

Rep: Reputation: 15
I also installed LAMP on centos5.0 but anyone know how can i check them to make sure it'll work because I used the tutorial from and don't know how to check if they're running.
Old 10-17-2007, 03:01 PM   #5
Registered: Dec 2004
Posts: 865

Rep: Reputation: 53
1) to see if mysql is installed, just type 'mysql -uroot -p' from the command line. You will be prompted for the password you entered at install time. If you forgot that password, there is a way to reset it but I forgot how.

2) As for apache, just open a browser and type in the IP of your server. It *should* show you the apache default page. leave this browser window open.

3) For PHP, find the web document root folder (it's probably /var/www/html) and put a file in there called index.php and type this in it:

PHP Code:
then refresh the browser from step 2 which is pointing to your server's IP. you should get a different looking page that outputs all the php information.


apache, help, install, mysql, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
deb 4.0: how to install apache2, mysql 4.1, php 4 and phpmyadmin tonguim Debian 10 11-09-2007 11:39 AM
Linux Newbie needs help??? MySQL, Apache2, & PHP asif2k Linux - General 5 03-12-2006 04:42 PM
SuSE 10.0, Apache2, MySQL, PHP ? petelogan SUSE / openSUSE 4 10-28-2005 11:14 AM
Apache2, MySQL & PHP Web Server. FTP Needed! Bobson Linux - Networking 4 02-07-2005 05:25 PM
AS 3 w/ PHP, MySQL, and Apache2 pollardw Red Hat 1 02-23-2004 09:47 PM

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration