LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Install Apache2, PHP 5, & MySQL 5 (https://www.linuxquestions.org/questions/linux-server-73/install-apache2-php-5-and-mysql-5-a-577849/)

Blake M. 08-17-2007 02:00 PM

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?

reddazz 08-18-2007 03:30 PM

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.

sneakyimp 10-16-2007 11:12 PM

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

wegadnie 10-17-2007 07:57 AM

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.

sneakyimp 10-17-2007 02:01 PM

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.


All times are GMT -5. The time now is 04:22 AM.