1. Upload Chevereto program
Download Chevereto program to the website directory, Chevereto download address is:
Https://github.com/Chevereto/Chevereto-Free/archive/1.0.9.tar.gz
GitHub address is:
Https://github.com/Chevereto/Chevereto-Free
Download using the wget command in the root directory of the Web site. as follows (tc.runtofuture.cn replaced with your own website name, after the same article):
cd/home/wwwroot/tc.runtofuture.cn
wget https://github.com/Chevereto/Chevereto-Free/archive/1.0.9.tar.gz
Then unpack:
Tar zvxf 1.0.9.tar.gz
2. Assigning Permissions
A very important step to follow:
Chown Www:www-r/home/wwwroot/tc.runtofuture.cn
3. Create settings.php files
Create a new settings.php file in the app directory and give writeable permission:
Cd/home/wwwroot/tc.runtofuture.cn/app Touch
settings.php
chmod-r 777 settings.php
4. Modify the configuration file
Modify the Web site configuration file/usr/local/nginx/conf/vhost/tc.runtofuture.cn.conf to add the following code to the server:
Location/{
try_files $uri $uri//index.php $query _string;
}
Then restart Nginx, using the command:
/etc/init.d/nginx Restart
#或
lnmp restart
#或
lnmp nginx Restart