Uploading laravel 5.2 in server

I have successfully uploaded all files of my laravel project to server, but it always displays 'page not found' error. the root directory donot have public_html folder. so i tried renaming public folder of laravel to public_html but it is still not working. It is still up and running in localhost.

update: moved all public directory files to root directory now got this error:

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'


You need to setup web server. Create a virtual host and set /yourLaravelProject/public directory as root. Restart web server.

Also, set correct permissions to a storage directory:

chmod -R 777 storage

After that I'd recommend to clear all Laravel cache:

php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear

Usually after these steps Laravel app works as expected.

链接地址: http://www.djcxy.com/p/69518.html

上一篇: Laravel语法错误,意外的'变量'(T

下一篇: 在服务器上载laravel 5.2