Home PageSocialsBlog MetaPoetryTechThoughts/RantsProjectsVPS SetupGit ReposFriends of STUTS

VPS Setup



Grav is installed for simple CMS website creation.

PHP Composer

  • Install Remi repo and php71

      yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
      yum install php71
      yum install php # Check the version it tries to use
  • Install composer

      php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
      php composer-setup.php --install-dir=/usr/local/bin --filename=composer
  • Install grav dependencies (check that this comes from the expected php Remi repo)

      yum install -y php-gd php-mbstring php-zip php-dom unzip php-fpm
  • Create an instance of grav (do as non-root user)

      composer create-project getgrav/grav /var/www/domain.name.here
  • If getting errors accessing the page and related to saving of cache files into the grav directory, then run the following from the grav server directory (ensuring that the user/group matches that set in www.conf for php-fpm)

      chown -R centos:centos .
      find . -type f -exec chmod 664 {} \;
      find ./bin -type f -exec chmod 775 {} \;
      find . -type d -exec chmod 775 {} \;
      find . -type d -exec chmod +s {} \;
  • Note: The above stuff will need to be done after every gpm installation, probs worth sorting users/groups out at some point…

gpm install admin