Instalar Symfony en Windows

De CidesaWiki

(Diferencias entre revisiones)
Saltar a navegación, buscar
 
(17 ediciones intermedias no se muestran.)
Línea 1: Línea 1:
-
* Instalar [[ubuntu|Apache2]], php5, php5-cli, php-pear
+
* Instalar appserver versión 2.5.8, descargarlo de la página http://prdownloads.sourceforge.net/appserv/appserv-win32-2.5.8.exe?download
-
* Modificar la Memoria Usada por PHP en el archivo /etc/php5/*/php.ini. 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). Debes modificar todos los php.ini dentro de la carpeta /etc/php5.
+
* Modificar el archivo C:\WINDOWS\php.ini.
-
* verificar la correcta instalación de php y pear.
+
        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).  
 +
* Configuracion del PHP, <br>
 +
  Editar el archivo C:\WINDOWS\php.ini y colocar en MEMORY_LIMIT=128M
<pre>
<pre>
 +
  Memory_limit = 128M
 +
  max_input_time = 120;
 +
  max_execution_time = 500;
 +
</pre>
 +
* Configuracion de las Variable de Session: <br>
 +
  Editar el archivo C:\WINDOWS\php.ini y buscar la palabra '''session.name''' y colocar cidesa.
 +
 +
<pre>
 +
  session.name = cidesa
 +
</pre>
 +
 +
 +
 +
* Verificar la correcta instalación de php y pear.
 +
<pre>
         # php -v
         # php -v
       PHP 5.1.6 (cli) (built: Mar  7 2007 12:48:25)  
       PHP 5.1.6 (cli) (built: Mar  7 2007 12:48:25)  
Línea 16: Línea 34:
</pre>
</pre>
 +
'''NOTA:''' Si retorna el siguiente error .
-
* Se ejecutan las siguientes instrucciones para instalar symfony:
+
<pre>
 +
      PHP Warning: PHP Startup: Unable to load dynamic library 'C:/AppServ\php5\ext\php_oci8.dll'
 +
      - No se encontró el proceso especificado.
 +
      in Unknown on line 0
 +
      PHP Warning:  PHP Startup: Unable to load dynamic library      'C:/AppServ\php5\ext\php_oracle.dll'
 +
      - No se puede encontrar el módulo especificado.
 +
      in Unknown on line 0
 +
      PHP 5.2.1 (cli) (built: Feb  7 2007 23:11:26)
 +
      Copyright (c) 1997-2007 The PHP Group
 +
      Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
 +
</pre>
 +
 +
Modificar el archivo c:\windows\php.ini .
 +
          Buscar 'php_oci8.ddl'  y agregar el comentario (;) a : extension=php_oci8.dll
 +
          Buscar 'php_oracle.ddl' y agregar el comentario (;) a : extension=php_oracle.dll
 +
 +
* Ejecutar el arhivo go-pear.bat
<pre>
<pre>
 +
    C:\AppServ\php5\go-pear.bat
 +
</pre>
-
         # pear channel-discover pear.symfony-project.com
+
* Se ejecutan las siguientes instrucciones para instalar symfony:
 +
 
 +
<pre>
 +
         # peardev channel-discover pear.symfony-project.com
       Adding Channel "pear.symfony-project.com" succeeded
       Adding Channel "pear.symfony-project.com" succeeded
       Discovery of channel "pear.symfony-project.com" succeeded
       Discovery of channel "pear.symfony-project.com" succeeded
-
         # pear install symfony/symfony
+
         # peardev install symfony/symfony-1.0.18
       downloading symfony-1.0.1.tgz ...
       downloading symfony-1.0.1.tgz ...
       Starting to download symfony-1.0.1.tgz (1,911,013 bytes)
       Starting to download symfony-1.0.1.tgz (1,911,013 bytes)
       .............................done: 1,911,013 bytes
       .............................done: 1,911,013 bytes
       install ok: channel://pear.symfony-project.com/symfony-1.0.1
       install ok: channel://pear.symfony-project.com/symfony-1.0.1
-
 
</pre>
</pre>
Línea 37: Línea 76:
<pre>
<pre>
-
 
         # symfony -V
         # symfony -V
       symfony version 1.0.1
       symfony version 1.0.1
Línea 44: Línea 82:
* '''Configuramos Apache'''  
* '''Configuramos Apache'''  
-
Se debe colocar en el archivo de texto C:/AppServ/Apache2.2/conf/http.conf, para decirle que los host virtuales apunte al archivo http-vhost:
+
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:
<pre>
<pre>
-
 
+
       Include C:/AppServ/Apache2.2/conf/default/httpd-vhosts.conf
-
       Include C:/AppServ/Apache2.2/conf/default/httpd-vhosts
+
-
+
</pre>
</pre>
Línea 55: Línea 91:
<pre>
<pre>
-
 
<VirtualHost *:80>
<VirtualHost *:80>
       ServerName www.siga.com
       ServerName www.siga.com
Línea 86: Línea 121:
</VirtualHost>
</VirtualHost>
-
 
</pre>
</pre>
-
* Luego, reiniciar el equipo para que tenga efecto lo que se configuró.
+
* Editar el archivo hosts de windows en la carpeta C:\WINDOWS\system32\drivers\etc, y colocar al final de la linea:
-
* Listo........
+
<pre>
 +
      127.0.0.1      www.siga.com
 +
</pre>
 +
* Luego, reiniciar el equipo para que tenga efecto lo que se configuró.
-
 
+
* Listo........
-
--[[Usuario:192.168.0.100|192.168.0.100]] 09:09 4 abr 2007 (VET)
+

Última versión de 14:18 27 jul 2009

       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). 
 Editar el archivo C:\WINDOWS\php.ini y colocar en MEMORY_LIMIT=128M
  Memory_limit = 128M
  max_input_time = 120;
  max_execution_time = 500;
 Editar el archivo C:\WINDOWS\php.ini y buscar la palabra session.name y colocar cidesa.
   session.name = cidesa


        # 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
      .....

NOTA: Si retorna el siguiente error .

      PHP Warning:  PHP Startup: Unable to load dynamic library 'C:/AppServ\php5\ext\php_oci8.dll'
      - No se encontró el proceso especificado.
      in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library       'C:/AppServ\php5\ext\php_oracle.dll'
       - No se puede encontrar el módulo especificado.
      in Unknown on line 0
      PHP 5.2.1 (cli) (built: Feb  7 2007 23:11:26)
      Copyright (c) 1997-2007 The PHP Group
      Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Modificar el archivo c:\windows\php.ini .

         Buscar 'php_oci8.ddl'  y agregar el comentario (;) a : extension=php_oci8.dll 
         Buscar 'php_oracle.ddl' y agregar el comentario (;) a : extension=php_oracle.dll
    C:\AppServ\php5\go-pear.bat
        # peardev channel-discover pear.symfony-project.com
      Adding Channel "pear.symfony-project.com" succeeded
      Discovery of channel "pear.symfony-project.com" succeeded


        # peardev install symfony/symfony-1.0.18
      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