Instalar Symfony en Windows

De CidesaWiki

(Diferencias entre revisiones)
Saltar a navegación, buscar
Línea 2: Línea 2:
* Modificar el archivo C:\WINDOWS\php.ini.
* Modificar el archivo C:\WINDOWS\php.ini.
         Buscar Windows Extensions y quitar el comentario (;) a : extensión=php_pgsql.dll
         Buscar Windows Extensions y quitar el comentario (;) a : extensión=php_pgsql.dll
-
         Modificar la Memoria Usada por PHP. Debes ser superusuario para realizar esta operación. Se debe cambiar la opción "memory_limit = 8M" y colocarla en 64M (o 128 se vas a generar en symfony schemas muy grandes).  
+
         Modificar la Memoria Usada por PHP. Debes ser superusuario para realizar esta operación.
 +
Se debe cambiar la opción "memory_limit = 8M" y colocarla en 64M (o 128 se vas a generar en symfony schemas muy grandes).  
* verificar la correcta instalación de php y pear.
* verificar la correcta instalación de php y pear.

Revisión de 21:06 15 may 2007

       Buscar Windows Extensions y quitar el comentario (;) a : extensión=php_pgsql.dll
       Modificar la Memoria Usada por PHP. Debes ser superusuario para realizar esta operación.

Se debe cambiar la opción "memory_limit = 8M" y colocarla en 64M (o 128 se vas a generar en symfony schemas muy grandes).

        # php -v
      PHP 5.1.6 (cli) (built: Mar  7 2007 12:48:25) 
      Copyright (c) 1997-2006 The PHP Group
      Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
        # pear -V
      PEAR Version: 1.4.9
      PHP Version: 5.1.6
      Zend Engine Version: 2.1.0
      .....


        # pear channel-discover pear.symfony-project.com
      Adding Channel "pear.symfony-project.com" succeeded
      Discovery of channel "pear.symfony-project.com" succeeded


        # pear install symfony/symfony
      downloading symfony-1.0.1.tgz ...
      Starting to download symfony-1.0.1.tgz (1,911,013 bytes)
      .............................done: 1,911,013 bytes
      install ok: channel://pear.symfony-project.com/symfony-1.0.1
        # symfony -V
      symfony version 1.0.1


Se debe colocar en el archivo de texto C:/AppServ/Apache2.2/conf/http.conf, para decirle que los host virtuales apunte al archivo httpd-vhosts:

      Include C:/AppServ/Apache2.2/conf/default/httpd-vhosts.conf

Luego editar el archivo httpd-vhosts que se encuentra en C:/AppServ/Apache2.2/conf/default/ y se coloca los siguiente:

<VirtualHost *:80>
      ServerName www.siga.com
      DocumentRoot "c:/appserv/www/siga/web/"
      DirectoryIndex index.php
      Alias /sf c:\AppServ\php5\PEAR\data\symfony\web\sf

      <Directory "c:\AppServ\php5\PEAR\data\symfony\web\sf">
        AllowOverride All
        Allow from All
      </Directory>

      <Directory "c:/appserv/www/siga/web">
        AllowOverride All
        Allow from All
      </Directory>

</VirtualHost>


<VirtualHost *:80>
      ServerName localhost
      DocumentRoot "c:/appserv/www/"
      DirectoryIndex index.php index.html index.htm

      <Directory "c:/appserv/www/">
        AllowOverride All
        Allow from All
      </Directory>

</VirtualHost>
       127.0.0.1       www.siga.com
Herramientas personales
Espacios de nombres
Variantes
Acciones
Navegación
Herramientas