douduoting8408 2017-07-13 23:17
浏览 43

在localhost上创建新的symfony项目

Hello I'm trying to run project using newest symfony on my localhost.

What i already did:

I added this to my vhosts file in Xampp.

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "F:\Programy\XAMP\htdocs\Anka\web"
    ServerName Anka
    DirectoryIndex app_dev.php
    ErrorLog "logs/vark.local-error.log"
    CustomLog "logs/vark.local-access.log" common
</VirtualHost>

I added this in my hosts file in Windows\System32...

127.0.0.1 Anka

This is what i see after typing

 anka\

In my browser. My localhost website

And when i click on web i see this: web

Can somebody help me what else i should do to see normal Symfony index page?

  • 写回答

2条回答 默认 最新

  • du8442 2017-07-14 07:40
    关注

    Try http://anka/app_dev.php or http://anka/web/app_dev.php

    Also You can Change the directory to this one with the application and run:

    php bin/console server:run

    Then access http://localhost:8000/ in your browser

    Like this:

    https://symfony.com/doc/current/setup.html#running-the-symfony-application

    评论

报告相同问题?