{"id":451,"date":"2020-06-03T18:05:32","date_gmt":"2020-06-03T10:05:32","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=451"},"modified":"2026-01-12T10:08:49","modified_gmt":"2026-01-12T02:08:49","slug":"start-hosting-web-pages-and-php-scripts","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/start-hosting-web-pages-and-php-scripts","title":{"rendered":"Complete Guide to Start Hosting Web Pages and PHP Scripts"},"content":{"rendered":"<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/cms-assets.tutsplus.com\/cdn-cgi\/image\/width=600\/uploads\/users\/769\/posts\/25584\/preview_image\/PHP.jpg\" alt=\"How Do I Start Hosting My Web Pages and PHP Scripts?\" width=\"449\" height=\"311\" \/><\/h6>\n<h6>How Do I Start Hosting My Web Pages and PHP Scripts?<\/h6>\n<h6 class=\"mkb-anchor__title\">To start hosting your web pages and PHP scripts, you will need to do the following things, in gist:<\/h6>\n<\/div>\n<p>\u2013 Install a web server.<br \/>\n\u2013 Install the <a href=\"https:\/\/www.php.net\/\" rel=\"nofollow noopener\" target=\"_blank\">PHP<\/a> interpreter.<br \/>\n\u2013 Configure the web server.<br \/>\n\u2013 Install a FTP server.<br \/>\n\u2013 Configure the FTP server.<br \/>\n\u2013 Install a database server.<br \/>\n\u2013 Configure the database server.<\/p>\n<p>Installing is the easy part. Configuring is the hard part. However, \u201ceasy\u201d or \u201chard\u201d are relative terms, and it depends on your level of skill. If you are skillful, all of the above will be easy and you probably would not be reading this article in the first place. Thus, this article assumes that you are not skillful, in the sense that you have never done anything like build a Linux or Windows web server that runs hundreds of websites that can support common CMS like WordPress or Joomla.<\/p>\n<p>First, you will need to acquire the needed skills to perform the above tasks. Skills take time and effort to acquire. The time and effort that you put into reading this entire article will certainly not suffice, but it will serve as a good start. (Wait! I do not have so much time! Is there a quicker way to do this?<\/p>\n<p>There are several ways to install a <a href=\"https:\/\/www.servergigabit.com\/\">web server<\/a>.\u00a0 Typically, a command like \u201cyum install httpd\u201d or \u201capt-get install apache2\u201d would get the web server (Apache in this case here) installed in a Centos and Debian server respectively. The same thing applies to the PHP interpreter, i.e. a command like \u201cyum install php\u201d or \u201capt-get install php\u201d should work. For more details, simply Google the words like \u201cinstall apache centos\u201d or \u201cinstall PHP debian\u201d will yield a host of articles.<\/p>\n<p>After that, you will need to configure the Apache server. This will be no easy task as the Apache server is a powerful web server with many configurable options. To make it work together with PHP is even harder; \u201charder\u201d in the sense that that are many ways to make it work, and there are even more ways to make it not work. Most articles in the Internet (Google \u201capache PHP centos\u201d or something similar) will show you some very basic configuration approaches, but those articles by no means describe the only method of getting it done. Most involve just leaving things in their default configuration, and simply upload the web pages and scripts to the default locations (and hope that it all works out well).<\/p>\n<p>For Windows server, the default web server is IIS. Installing IIS almost feels like enabling something in a Windows server. Typically, you would go to \u201d Start -&gt; All Programs -&gt; Administrative Tools -&gt; Server Manager\u201d, then \u201cRoles\u201d, \u201cAdd Roles\u201d, tick \u201cWeb Server (IIS)\u201d.<\/p>\n<p>&nbsp;<\/p>\n<p>The purpose of the FTP server is to allow you to upload web pages and scripts into your server. In a Linux server, there are many FTP server programs available, each with its own method of configuration. But for Linux servers, using FTP is not the only way to upload files. You can use SCP, which actually uses the SSH connection to upload the files.<\/p>\n<p>&nbsp;<\/p>\n<p>Typically, in a Linux server, the database server would be MySQL. Just like Apache, there are several ways to get it installed. The most common way would be to use a package manager. Thus, a command like \u201cyum install mysql-server mysql php-mysql\u201d (for Centos), or a command like \u201capt-get install mysql-server php5-mysql\u201d (for Debian) will get it done. During the installation of MySQL, you should be prompted to set a MySQL root password. Please do not confuse this with the server\u2019s root password. The server\u2019s root password allows you to SSH into the server, and perform administrator tasks like installing more programs. The MySQL root password allows you to log into the MySQL server as MySQL administrator to do things like create databases and users for the databases.end using MSSQL as the database server. However, please note that not all versions of MSSQL are free.<\/p>\n<p>The above describes the things that need to be done in order to make server capable of running a web site with PHP scripts. But it is by no means complete. It only serves as a start.<\/p>\n<p><a name=\"Plesk\"><\/a><\/p>\n<p>Some of us may not have the time, energy and\/or interest to explore the intricacies of all the \u201cingredients\u201d needed to make a web server that supports PHP and MySQL. In case you are wondering, \u201cIs there a program that installs and configures all these \u2018ingredients\u2019 for me, and then gives me a graphical user interface for me to easily manage the server? \u201d The answer is yes. It is called the \u201cParallels Plesk Panel\u201d. The software is free to download and install, but you will need a license to get it to work.<\/p>\n<p>Some of our pre-build cloud servers are installed with Plesk. If you intend to explore this option, you might want to consider changing the \u201cTemplate\u201d (aka Operating System) to something like \u201cCentOS 6.3 Plesk 11 x64\u201d, as illustrated in the picture below.<\/p>\n<p>&nbsp;<\/p>\n<p>(Please note that changing the \u201ctemplate\u201d or operating system of the cloud server will result in loss of data. Do this only when you have the means of re-uploading all your data.)<\/p>\n<p>After that, you will need to \u201cRebuild Virtual Machine\u201d, as illustrated below. (To repeat, this will result in loss of data. Do this only when you have the means of re-uploading all your data.)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How Do I Start Hosting My Web Pages and PHP Scripts? To start hosting your web pages and PHP scripts, you will need to do the following things, in gist: \u2013 Install a web server. \u2013 Install the PHP interpreter. \u2013 Configure the web server. \u2013 Install a FTP server. \u2013 Configure the FTP server. \u2013 Install a database server.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[17],"kbtag":[1649],"class_list":["post-451","kb","type-kb","status-publish","hentry","kbtopic-cloud-servers","kbtag-php-scripts"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=451"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/451\/revisions"}],"predecessor-version":[{"id":5798,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/451\/revisions\/5798"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=451"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=451"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}