A
A
Alexander Krysko2018-05-20 20:29:17
Apache HTTP Server
Alexander Krysko, 2018-05-20 20:29:17

Why is index.php opening?

Good day. I uploaded a Laravel site to test1.craftdevelop.com, but the content of the index.php file opens.
If you run the command php artisan serve --host=my_ip, then the site will start on my ip on port 8000. But how to make it run through apache virtual hosts?
Sorry for the crooked wording of the question. And thanks for your understanding.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yan-s, 2018-05-20
@Yan-s

But how to make it run through Apache virtual hosts?

It is obvious to set up virtual hosts in Apache for this site. Just google "configuring apache virtual hosts", you can add "laravel" to the request, to be sure.
this is purely for simple testing.
PS
But nginx is better

D
Dymok, 2018-05-20
@UnluckySerivelha

Why PHP code is output just as text?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question