Need a Minecraft server? BeastNode delivers awesome performance at a great value!

SHOP FOR PLANS NOW


How to Install Apache Web Server and PHP on CentOS VPS

How to Install the Apache Web Server and PHP on CentOS VPS
This guide will explain the basics on installing an Apache web server with PHP5 on your VPS.

First, login to your BeastNode VPS and run the following commands:

yum install httpd
(confirm any prompts)
yum install php php-mysql
(confirm any prompts)

Now start up the Apache/HTTPD server:
service httpd restart


If there weren't any errors, you should now be able to access your web server using the IP address of your VPS. You should see a test page confirming that the installation worked.

You can find the default root directory (where your website files are stored) in the following folder:
/var/www/html
  • 22 Users Found This Useful
Was this answer helpful?

Related Articles

Installing a Minecraft Server on Your VPS

For this guide, we'll be going over how to install a Minecraft CraftBukkit server on a CentOS 5...

Protect SSH with Fail2Ban on CentOS 6

Fail2Ban is an SSH security program that blocks SSH brute force attempts on your server (as well...

Accessing your VPS Server using SFTP (Secure FTP)

There are two ways to access your VPS files - SFTP or via SSH commands. SSH commands are for more...

How to Login to Your VPS

In this guide, we'll be going over how to login to your VPS via SSH terminal/console....