![chown 文件夹后出现 500 内部服务器错误](https://linux22.com/image/897516/chown%20%E6%96%87%E4%BB%B6%E5%A4%B9%E5%90%8E%E5%87%BA%E7%8E%B0%20500%20%E5%86%85%E9%83%A8%E6%9C%8D%E5%8A%A1%E5%99%A8%E9%94%99%E8%AF%AF.png)
运行以下命令后,出现 500 内部服务器错误:
chown -R www-data:www-data /var/www
这是文件里的最后几行/var/log/apache2/error.log
。
/usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:40.158229 2017] [:error] [pid 3824] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:40.158240 2017] [:error] [pid 3824] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:40.158250 2017] [:error] [pid 3824] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:40.159175 2017] [:error] [pid 3823] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:40.159264 2017] [:error] [pid 3823] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:40.159276 2017] [:error] [pid 3823] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:40.159286 2017] [:error] [pid 3823] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.167617 2017] [:error] [pid 3826] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.167750 2017] [:error] [pid 3826] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.167761 2017] [:error] [pid 3826] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.167772 2017] [:error] [pid 3826] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.171448 2017] [:error] [pid 3825] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.171594 2017] [:error] [pid 3825] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.171606 2017] [:error] [pid 3825] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.171617 2017] [:error] [pid 3825] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.175442 2017] [:error] [pid 3827] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.175572 2017] [:error] [pid 3827] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.175584 2017] [:error] [pid 3827] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.175595 2017] [:error] [pid 3827] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.179316 2017] [:error] [pid 3828] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.179423 2017] [:error] [pid 3828] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.179434 2017] [:error] [pid 3828] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
[Mon Nov 20 23:36:41.179444 2017] [:error] [pid 3828] [mod_geoip]: Error while opening data file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
Error Opening file /usr/share/GeoIP/GeoLiteCity.dat
suexec policy violation: see suexec log for more details
[Mon Nov 20 23:37:47.607307 2017] [fcgid:warn] [pid 3825] (104)Connection reset by peer: [client 112.215.237.140:65518] mod_fcgid: error reading data from FastCGI server
[Mon Nov 20 23:37:47.610882 2017] [core:error] [pid 3825] [client 112.215.237.140:65518] End of script output before headers: index.php
suexec policy violation: see suexec log for more details
[Mon Nov 20 23:41:20.368400 2017] [fcgid:warn] [pid 1896] (104)Connection reset by peer: [client 112.215.237.140:16835] mod_fcgid: error reading data from FastCGI server
[Mon Nov 20 23:41:20.368521 2017] [core:error] [pid 1896] [client 112.215.237.140:16835] End of script output before headers: index.php
suexec policy violation: see suexec log for more details
[Mon Nov 20 23:45:16.218950 2017] [fcgid:warn] [pid 3828] (104)Connection reset by peer: [client 112.215.237.140:26790] mod_fcgid: error reading data from FastCGI server
[Mon Nov 20 23:45:16.219014 2017] [core:error] [pid 3828] [client 112.215.237.140:26790] End of script output before headers: index.php
[Mon Nov 20 23:49:45.767925 2017] [core:crit] [pid 3793] (13)Permission denied: [client 112.215.237.140:40527] AH00529: /var/www/ispconfig/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/ispconfig/' is executable
[Mon Nov 20 23:51:46.767779 2017] [core:crit] [pid 3828] (13)Permission denied: [client 112.215.237.140:62852] AH00529: /var/www/ispconfig/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/ispconfig/' is executable
[Mon Nov 20 23:51:59.908490 2017] [core:crit] [pid 3825] (13)Permission denied: [client 112.215.237.140:11735] AH00529: /var/www/ispconfig/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/ispconfig/' is executable
suexec policy violation: see suexec log for more details
[Mon Nov 20 23:52:35.614416 2017] [fcgid:warn] [pid 3826] (104)Connection reset by peer: [client 112.215.237.140:58862] mod_fcgid: error reading data from FastCGI server
[Mon Nov 20 23:52:35.614480 2017] [core:error] [pid 3826] [client 112.215.237.140:58862] End of script output before headers: index.php
会出现什么问题以及如何解决?