grav

Lets start with cloning the grav the repo

Resources:

  • https://github.com/getgrav/grav.git
  • https://bitmapbytes.com/install-ghost-onto-oracle-cloud-free-tier/

Useful commands:

sudo chmod -R 775 /var/www/html/grav/cache/compiled && sudo chown -R www-data:www-data /var/www/html/grav/cache/compiled 
sudo chmod -R 775 /var/www/html/grav/logs && sudo chown -R www-data:www-data /var/www/html/grav/logs
sudo chmod -R 775 /var/www/html/grav/tmp && sudo chown -R www-data:www-data /var/www/html/grav/tmp
sudo chmod -R 775 /var/www/html/grav/backup && sudo chown -R www-data:www-data /var/www/html/grav/backup
sudo chmod -R 775 /var/www/html/grav/images && sudo chown -R www-data:www-data /var/www/html/grav/images
sudo chmod -R 775 /var/www/html/grav/data && sudo chown -R www-data:www-data /var/www/html/grav/data
sudo chmod -R 775 /var/www/html/grav/assets && sudo chown -R www-data:www-data /var/www/html/grav/assets 
sudo chmod -R 775 /var/www/html/grav/user/accounts && sudo chown -R www-data:www-data /var/www/html/grav/user/accounts
sudo chmod -R 775 /var/www/html/grav/user/data && sudo chown -R www-data:www-data /var/www/html/grav/user/data
sudo chmod -R 775 /var/www/html/grav/user/config && sudo chown -R www-data:www-data /var/www/html/grav/user/config
sudo chmod -R 775 /var/www/html/grav/user && sudo chown -R www-data:www-data /var/www/html/grav/user

Don't forget to enable rewrite mod on Apache settings:

cd /var/www/html/grav
sudo a2enmod rewrite
sudo bin/gpm install admin
sudo bin/gpm clearcache

Ensure .httaccess is active:

sudo vi /etc/apache2/apache2.conf

<Directory /var/www/html/grav>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
.httaccess:
    RewriteEngine On
    RewriteBase /grav

It should work!