Setting up the Environment to Run PHP Web Pages
PHP Environment Setup is not a difficult task. PHP is a web-based programming language that is used to develop dynamic web-based pages. To set up the environment to run PHP you need to have the following three things installed in your system.
PHP only works with the APACHE web server which is available on https://httpd.apache.org/download.cgi.
PHP programming language works with almost all databases available in the market like Oracle, Postgre, SQL server, maria DB, and so on. But most commonly the widely used database with PHP language is MySQL. This database is Open source and available at https://www.mysql.com/downloads/.
PHP parser is used to generate the output of PHP script to HTML format.
There are many servers available which include the above-mentioned PHP requisites. You just need to download and install them.
- WAMP Server
- LAMP Server
- Xamp Server
They all include a webserver, PHP parser, and database in them. To run the PHP script you just need to download from their official website and start using it.
We will discuss there only one WAMP server installation.
Go to the wamp server official website and download the setup of the latest software from there.
Run the installation file and start running the setup.
After completion of the setup, click on the wamp server icon and start using the software. This will include the latest version of the PHP server and also the latest MySQL database.
After running the setup file. Open your web browser and type localhost or 127.0.0.1. It will show the link towards PHP my admin and all projects you are running on the server.
The most important thing to note that is you have to place your project files in the wamp server installation directory in www folder.
That’s all keep enjoying coding with PHP and wamp server.
You may also like to read getting started with php