PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, September 20, 2022

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

 September 20, 2022     apache, laravel, php, virtualhost     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing