虚拟主机500错误(阿帕奇2.4.10 / Debian的) [英] VirtualHost 500 error (Apache 2.4.10 / Debian)

查看:533
本文介绍了虚拟主机500错误(阿帕奇2.4.10 / Debian的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早安计算器..我一直在解决此相当长一段时间。

Good Morning StackOverFlow.. I have been troubleshooting this for quite a while.

问题:当我尝试访问 http://newdash.new 它返回一个500错误。这种情况发生在本地访问URL,并通过局域网时。

Problem: When I try to access http://newdash.new it returns a 500 error. This happens both when accessing the URL locally and over the LAN.

运行在Debian8与Apache 2.4.10
下面是我的

Running on Debian8 with Apache 2.4.10 Below is my

/etc/apache2/sites-enabled/newdash.conf

下面:

<VirtualHost *:80>
ServerName newdash.new

ServerAdmin webmaster@localhost
DocumentRoot "/var/www/newdash/public"


ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory "/var/www/newdash/public">
    Order allow,deny
    Allow from all
    # New directive needed in Apache 2.4.3:
    Require all granted
</Directory>
</VirtualHost>

和权限:

drwxr-xr-x 11 root root 4096 Nov 13 10:51 newdash

我可以ping指定的路线(newdash.new)本地和通过局域网和IP解析正确。

I can ping the named route (newdash.new) both locally and over the LAN and the ip resolves properly.

在我的Apache2错误日志:

In my Apache2 error log:

[Fri Nov 13 11:45:51.345101 2015] [:error] [pid 1958] [client 10.1.1.108:56899] PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/var/www/newdash/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in /var/www/newdash/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87\nStack trace:\n#0 /var/www/newdash/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\\Handler\\StreamHandler->write(Array)\n#1 /var/www/newdash/vendor/monolog/monolog/src/Monolog/Logger.php(289):

所以它似乎有一个错误的权限上目录。

So it appears there is a permissions error on that directory..

我不知道还有什么其他信息将是有益的...

I don't know what other information would be helpful...

感谢您。

推荐答案

我发现在错误日志中的错误。

I found the error in the error log.

[Fri Nov 13 11:45:51.345101 2015] [:error] [pid 1958] [client 10.1.1.108:56899] PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/var/www/newdash/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in /var/www/newdash/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87\nStack trace:\n#0 /var/www/newdash/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\\Handler\\StreamHandler->write(Array)\n#1 /var/www/newdash/vendor/monolog/monolog/src/Monolog/Logger.php(289):

的建议,找那里以后,我意识到的权限上的/存储/日志/文件夹是造成问题。

As suggested, after looking there, I realized the permissions on the /storage/logs/ folder was causing the issues.

感谢你的建议arkascha!

Thank you for the suggestion arkascha!

这篇关于虚拟主机500错误(阿帕奇2.4.10 / Debian的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆