Grav installation | Kinsami

Home   >   Documentation   >   Tutorials   >   Grav installation


Grav installation (Ubuntu 18.04)

Grav is a flat file CMS that stores data in files organized in folders instead of using a database.



Access your VPS

Access your VPS through SSH via port 810. You can run SSH on PowerShell or PuTTY (Microsoft Windows), a standard terminal emulator (Linux/BSD/macOS), or Termux (Android). The text in blue must be modified.

ssh -P 810 ubuntu@server-ip




Install dependencies

Install Apache, PHP and unzip with the following command.

sudo apt -y update && sudo apt -y full-upgrade && sudo apt -y install apache2 libapache2-mod-php php php-xml php-curl php-gd php-mbstring php-gd php-json php-zip unzip && sudo apt -y autoremove && sudo apt -y autoclean




Open firewall ports

Open the HTTP (80) and HTTPS (443) ports on your server.

sudo ufw allow in 80/tcp && sudo ufw allow in 443/tcp && sudo ufw status numbered




Download Grav in the public folder

With the following command you will download and unzip Grav in the public folder of the server.

wget -O /tmp/latest.zip https://github.com/getgrav/grav/releases/download/1.6.0/grav-admin-v1.6.0.zip && unzip /tmp/latest.zip -d /tmp/ && sudo rm -R /var/www/html && sudo mv /tmp/grav-admin /var/www/html




Set the correct permissions

Set the correct permissions for the files within the public folder of the server.

sudo chown -R ubuntu:www-data /var/www/html && sudo find /var/www/html/ -type d -exec chmod 775 {} \; && sudo find /var/www/html/ -type f -exec chmod 664 {} \; && sudo reboot




Access with your browser

Now all that remains is to enter from a web browser to http://server-ip and follow the steps of the Grav installer.





© 2019 Kinsami. All rights reserved.
Proudly misionero.


  
  
  
COMPANY

© 2019 Kinsami. All rights reserved.
Proudly misionero.