Configure Laravel Application on Production Server

Asked

Viewed 3,521 times

0

Someone who has already deployed application in Laravel on Centos 7 Production Server to give me a hand??

I have done all the basic possible settings, created Virtualhost pointing to the public folder, etc... But I can’t access the application in the browser, but when I change the index.php that is inside the public folder to other content, such as echo "Test page" works perfectly without generating an 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’s been there Can help me???

1 answer

0

Check some settings.

  1. You ran Composer install to install all dependencies?
  2. You gave read and write permission to the public and Storage folders?
  3. Your file . env is properly configuring?

I recommend reading this article from digital Ocean: https://www.digitalocean.com/community/tutorials/como-configurar-apache-virtual-hosts-no-ubuntu-16-04-pt

Another thing worth checking out are the php and apache2 logs. If possible if you have availability recommend switching from apache2 to Nginx, much easier to set up and Laravel better profile with php-fpm package.

  • Yes, I ran Composer update, 777 permission on all folders and the file. env configured correctly, I can even execute commands via Tinker. I’ll read this article.

  • 1

    Briefcase public it has to be only 755.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.