LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-17-2007, 02: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, 03:30 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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-16-2007, 11:12 PM   #3
sneakyimp
Member
 
Registered: Dec 2004
Posts: 795

Rep: Reputation: 50
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:

http://www.howtoforge.com/perfect_setup_centos5.0
 
Old 10-17-2007, 07:57 AM   #4
wegadnie
Member
 
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 howtoforge.com/perfect_setup_centos5 and don't know how to check if they're running.
 
Old 10-17-2007, 02:01 PM   #5
sneakyimp
Member
 
Registered: Dec 2004
Posts: 795

Rep: Reputation: 50
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:
<?php
phpinfo
();
?>
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.
 
  


Reply

Tags
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 10:39 AM
Linux Newbie needs help??? MySQL, Apache2, & PHP asif2k Linux - General 5 03-12-2006 03:42 PM
SuSE 10.0, Apache2, MySQL, PHP ? petelogan Suse/Novell 4 10-28-2005 10:14 AM
Apache2, MySQL & PHP Web Server. FTP Needed! Bobson Linux - Networking 4 02-07-2005 04:25 PM
AS 3 w/ PHP, MySQL, and Apache2 pollardw Red Hat 1 02-23-2004 08:47 PM


All times are GMT -5. The time now is 02:09 AM.

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