Need a Minecraft server? BeastNode offers the highest performance servers with DDoS protection!

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

Was this answer helpful?

 Print this Article

Also Read

Changing the Operating System / Reformatting your VPS

In order to change the operating system on your VPS or reformat it, you will need to login to the...

How to Use the VPS Serial Console

The VPS serial console allows you to access your cloud VPS server with SSH directly from the back...

Install Team Fortress 2 Server on a VPS

To run your very own Team Fortress 2 server on a BeastNode VPS (running CentOS 6 64-bit, not...

How to Install and Configure an OpenVPN Server on CentOS 6

This guide will provide you with all the steps necessary to install a simple OpenVPN server on...

What can I enter for the hostname when ordering?

The hostname is used to identify your VPS (or dedicated server) during the ordering process. It...