V
V
vc4vc2018-06-06 00:32:36
symfony
vc4vc, 2018-06-06 00:32:36

How to run a symfony project from a browser, under openserver on windows?

Installed openserver on windows.
I checked localhost to open from a browser, everything works.
There is a project on symfony , I put it in a separate folder next to the localhost, restart the open server, he sees this project himself.
But I start to switch their browser and shows an error.
I think the problem is in the files of the project itself prntscr.com/jrbvk8 , since index.php is needed in the main folder of the project to display the site, but it is not there.
How to run it correctly? this is my first time doing this please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hiimnotwordy, 2018-06-15
@hiimnotwordy

Installing Composer on OpenServer
https://getcomposer.org/download/
Checking the PHP Version
Checking extensions
Launching the console
Change to the directory of the version of PHP OpenServer you are using
Run the Composer installation from the PHP directory
Composer installation progress

All settings correct for using Composer
Downloading…
...

Checking the Composer version after installation
Creating a .bat for the global call Checking
the Composer call
Updating the Composer version
____________________________________________________________
Then the symphony
Go to the site location directory
Create new project by running
Running your Symfony Application
First, move into your new project and install the server:
cd my-project
composer require server --dev

To start the server, run:
Open your browser and navigate to localhost:8000/. If everything is working, you'll see a welcome page.
Listening on 127.0.0.1:8000
Document root is D:\OSPanel\domains\symphony4\public
php -S 127.0.0.1:8000 -t public

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question