The function path: VPSSIM menu ==> Add website & Code ==> Fix Error Chmod, chown
After upload code to root folder of the domain, before setup the code or running website, you must set owner nginx (php-fpm) to all files or maybe you will get error when setup or running website.
These error such as:
+ Can not setup the code
+ Can not create new file, edit file (such as config.php ..)
+ can not upload picture to VPS when write new post
+ can not upgrade plugins, themes, addons,
+ can not edit php files ....
...
To fix this error, we simple running the function: Fix Error Chmod, chown
After upload code to root folder of the domain, before setup the code or running website, you must set owner nginx (php-fpm) to all files or maybe you will get error when setup or running website.
These error such as:
+ Can not setup the code
+ Can not create new file, edit file (such as config.php ..)
+ can not upload picture to VPS when write new post
+ can not upgrade plugins, themes, addons,
+ can not edit php files ....
...
To fix this error, we simple running the function: Fix Error Chmod, chown
========================================================================= VPSSIM - Manage VPS/Server by VPSSIM.COM (4.5.0.8) ========================================================================= Add Website To Server ========================================================================= VPSSIM Support Both WWW And Non_WWW Domains ========================================================================= Note: http://go.vpssim.vn/noteaddweb ========================================================================= 1) Add Website 2) Add Park & Redirect Domain 3) Add website + Wordpress (Auto Setup) 4) Add website + Wordpress Code 5) Add Website + Forum Code 6) Add Website + Opencart Code 7) Add Website + Joomla Code 8) Add website + Sypex Dumper (Data Backup) 9) Add website + MySQLDumper (Data Backup) 10) Add Website + YourLS (URL Shortener) 11) Fix Error Chmod, chown 12) List & Size of All Websites Type in your choice (0-Exit): 11 ========================================================================= You must use this function after upload code website to server. ------------------------------------------------------------------------- This function will set permission writable for Nginx, PHP-FPM to the code ------------------------------------------------------------------------- you uploaded. If do not run this function, website can has error: ------------------------------------------------------------------------- can't Write , Unable to install fixes , unable to upload, upgrade plugins, ------------------------------------------------------------------------- themes, asking FTP password when update plugins, themes. ========================================================================= CHOOSE SET PERMISSIONS FOR 1 OR ALL WEBSITES ------------------------------------------------------------------------- Set permissions for all websites: Maybe take a longtime ------------------------------------------------------------------------- Set permissions for 1 website: faster but you must type in website. ========================================================================= 1) Set the file permissions all websites 2) Set the file permissions for 1 website Type in your choice (0-Exit): 2 ========================================================================= You want to view list website on server ? [y/N] ========================================================================= Type in website [ENTER]: domain.com
==> Đăng ký mã VPSSIM Business tại đây ! Thanks.