How to host a PHP script online in 10 minutes?

Host a PHP Script

In case you are a PHP Developer, or any individual who purchased a PHP Script and needs to have and introduce this PHP script (web application) Online, Then You are in the opportune spot.

In this instructional exercise, I will show you a bit by bit guide on the best way to Install any PHP Script Online quickly and I will pass by the fundamental ideas like:

  • Creating a VPS Server
  • Configuring the Server USing Putty SSH Client
  • Uploading File to the Server using WinSCP
  • Installing PHP Modules
  • Managing MySQL Databases
  • Setup cronjobs
  • Mapping our Domain Name

So it will be a genuine guide to use to see practically every one of the ideas that might confront you while facilitating and introducing a PHP Application.

This article relies upon my Full Video “How to Host and Install Any PHP Script Online in 10 Minutes?

Getting Started

The primary thing we will require is a Public VPS Server to have our web application on.

Reset Droplet Password

After you make the Droplet, you will get an email containing the root default secret word.

Basically interface with your Droplet utilizing Putty SSH Client and Reset the secret key.

Upload PHP Files to Your Server

Connect to Your VPS Server using WinSCP, and Update the Files to the server to this path: “/var/www/html”

     cd /var/www/html

Unzip the “.zip” file using the following command:

Now, Move the latest folder content to the upper directory so it can be accessed directly -> use WinSCP
Just Drag and Drop using WinSCP

In this way, the Your PHP files are in the html folder directly, so it can be accessed directly using your domain name.

Start Installation

Now you can open your browser, and enter the Droplet IP and You will see the application startup page.

Install PHP modules

Open Putty, and run the following commands to install PHP Modules:

sudo apt install php-curl
sudo apt install php-mbstring

*Restart apache service using the following command:

sudo service apache2 restart
Create the Database

1- Open Putty SSH Client and run the following command:

     mysql -u root -p 

Login to MySQL with your root password

2- Create the database using the following command:


3- Create a new user if root has not local accessible

CREATE USER ‘xero’@’localhost’ IDENTIFIED BY ‘Xero_db_pass123’;

     CREATE USER ‘xero’@’localhost’ IDENTIFIED BY ‘Xero_db_pass123’;
     GRANT ALL PRIVILEGES ON * . * TO ‘xero’@’localhost’;

Setup cronjobs

Open WinSCP and got to /etc
Open crontab file using the editor
And paste all the jobs from Xerochat ( or your application) as explained in the video.

Now, the last step is to point your domain name to your IP address in the DNS management zone.

Set Up Free Cold Email System to Start Your Campaigns


Leave a Comment

Your email address will not be published. Required fields are marked *