Installing Apache, MySQL, PHP on Fedora the easy way



by Shahina Hayat & Sanea Sheikh

Generally, Apache, MySQL and PHP are installed automatically when you install Fedora 12 and select server during installation. If this is not the case, you can install these the following simple steps:

Installation
1. log in as root
2. yum –y install httpd php mysql mysql-server php-mysql

Starting the services
1. /sbin/chkconfig httpd on
2. /sbin/chkconfig – add mysqld
3. /sbin/chkconfig mysqld on
4. /sbin/service httpd start
5. /sbin/service/mysqld start

Setting MYSQL root password
mysqladmin -u root password 'new-password'

Check whether MYSQL is working
mysql -u root -p

Check whether PHP & Apache are working
Create a PHP script in a text document naming it phpinfo.php. W rite a following code in it

phpinfo();
?>

Open the following URL in your browser

http://localhost/phpinfo.php

Comments

hello

Good work! Your post/article is an excellent example of why I keep comming back to read your excellent quality content that is forever updated. Thank you!