Jump to content

Ubuntu web server hosting Permission denied for Prestashop


David

Recommended Posts

I'm running an Ubuntu web server (Ubuntu Desktop 14.04) at home and I'm using Easy Hosting Control Panel, but I keep having some permission issues with the websites. I uploaded Prestashop through Filezilla and I tried to install it but I got the following error:

An error has occured: Extraction error - No error

When I checked the error logs, I got the following error:

PHP Warning: ZipArchive::extractTo(/var/www/vhosts/website/website.com/httpdocs//tools/htmlpurifier/standalone/HTMLPurifier/EntityLookup/index.php): failed to open stream: Permission denied in /var/www/vhosts/website/website.com/httpdocs/index.php on line 118, referer: http://website.com/

Finally, I tried running the following commands on the terminal without success:

sudo adduser (username) www-data

sudo chown -R www-data:www-data /var/www

sudo chmod -R g+rwX /var/www

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...