Xampp and symfony on windows7 - php

I'm quite new with symfony and i'm trying to develop a base web application.
I install and configured symfony on my pc (windows 7 64bit) following the documentation and all works fine.
I run the server with command line (php bin/console server:run) and test the application in browser successfully.
Then iwould like to move the symfony folder under my local Xampp (xampp\htdocs\symfony\myproject) installation that i use for php development since now.
My problem is that when i run localhost\symfony\myproject\web the symfony welcome page is shown but if i modify the index.html.twig template no change are displayed.
Some routing problem? vhosts config?

try with
localhost\symfony\myproject\web\app_dev.php
since localhost\symfony\myproject\web is the prod url and has some cache, which may "hide" your modification

Related

Running a Laravel project on localhost

Im trying to run already working laravel project (page that works well on cloud) on localhost. Cant figure where is problem.
Code editor: PhpStorm (newest version)
Apache: MAMP 2.2.27
I want to make some changes in code and I want to see those changes.
MAMP Ports
When I try to Run it via PhpStorm setup
PhpStorm Deplyment
My PHP
How do I run this project on localhost? Thank you for your answer.
You're running it in PhpStorm on a built-in web server on a default port. Try changing the port for your "web" in-place deployment configuration: web server root url should look like https://localhost:8888/web
Try to run the project root directory:php artisan serve.
If you can visit.
Maybe problem in apache config.

Laravel with xampp

I need to understand this behavior.
I use xampp for web development. I start to apache server in the xampp gui and then I can start my projects in the browser via localhost...
Since yesterday I have added laravel to my mac book. My project is in the xampp htdocs folder and I want to use it witch xampp. But when the xampp apache server instance is running, nothing is happened to my laravel project until I run php artisan serve in the cmd.
How can I combine larael with xampp?
And what exactly does php artisan serve do? Start another apache server instance?
The artisan command is just a command line utility for laravel. The serve command just starts up the PHP server.
to run it without artisan you can Configure a server virtual-host (Apache or Nginx) which have the public directory of your project as root directory. Since you are using a MAC I can't exactly instruct you to how to do that.
NOTE
this will help to create the virtual host. but i haven't tried that
sorry i can't comment due to reputation :/ i use lumen (rest api of laravel) with xampp and it works fine. Can you provide somemore details?
I also think the path is the problem. Which path you use to access it via a browser? for lumen its /htdocs/project/public/ so in browser: http://localhost/project/public/
there i can access the api. should be similar for full laravel project?
Create virtual host and point it to laravel_directory/public/index.php and restart apache.
Creating apache virtual host:
http://laravel-recipes.com/recipes/25/creating-an-apache-virtualhost
If you don't want to do that load, localhost/lara_dir/public/index.php
index.php is where all the requests go through.

Using Polymer with WAMP

I have been working in an online environment on a Polymer based project. Right now I am tasked with trying to run the polymer project on my local machine (Windows 10).
When using polymer, I run polymer serve --open, I get a not found error with a url of http://localhost:8080/components/wc/. wc is my project folder that I am running the command on, so when I switch to http://localhost:8080/wc/ or http://localhost:8080/wc/index.php , I still seem to get a not found error.
Am I doing this correctly? As an alternative, how would I go about setting this up in WAMP? Would I just drag my folder into a directory in wamp, then run the server?

Symfony2 on IIS setup

I installed Symfony2 on Windows 8.1. The files are stored under IIS in wwwroot.
Everything runs very well when I use the internal built-in PHP server. I can access the site through localhost:8000/app_dev.php.
When I try to access the site straight through localhost (localhost/test_project/web/app.php), I can get to the site, but it doesn't update with my changes even after I close the browser and completely reload the site. I have the same problem on the internal PHP server when I try localhost:8000/app.php - my changes aren't there.
Questions:
1. Why are my app and app_dev showing different content?
2. How can I set up Symfony to run on IIS and not need the internal server?
Because app.php uses cached files and you need to clear framework cache to see your changes. It is production version of your web.
php app/console cache:clear --env=prod --no-debug
localhost/test_project/web/app_dev.php
Please look at official Symfony documentation for explanation.

Trying to run a Symfony project on my computer

I'm trying to run a Symfony project that I cloned from a GitHub. I've never used Symfony before but I'd like to run the project.
I read you needed to run frontend_dev.php so I ran that in to my browser:
C:\Users\Computer\Desktop\Project\WebInterface\web\frontend_dev.php
But just got a blank page with some PHP on it. I believe I may have to set up a web server but I'm not sure and figured I'd ask here first.
If I wanted to run the project from my computer, would I just download an Apache server and drop it in the root directory? What variables and files would I need to change to get it working properly? Do I need to forward any ports?
Symfony 1.x branch is not supported anymore. Use Symfony 2.
Anyway, concerning your question: here is the doc for 1.4: Day 1: Starting up the Project

Categories