Configure Application on Laravel on Production Server

0

Someone who has already performed application deploy in Laravel on Centos 7 Production Server to give me a help ??

I have already made all the basic settings possible, I created VirtualHost pointing to the public folder, etc ... However I can not access the application in the browser, however when I change the index.php that is inside the public folder to other content, such as for example echo "Test page" works perfectly without generating error, but when I go back to the original index.php of the application it generates the error:

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

Someone who has gone through this can help me?

    
asked by anonymous 26.05.2018 / 21:09

1 answer

0

Check some settings.

  • Have you run composer install to install all dependencies?
  • Have you given read and write permission to the public and storage folders?
  • Is your .env file properly configuring?
  • I recommend reading this digital ocean article:

    Another thing worth checking out is the php and apache2 logs. If possible if you have availability I recommend switching from apache2 to nginx, much easier to configure and Laravel perfom better with the php-fpm package.

        
    26.05.2018 / 22:36