How to install Apache2 and PHP on Fedora, CentOS, Red Hat and Scientific Linux
If you are using Fedora, CentOS, Red Hat or Scientific Linux I am going to show you the basic install of Apache2 and PHP using yum.
To install Apache2 just enter the following command:
To install PHP just enter the following command:
Start up Apache2
The following command is going to setup Apache and set it up to start everytime your workstation or server books.
Test Your Install
Now its time to test your install of Apache2 and PHP, To Do this we are going to make a small PHP file and run in from your brower.
The following command will create and index.php file with the PHPInfo command in it:
Now launch your browser to http://127.0.0.1 or http://localhost if anything was done righ your output should look like the one below:
Now that’s it. have fun with Apache2 and PHP.
If you have any questions or comments please email me at email@example.com