How to setup HTTPD, PHP, and Python on docker.

In this article, you will get a kick start in docker and how you can do create a route from container to host i.e. exposing the container, installing software, and configuring it, like Apache httpd. We can also install interpreters and execute programs in it.
Step1: Launching a CentOS container

Here, you can see that we have used an option -p which says that docker has to create a route or PAT for port 80 of container to port 5555 on the host. This will expose port 80 of the container to port 555 of the host.
Step2: Installing necessary packages
Here we are installing necessary libraries or programs in it using the yum command. We will install PHP, httpd, python, net-tools.


Step3: Writing code file and testing the environment
Now, we will write some PHP code and HTML code in the document root of the apache webserver.


Finally, we will execute the PHP code and then write a python code for testing the environment.


Step4: Testing the webserver

