Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Permission Denied for update?

Started by Muut Archive 11 years ago · 1 replies · 365 views
11 years ago

When in the terminal is attempted to update the core and the plugins but the shell says permission denied, anybody have any idea why? Here is the sequence?
[lila@res162 ~]$ cd public_html
[lila@res162 public_html]$ bin/gpm selfupgrade
-jailshell: bin/gpm: Permission denied
[lila@res162 public_html]$ bin/gpm update
-jailshell: bin/gpm: Permission denied

11 years ago

Could be a few things. I'm guessing this is on a shared hosting account? If so can you first ensure that the gpm and grav commands in the bin/ folder have execute (x) permissions? Like this:

TXT
[email protected] [~/www/grav]# ls -la bin/
total 1048
drwxr-xr-x  2 gravnorg gravnorg    4096 Feb 19 17:04 ./
drwxr-xr-x 10 gravnorg gravnorg    4096 Feb 19 17:04 ../
-rwxr-xr-x  1 gravnorg gravnorg 1054749 Feb 19 17:04 composer.phar*
-rwxr-xr-x  1 gravnorg gravnorg    1376 Feb 19 17:04 gpm*
-rwxr-xr-x  1 gravnorg gravnorg    1140 Feb 19 17:04 grav*

Next check to see what version of PHP your CLI is running:

TXT
[email protected] [~/www/grav]# php -v
PHP 5.4.27 (cli) (built: Apr  6 2014 14:43:05)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd., and 
    with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies

That should be at least PHP 5.4.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1322 9 years ago
Archive · by Muut Archive, 9 years ago
2 917 9 years ago
Archive · by Muut Archive, 9 years ago
2 4048 9 years ago
Archive · by Muut Archive, 9 years ago
1 2922 9 years ago
Archive · by Muut Archive, 9 years ago
3 1106 9 years ago