![]() ![]() You have to enable Apache to serve web requests on port 80 and port 443 in your firewall. ![]() If you did not see the above image don’t worry, you might have enabled the firewall. This command prints the public IP address of your VPS. Note: If you don’t know your VPS’s IP address, the quickest way to find it is by running following the command. You should see a page that looks like this: For example, if your VPS IP address is 195.110.59.211 your address should be: To check the installation, open your browser on your local machine and enter the following address in address bar. Now install Apache2 with the following command sudo apt-get install apache2 Checking your installation Step 1 – Installing Apache Web Serverīefore beginning the installation, update your system and make sure you have latest packages. This whole process is executed with some variations every single time when you request a web page from a LAMP server. Apache, our web server sends this generated web page to the client. It executes the logic written in that file, pulls data from the MySQL database if needed and generates a web page. Apache looks for the file being requested in the URL of the request and passes this information to the PHP interpreter. Whenever a web page request arrives at a server it is passed on to an application called web server, in our case Apache. Now make the newly created user a sudoer. The above command creates a user with your provided username. If you have root access to your virtual private server you can create a sudo user with following commands adduser It is recommended to use a sudo user instead of the root user to install software for security purposes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |