dongliulu1122 2014-10-17 19:41
浏览 71
已采纳

PhpStorm + Vagrant + Symfony2

I want to display Symfony2 page using vagrant box. If i turn on vagrant box (vagrant up), and use by ssh command "php app/console server:run" Then i see info " Server running on http://127.0.0.1:8000 " and if i go to the website "192.168.33.10" or "127.0.0.1" or "127.0.0.1:8000" on host machine, Then i don't see symfony2 site.

Question: How is correctly configuration the vagrant file, that allow me see symfony2 site ?

Its keys lines in my vagrant file .

      ....
      config.vm.box = "symfony-v0.2.0"
      config.vm.network "forwarded_port", guest: 8000, host: 80
      config.vm.network "private_network", ip: "192.168.33.10"
      config.vm.network "public_network"
      config.vm.synced_folder "./", "/var/www/"
      ....

Add informations:
==> default: Mounting shared folders...
    default: /var/www => C:/Users/Wojtek/PhpstormProjects/DragonisProject/Symfony2Project
    default: /vagrant => C:/Users/Wojtek/PhpstormProjects/DragonisProject/Symfony2Project
  • 写回答

2条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 在线教育培训平台,主要以点播视频和在线练习测试为主,除将视频做切片外,有其他哪种方式降低流量?(关键词-带宽速率)
      • ¥20 用c语音或c++实现银行叫号系统
      • ¥15 人工智能 规则正向演绎和推理
      • ¥20 基于STM32F401的电子密码锁设计
      • ¥15 famamacbeth回归中遇到only size-1 arrays can be converted to Python scalars,求解答
      • ¥15 单片机多个自锁按键的编程实践
      • ¥15 用python操作redis存储中文后,再取出的数据变成了乱码怎么办?
      • ¥15 C语言简单排序问题有偿求解
      • ¥20 请问图片的代码什么意思
      • ¥15 coq问题求带,有偿