For some reason when I try to run either bin/gpm or bin/grav on some sites on my local server, I get this error:
: No such file or directory
I tried setting the permissions to 755 for the both files, but they has the same permissions as other sites where they do work. I tried downloading the newest version and just replacing the user folder, but still nothing. I’m running PHP 5.5.9.
check who owns the files, as opposed to the logged in user.
I got this error before adding my user account to the www-data group.
I would get permission denied running it with my account, and your error when trying to run it with sudo.
if the file is owned by root, then you would need to be root to run it right?
i dont know if its the best practice, but I would change the ownership of all the files and directories in /var/www (i’m assuming this is where you are) to www-data.
sudo chown -R www-data /var/www
this way apache has no problems writing to anything, and if you want to run gpm (and have it able to write access directories) just run it with sudo too.