D
D
DmitryWL2018-08-25 15:45:25
IDE
DmitryWL, 2018-08-25 15:45:25

What is missing from php storm or xampp to run a project on localhost?

I read a toaster in the night and, as usual, decided to learn something new. In this case PHP Storm.
But the site does not run on localhost.
It seems that I did everything according to the link...
https://confluence.jetbrains.com/display/PhpStorm/...
But I still get a 404 error that does not find the files.
C:\Users\...\PhpstormProjects\DKLARA>php artisan serve
Laravel development server started: 127.0.0.1:8000
[Sat Aug 25 15:41:05 2018] 127.0.0.1:57642 [404]: /js/app .js - No such file or directory
[Sat Aug 25 15:36:22 2018] 127.0.0.1:57162 [404]: /js/app.js - No such file or directory
Maybe because the project is not in htdocs lies?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2018-08-25
@sidni

Well, actually, phpstorm is just, roughly speaking, a file editor, and has very little to do with the server itself, so these are all xampp and laravel setup problems,
judging by the error, I even think that laravel is more judging by the error ... as far as I remember mixins are configured there or maybe in the settings the public folder is not the root directory for apacha .... I would first set up the localhost, open the index.php file in the browser with some simple code, for example

<?php
phpinfo();
?>

and if everything is fine, only then installed laravel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question