You can try to use this raw and experimental instruction how to install GRAV on Plesk server:
1. Create a subscription for the Grav in
Plesk > Subscriptions (e.g. example.com);
2. Navigate to
Plesk > Subscriptions > example.com > PHP Settings and change PHP version to 5.5.9 or newer;
3. Connect to the server via SSH as root;
4. Clone the latest stable version of Grav to the subscription folder using Git:
Code:
# git clone https://github.com/getgrav/grav.git /var/www/vhosts/example.com/httpdocs/temp
5. Move files from temp folder to the subscription's folder:
Code:
# rsync -vau --delete-after /var/www/vhosts/example.com/httpdocs/temp/ /var/www/vhosts/example.com/httpdocs/
6. Make sure, that PHP-CLI version is 5.5.9, or newer:
Code:
# php -v
PHP 7.1.11 (cli) (built: Oct 27 2017 13:34:48) ( NTS )
. . .
- If PHP version is older, then supported version must be aliased to php command, for example, Plesk PHP 7.1:
Code:
# printf "alias php='/opt/plesk/php/7.1/bin/php'\n" >> /root/.bashrc
- Aliased path must be added to the $PATH environment variable:
Code:
# printf 'PATH=/opt/plesk/php/7.1/bin:$PATH\n' >> /root/.bashrc
- After that, a re-login must be performed, so changes are applied to the session.
Note: For more information refer to the official guide:
Change the PHP CLI version
7. Perform the initial dependency installation:
Code:
# cd /var/www/vhosts/example.com/httpdocs
# bin/gpm update
8. Install the default theme and Admin Panel plugin to manage Grav:
Code:
# bin/gpm install admin antimatter
9. Repair permissions for the subscription folder:
Code:
# INFO=($(MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa -sN -e'SELECT h.www_root,s.login FROM domains d, hosting h, sys_users s WHERE s.id=h.sys_user_id AND h.dom_id=d.id AND d.name="example.com"')); chown -R ${INFO[1]}:psacln ${INFO[0]}
10. Open example.com in browser and complete the installation:
Note: For additional information on Grav configuration and development refer to the
official Grav documentation.