Installing Umbraco on Ubuntu Server Latest
Step 1: Install LAMP stack
First, we need to install the LAMP stack (Linux, Apache, MySQL, and PHP) on the Ubuntu server. Open a terminal and run the following command:
sudo apt-get update
sudo apt-get install lamp-server^
During installation, you will be prompted to set a MySQL root password.
Step 2: Download and extract Umbraco
Visit the official Umbraco website at https://umbraco.com/download/ and download the latest version of Umbraco CMS. Extract the downloaded file to your preferred location using the following command:
sudo mkdir /var/www/umbraco
sudo unzip [Path_To_Zip_File]/UmbracoCms-[Version_Number]-[Zip_Code].zip -d /var/www/umbraco
Step 3: Set permissions
Grant ownership of the /var/www/umbraco/ directory to the Apache user (www-data) and give the necessary permissions by running the following commands:
sudo chown -R www-data:www-data /var/www/umbraco/
sudo chmod -R 775 /var/www/umbraco/
Step 4: Create a virtual host
Create a new virtual host configuration file for Umbraco using the following command:
sudo nano /etc/apache2/sites-available/umbraco.conf
Paste the following code into the file and replace [YOUR_DOMAIN_NAME] with your domain name:
<VirtualHost *:80>
ServerName [YOUR_DOMAIN_NAME]
ServerAlias www.[YOUR_DOMAIN_NAME]
DocumentRoot /var/www/umbraco
<Directory /var/www/umbraco/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Save and exit the file.
Step 5: Enable the virtual host
Activate the virtual host by running the following command:
sudo a2ensite umbraco.conf
Then, disable the default Apache virtual host:
sudo a2dissite 000-default.conf
Step 6: Restart Apache
Reload Apache to apply the changes:
sudo systemctl reload apache2
Step 7: Run the Umbraco installer
Finally, open a web browser and navigate to your domain name. You will be redirected to the Umbraco installation wizard. Follow the installation instructions to complete the setup process.
Congratulations, you have successfully installed Umbraco on your Ubuntu server!