- #How to download apache web server onto linux install
- #How to download apache web server onto linux update
- #How to download apache web server onto linux code
May 09 11:03:14 dhani-Mint systemd: Started LSB: Apache2 web server. May 09 11:02:24 dhani-Mint systemd: Started LSB: Apache2 web server. May 09 11:02:24 dhani-Mint apache2: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. May 09 11:02:24 dhani-Mint apache2: * Starting Apache httpd web server apache2 May 09 11:02:24 dhani-Mint systemd: Starting LSB: Apache2 web server. Loaded: loaded (/etc/init.d/apache2 bad vendor preset: enabled)ĭrop-In: /lib/systemd/system/Īctive: active (running) since Tue 11:02:24 WIB 1min 35s ago Now check the Apache status ~ $ sudo systemctl status apache2 Start Apache ~ $ sudo systemctl start ~ $ sudo systemctl enable apache2Īrvice is not a native service, redirecting to systemd-sysv-installĮxecuting /lib/systemd/systemd-sysv-install enable apache2 The following NEW packages will be installed:Īpache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0Ġ upgraded, 9 newly installed, 0 to remove and 174 not upgraded.Īfter this operation, 6.350 kB of additional disk space will be used. The following additional packages will be installed:Īpache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0Īpache2-doc apache2-suexec-pristine | apache2-suexec-custom
#How to download apache web server onto linux install
Use this command to install Apache on Linux Mint ~ $ sudo apt-get install apache2
#How to download apache web server onto linux update
This ensures people reach the right site instead of the default one when they type in apt-get update & sudo apt-get upgrade Step 2.
The default file doesn’t come with a ServerName directive so we’ll have to add and define it by adding this line below the last directive: ServerName We should have our email in ServerAdmin so users can reach you in case Apache experiences any error: ServerAdmin also want the DocumentRoot directive to point to the directory our site files are hosted on: DocumentRoot /var/www/gci/ Now edit the configuration file: sudo nano gci.conf ( gci.conf is used here to match our subdomain name): sudo cp nf gci.conf Since Apache came with a default VirtualHost file, let’s use that as a base. We start this step by going into the configuration files directory: cd /etc/apache2/sites-available/ Setting up the VirtualHost Configuration File Now let’s create a VirtualHost file so it’ll show up when we type in. I'm running this website on an Ubuntu Server server!
#How to download apache web server onto linux code
Paste the following code in the index.html file: Let’s go into our newly created directory and create one by typing: cd /var/www/gci/ Now that we have a directory created for our site, lets have an HTML file in it. To be production-ready, you must configure firewalls and audit your server settings. It's not suitable for internet-facing web servers. We have it named gci here but any name will work, as long as we point to it in the virtual hosts configuration file later. Note that this is a very basic test deployment. So let’s start by creating a folder for our new website in /var/www/ by running sudo mkdir /var/www/gci/ By default, the web server will serve the. Consequently, this will verify that the web server is installed and running. Today, we’re going to leave the default Apache virtual host configuration pointing to and set up our own at . And that’s all there is to it Finally, go to your server’s IP address in a browser and see the Apache test web page. We can modify its content in /var/We can modify how Apache handles incoming requests and have multiple sites running on the same server by editing its Virtual Hosts file. Creating Your Own Websiteīy default, Apache comes with a basic site (the one that we saw in the previous step) enabled.