Fix VestaCP open() public_html failed 13 Permission denied

A simple solution to a permissions problem in VestaCP open() public_html failed 13 Permission denied on a configuration with NGINX, PHP-FPM and without Apache. If it is not visible in the web interface, search in doman.tld.error.log.  

I'm not necessarily a fan of VestaCP but if you have a little knowledge to configure Nginx, PHP-FPM on Linux and especially the email system, is a good alternative to cPanel. And especially that VestaCP it is free and much more flexible.

If you are a novice in configuring web servers, I advise you better NOT to use it VestaCP. It has a lot of bugs, it is updated quite rarely (and often big errors appear afterwards update) and many security issues must be resolved. There are even problems with the destruction of web folders and files in the installation default.

open() /home/user/web/domain_tld/public_html/" failed (13: Permission denied)
Fix VestaCP open() public_html failed 13 Permission denied
VestaCP open() patch/public_html failed 13 Permission denied

How do you resolve the error? VestaCP open() public_html failed 13 Permission denied

CAREFUL! If you have a CMS installed that requires special permissions for some directories and/or files, the commands below will change them all.

Change the permissions of all directories and files in /home/user/web/domain_tld and set chmod 644 for files and chmod 755 for directories.

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

User:group will also change if the correct ones are not set.

chown -R user:group *

At the end, check both the operation of the website and domain_tld.error.log.

how to » Web Hosting » Fix VestaCP open() public_html failed 13 Permission denied

Passionate about technology, I like to test and write tutorials about operating systems macOS, Linux, Windows, about WordPress, WooCommerce and configure LEMP web servers (Linux, NGINX, MySQL and PHP). I write on StealthSettings.com since 2006, and a few years later I started writing on iHowTo.Tips tutorials and news about devices in the ecosystem Apple: iPhone, iPad, Apple Watch, HomePod, iMac, MacBook, AirPods and accessories.

Leave a Comment