🎯问题描述
Get 500 error when first install on centos 7
I am using lnmp as environment
my nginx conf:
[CODE = nginx]
server
{
listen 80;
#listen [::]:80;
server_name images.raiot.me ;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/images.raiot.me;
include rewrite/none.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location / {
index index.php;
try_files $uri $uri/ /index.php$is_args$query_string;
}
......
[/CODE]
my shell command
chmod 777 app/settings.php
chmod 755 *(at the root of chevereto)
rm .user.ini
after that, i find the page that told me chevereto needs permission about images/ content/
chmod 777 images/ content/
500 Err
📃err log
can not get the error log, after add the code below to settings.php , just print the code again on page
$ settings ['debug_level'] = 1;
Get 500 error when first install on centos 7
I am using lnmp as environment
my nginx conf:
[CODE = nginx]
server
{
listen 80;
#listen [::]:80;
server_name images.raiot.me ;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/images.raiot.me;
include rewrite/none.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location / {
index index.php;
try_files $uri $uri/ /index.php$is_args$query_string;
}
......
[/CODE]
my shell command
chmod 777 app/settings.php
chmod 755 *(at the root of chevereto)
rm .user.ini
after that, i find the page that told me chevereto needs permission about images/ content/
chmod 777 images/ content/
500 Err
📃err log
can not get the error log, after add the code below to settings.php , just print the code again on page
$ settings ['debug_level'] = 1;
Last edited: