Get started with PHP
To write and test your PHP script you will need a server environment. PHP is a server-side scripting language, so you either have to get some web space from a hosting company that supports PHP or make your own computer pretend that it has a server installed. To get started, don’t need to spend any extra money to get web space, instead setup with your local system(your computer).
Don’t worry on which platform you are working, below-listed software’s which can be used.
Windows Users
In Windows PC, we can use either WAMP (Windows, Apache, MySQL, PHP). You can download and use from below link.
Linux Users
LAMP(Linux, Apache, MySQL, and PHP), an open source software is used to get web servers up and running. Since the virtual private server is already running Ubuntu, the Linux part is taken care of. Here is how to install the rest.
Lamp +Ubuntu or Lamp +Debian
Refer the below link to get how it can be setup.
INSTALL LAMP SERVER
Apple Users
For Apple use, MAMP (Macintosh, Apache, MySQL and PHP) is quite good. Like Wampserver, it installs everything you need. You can download it from here:
XAMPP
The “X” in XAMPP stands for “operating system. XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use. It can be used in Linux, Mac OS X, Solaris, and Windows.
You can download it from here: DOWNLOAD XAMPP SERVER
For more info, few YouTube videos are available that will help you install everything you need.