I have a symfony2 project. I need to run it on my local environment using xampp. I placed the existing code in xampp but when i go to localhost/myproject
, it simple list the directories and files there. I also installed composer
in that directory
EDIT When I move to web
directory, it gives me following error
Warning: require_once(G:\xampp\htdocs\m\developer\web/../app/bootstrap.php.cache): failed to open stream: No such file or directory in G:\xampp\htdocs\m\developer\web\app_dev.php on line 23
Fatal error: require_once(): Failed opening required 'G:\xampp\htdocs\m\developer\web/../app/bootstrap.php.cache' (include_path='.;\xampp\php\PEAR') in G:\xampp\htdocs\m\developer\web\app_dev.php on line 23
The quickest way is if you go to localhost/myproject/web/app_dev.php
The proper way would be by configuring a virtual host. This question might help you with it Symfony 2 on virtual hosts
EDIT to your EDIT
It seems to be a problem between a project made in a linux environment, not functionning in a windows one. You could make a php composer.phar install
in your project directory, it should resolve your issue.
If there are troubles, you may want to get a fresh start with a clean composer.json
, remove composer.lock
and the vendor
forlder, then add the bundles you need in it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.