
StartServers 4 MinSpareServers 20 MaxSpareServers 40 MaxClients 200 MaxRequestsPerChild 4500 This opens the file in nano, but you may use a text editor of your choice. Open Apache’s configuration file for editing: sudo nano /etc/apache2/nf You can restore the duplicate file if anything happens to the configuration file: sudo cp /etc/apache2/nf /etc/apache2/ Make a copy of Apache’s configuration file. If you have a Linode 4GB, multiply all of the values by 2 and use those numbers for your settings. These values are based on the amount of memory available. These guidelines are designed to optimize Apache for a Linode 2GB, but you can use this information for any size Linode. That’s why it’s important to optimize Apache before you start hosting a website on your Linode. Installing Apache is uncomplicated, but if you leave it running with the default settings, your server could run out of memory.

Optimize Apache Web Server for a Linode 2GB Your Linode downloads, installs, and starts the Apache web server.
#How to make a new file in ubuntu install#
Installing Apache Web Server on Ubuntu 18.04Ĭheck for and install all system updates, and install Apache on your Linode: sudo apt update & sudo apt upgrade When Tasksel completes, skip the installation steps in each section below and continue on to the configuration steps of each part of the stack: sudo tasksel install lamp-server If you are using Ubuntu 18.04, instead of installing each component separately, use Tasksel to install a LAMP stack on your Linode. For more information about Apache and other web servers, see the

This section helps you get started with Apache, the world’s most popular web server. Hosting a website starts with installing a web server, which is an application on your Linode that delivers content through the Internet. Hosting an Apache Web Server on Ubuntu 18.04

If you’re not familiar with the sudo command, check the Commands that require elevated privileges are prefixed with sudo. This guide is written for a non-root user.
