laravel - nginx+php7 configuration virtual host cannot be accessed
伊谢尔伦
伊谢尔伦 2017-05-16 16:51:52
0
2
528

nginx+php7 configuration virtual host cannot access my laravel project, and the access page keeps reporting a 500 error code
My configuration:

server {
    listen 80;
    listen [::]:80;

    server_name demo.cn;

    root /var/www/laravel-blog/public;
    index index.php index.html index.htm;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {        
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
        }
}
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
洪涛

The tutorial is very clear: https://laravist.com/series/d...

左手右手慢动作

Try to check your nginx error.log log file.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!