<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog Symfony - Lexik Montpellier &#187; wamp</title>
	<atom:link href="http://www.lexik.fr/blog/symfony/tag/wamp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lexik.fr/blog/symfony</link>
	<description>Blog sur le développement Web PHP</description>
	<lastBuildDate>Tue, 20 Jul 2010 08:35:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Virtual hosts dans Wamp pour Symfony</title>
		<link>http://www.lexik.fr/blog/symfony/symfony/wamp-virtual-host-109</link>
		<comments>http://www.lexik.fr/blog/symfony/symfony/wamp-virtual-host-109#comments</comments>
		<pubDate>Sun, 22 Feb 2009 18:33:48 +0000</pubDate>
		<dc:creator>Samuel Breton</dc:creator>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[httpd-vhosts.conf]]></category>
		<category><![CDATA[virtual hosts]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">http://www.lexik.fr/sfblog/?p=109</guid>
		<description><![CDATA[Configuration des &#171;&#160;vitual hosts&#160;&#187; dans Wamp pour pouvoir gérer plusieurs projets Symfony. Dans cet exemple nous allons configurer 2 sites : Site A : Emplacement : c:\wamp\www\sf_projects\siteA Host : siteA.local Site B : Emplacement : c:\wamp\www\sf_projects\siteB Host : siteB.local httpd-vhosts.conf Editer le fichier : C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf ?View Code TEXTNameVirtualHost *:80 #Site A &#60;VirtualHost *:80&#62; ServerAdmin admin@siteA.com [...]]]></description>
			<content:encoded><![CDATA[<p>Configuration des &laquo;&nbsp;vitual hosts&nbsp;&raquo; dans Wamp pour pouvoir gérer plusieurs projets Symfony.<br />
<span id="more-109"></span><br />
Dans cet exemple nous allons configurer 2 sites :</p>
<ul>
<li>Site A :<br />
Emplacement : c:\wamp\www\sf_projects\siteA<br />
Host : siteA.local</li>
<li>Site B :<br />
Emplacement : c:\wamp\www\sf_projects\siteB<br />
Host : siteB.local</li>
</ul>
<h2>httpd-vhosts.conf</h2>
<ul>
<li>Editer le fichier :<br />
<blockquote><p>C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf</p></blockquote>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p109code2'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1092"><td class="code" id="p109code2"><pre class="text" style="font-family:monospace;">NameVirtualHost *:80
#Site A
&lt;VirtualHost *:80&gt;
    ServerAdmin admin@siteA.com
    DocumentRoot &quot;C:\wamp\www\sf_projects\siteA\web&quot;
    ServerName siteA.local
    ServerAlias siteA.local
    ErrorLog &quot;logs/siteA.localhost-error.log&quot;
    CustomLog &quot;logs/siteA.localhost-access.log&quot; common
    Alias /sf C:\wamp\www\sf_projects\siteA\lib\vendor\symfony\data\web\sf
&lt;/VirtualHost&gt;
#Site B
&lt;VirtualHost *:80&gt;
    ServerAdmin admin@siteB.com
    DocumentRoot &quot;C:\wamp\www\sf_projects\siteB\web&quot;
    ServerName siteB.local
    ServerAlias siteB.local
    ErrorLog &quot;logs/siteB.localhost-error.log&quot;
    CustomLog &quot;logs/siteB.localhost-access.log&quot; common
    Alias /sf C:\wamp\www\sf_projects\siteB\lib\vendor\symfony\data\web\sf
&lt;/VirtualHost&gt;
#Pour garder son localhost opérationnel
&lt;VirtualHost *:80&gt;
    DocumentRoot &quot;C:\wamp\www&quot;
    ServerName localhost
    ServerAlias localhost
&lt;/VirtualHost&gt;</pre></td></tr></table></div>

</li>
</ul>
<h2>httpd.conf</h2>
<ul>
<li>Editer le fichier :<br />
<blockquote><p>C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf</p></blockquote>
</li>
<li> Décommenter la ligne :<br />
<blockquote><p>#Include conf/extra/httpd-vhosts.conf</p></blockquote>
</li>
</ul>
<h2>hosts</h2>
<ul>
<li>Editer le fichier :<br />
<blockquote><p>C:\WINDOWS\system32\drivers\etc\hosts</p></blockquote>
</li>
<li>Ajouter ces 2 lignes :<br />
<blockquote><p>127.0.0.1       localhost siteA.local<br />
127.0.0.1       localhost siteB.local</p></blockquote>
</li>
</ul>
<p>Voilà, redémarrez Wamp, et vos sites  sont accessibles aux adresses suivantes :</p>
<blockquote><p>http://siteA.local/</p>
<p>http://siteB.local/</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.lexik.fr/blog/symfony/symfony/wamp-virtual-host-109/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Installation Symfony sous Windows</title>
		<link>http://www.lexik.fr/blog/symfony/symfony/wamp-symfony-18</link>
		<comments>http://www.lexik.fr/blog/symfony/symfony/wamp-symfony-18#comments</comments>
		<pubDate>Sun, 22 Feb 2009 17:59:03 +0000</pubDate>
		<dc:creator>Samuel Breton</dc:creator>
				<category><![CDATA[1.2.x]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[wamp]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.lexik.fr/sfblog/?p=18</guid>
		<description><![CDATA[Création pas à pas d&#8217;un projet symfony 1.2 sous Windows avec Wamp. Pré-requis mon OS : un windows XP à jour le 18/02/2009 mon wamp : 2.0 (C:\wamp) mon PHP : 5.2.8 (C:\wamp\bin\php\php5.2.8) Installer Symfony Créer le repertoire du projet symfony : C:\wamp\www\sf_projects\sf_helloworld Créer un répertoire pour enregistrer les fichiers de la librairie du framework [...]]]></description>
			<content:encoded><![CDATA[<p>Création pas à pas d&#8217;un  projet symfony 1.2 sous Windows avec Wamp.<br />
<span id="more-18"></span></p>
<h2>Pré-requis</h2>
<ul>
<li>mon OS : un windows XP à jour le 18/02/2009</li>
<li>mon wamp : 2.0 (C:\wamp)</li>
<li>mon PHP : 5.2.8 (C:\wamp\bin\php\php5.2.8)</li>
</ul>
<h2>Installer Symfony</h2>
<ul>
<li>Créer le repertoire du projet symfony :<br />
<blockquote><p>C:\wamp\www\sf_projects\sf_helloworld</p></blockquote>
</li>
<li>Créer un répertoire pour enregistrer les fichiers de la librairie du framework symfony :<br />
<blockquote><p>C:\wamp\www\sf_projects\sf_helloworld\lib\vendor</p></blockquote>
</li>
<li>Télécharger et décompresser l&#8217;archive : <a href="http://www.symfony-project.org/installation/1_2">http://www.symfony-project.org/installation/1_2</a> dans le répertoire lib/vendor que nous venons de créer</li>
<li>Ouvrir le fichier :<br />
<blockquote><p>C:\wamp\www\sf_projects\sf_helloworld\lib\vendor\symfony\data\bin\symfony.bat</p></blockquote>
</li>
<li> remplacer :<br />
<blockquote><p>set PHP_COMMAND=php.exe <em>(ligne 34)</em></p></blockquote>
<p>par :</p>
<blockquote><p>set PHP_COMMAND=C:\wamp\bin\php\php5.2.8\php.exe <em>(ligne 35)</em></p></blockquote>
<p>Exemple :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p18code6'); return false;">View Code</a> BAT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p186"><td class="code" id="p18code6"><pre class="bat" style="font-family:monospace;">@echo off
&nbsp;
rem *************************************************************
rem ** symfony CLI for Windows based systems (based on phing.bat)
rem *************************************************************
&nbsp;
rem This script will do the following:
rem - check for PHP_COMMAND env, if found, use it.
rem   - if not found detect php, if found use it, otherwise err and terminate
&nbsp;
if &quot;%OS%&quot;==&quot;Windows_NT&quot; @setlocal
&nbsp;
rem %~dp0 is expanded pathname of the current script under NT
set SCRIPT_DIR=%~dp0
&nbsp;
goto init
&nbsp;
:init
&nbsp;
if &quot;%PHP_COMMAND%&quot; == &quot;&quot; goto no_phpcommand
&nbsp;
IF EXIST &quot;.\symfony&quot; (
  %PHP_COMMAND% &quot;.\symfony&quot; %*
) ELSE (
  %PHP_COMMAND% &quot;%SCRIPT_DIR%\symfony&quot; %*
)
goto cleanup
&nbsp;
:no_phpcommand
rem echo ------------------------------------------------------------------------
rem echo WARNING: Set environment var PHP_COMMAND to the location of your php.exe
rem echo          executable (e.g. C:\PHP\php.exe).  (assuming php.exe on PATH)
rem echo ------------------------------------------------------------------------
rem set PHP_COMMAND=php.exe
set PHP_COMMAND=C:\wamp\bin\php\php5.2.8\php.exe
goto init
&nbsp;
:cleanup
if &quot;%OS%&quot;==&quot;Windows_NT&quot; @endlocal
rem pause</pre></td></tr></table></div>

</li>
<li> Vous pouvez vérifier que tout s&#8217;est bien passé en tapant à partir de :<br />
<blockquote><p>C:\wamp\www\sf_projects\sf_helloworld\lib\vendor\symfony\data\bin\</p></blockquote>
<p>la commande :</p>
<blockquote><p>symfony -V</p></blockquote>
<p>qui doit vous donner :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p18code7'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p187"><td class="code" id="p18code7"><pre class="text" style="font-family:monospace;">symfony 1.2.4 (C:\wamp\www\sf_projects\sf_helloworld\lib\vendor\symfony\lib)</pre></td></tr></table></div>

</li>
</ul>
<p><!--more--></p>
<h2>Créer un projet symfony</h2>
<ul>
<li> Se placer ici :<br />
<blockquote><p>C:\wamp\www\sf_projects\sf_helloworld\</p></blockquote>
</li>
<li>Taper la commande suivante :<br />
<blockquote><p>lib\vendor\symfony\data\bin\symfony generate:project sf_helloworld</p></blockquote>
</li>
<li>Vous pouvez maintenant exécuter symfony à partir de la racine du projet :<br />
<blockquote><p>C:\wamp\www\sf_projects\sf_helloworld\symfony -V</p></blockquote>
<p>donne toujours :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p18code8'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p188"><td class="code" id="p18code8"><pre class="text" style="font-family:monospace;">symfony 1.2.4 (C:\wamp\www\sf_projects\sf_helloworld\lib\vendor\symfony\lib)</pre></td></tr></table></div>

</li>
</ul>
<p><!--more--><br />
<em>Sources : </em></p>
<ul>
<li><em><a href="http://trac.symfony-project.org/wiki/HowToInstallSymfonyOnWindowsWithWamp">http:<br />
//trac.symfony-project.org/wiki/HowToInstallSymfonyOnWindowsWithWamp</a> </em></li>
<li> <em><a href="http://www.symfony-project.org/jobeet/1_2/Doctrine/en/01">http://www.symfony-project.org/jobeet/1_2/Doctrine/en/01</a> </em></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.lexik.fr/blog/symfony/symfony/wamp-symfony-18/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
