duanfan1869 2019-02-15 22:16
浏览 136

在VPS上部署Laravel应用程序时出现“内部服务器错误”

I'm trying to deploy a Laravel 5.6 app on a Debian 9 based VPS with Apache, but the server seem to be unable to handle the requests when i try to access the first page,and i keep having

"Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request."

I've already looked at this

Laravel htaccess Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04 https://www.howtoforge.com/tutorial/install-laravel-on-ubuntu-for-apache/

My .htaccess file that i placed inside the public folder

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

The configuration file places inside /etc/apache/sites-available

<VirtualHost *:80>
    ServerName picodem.dev

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html/picodem-project/public

    <Directory /var/www/html/picodem-project>
    Options Indexes Includes FollowSymLinks MultiViews
    AllowOverride AuthConfig FileInfo
    Order allow,deny
    Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

I don't have a domain name yet, and the picodem.dev is just dummy, so i'm accessing the app via the Browser using the IP address of the VPS, but i'm still not sure what's causing the problem...

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python
    • ¥15 要给毕业设计添加扫码登录的功能!!有偿
    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥15 stable diffusion
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条