Tuesday, September 20, 2022

[FIXED] How do I turn on Laravel in production using Apache?

Issue

  • I have installed Apache, MySQL, PHP, Composer, Laravel, etc. on CentOS 8.
  • I have created an Apache VirtualHost that is serving up PHP with https just fine.
  • I have a Laravel application in a subdirectory on the VirtualHost and it runs without SSL using php artisan serve

My question is: How do I get it to run on the Apache VirtualHost?

Do I need to have an index.php redirect or include something? What am I missing?

TIA


Solution

The solution was to point the virtual host's DocumentRoot to /laravel_app_root/public Thanks again, @matiaslauriti



Answered By - n8bar
Answer Checked By - David Goodson (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.