gerrider.blogg.se

Complete apache server tutorial
Complete apache server tutorial






complete apache server tutorial

To configure Apache to automatically start when the Linux server is rebooted, run: $ sudo systemctl enable apache2 As you may have noticed, the Apache web service is referred to as apache2 on Ubuntu while it is called httpd on Red Hat Linux. A Sample Website Hosted on Apache Manage Apache Web Server in LinuxĪs we wrap up this tutorial, let us highlight some basic commands for managing Apache in addition to the ones that we have already used. You should see your new website as shown in the image below. Now, go back to your web browser and refresh the page. Next, create a new index file with: $ sudo nano index.htmlĬopy and paste the sample HTML code below into the open text editor. On Red Hat, there is nothing to rename here as the default index page file is not stored in this location. On Ubuntu Linux, run the command below to rename the default index page file. Let us create one as follows.įirstly, change into the website root with the command below.

complete apache server tutorial

On Apache, the default location where publicly accessible web content is stored in /var/The first page that is loaded when users visit your website is called the index page. Check Apache Web Page on Ubuntu Check Apache Web Page on RHEL Host a Simple HTML Website on ApacheĪfter you have confirmed that Apache is working properly, you are now ready to add your website content. You should see a test page that confirms that Apache is up and running properly. You may also enter localhost in place of your server IP. Once you have confirmed that Apache is active, open a web browser and enter the IP address of your Linux server. On Red Hat Enterprise Linux and related distributions, run the following commands to start and check the status of Apache.








Complete apache server tutorial