Welcome to InviteVPS.com home of cheap linux vps powered by SolusVM panel. Be sure to check out our latest SPECIALS HERE. Hope you enjoy your stay with us!
Live Support

Portal Home > Knowledgebase > Tutorials > How to Setup LAMP on CentOS/Fedora VPS

How to Setup LAMP on CentOS/Fedora VPS

LAMP  is a webserver software stack common on Linux servers (LAMP stands for Linux – Apache – MySQL – PHP). To install the basic components of a LAMP server, simply access your server via SSH and run the following commands:

# yum install httpd

# yum install php

# yum install mysql-server mysql

# service httpd start

# service mysqld start

To check the Apache setup, go to http://xx.xx.xx.xx (your server’s IP address) in your browser. You should see a default Apache page.
You can test PHP by creating a file PHP info file:
# vi /var/www/html/test.php
Copy this into the file:
<?php phpinfo(); ?>
Go to http://xx.xx.xx.xx/test.php in your browser. If you see information about your PHP installation displayed without any errors, you’re done!

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read