Instalación de Symfonic en Debian Etch
De CidesaWiki
(Diferencias entre revisiones)
| (3 ediciones intermedias no se muestran.) | |||
| Línea 2: | Línea 2: | ||
* verificar la correcta instalación de php y pear. | * verificar la correcta instalación de php y pear. | ||
| - | + | $ php5 -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) | ||
Copyright (c) 1997-2006 The PHP Group | Copyright (c) 1997-2006 The PHP Group | ||
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies | Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies | ||
| - | + | ||
| + | $ pear -V | ||
PEAR Version: 1.4.9 | PEAR Version: 1.4.9 | ||
PHP Version: 5.1.6 | PHP Version: 5.1.6 | ||
| Línea 30: | Línea 31: | ||
symfony version 1.0.5 | symfony version 1.0.5 | ||
| - | * Configuramos Apache. Se debe editar el archivo 000-default : $ sudo nano /etc/apache2/sites-enabled/000-default lo siguiente: | + | * Configuramos Apache. Se debe editar el archivo 000-default : $ sudo nano /etc/apache2/sites-enabled/000-default y copiar al final lo siguiente: |
| - | + | ||
| - | + | ||
| - | + | ||
<pre> | <pre> | ||
| Línea 52: | Línea 50: | ||
</pre> | </pre> | ||
| + | |||
| + | Tomando en cuenta que donde dice '''/home/usuario/siga/web''', se debe cambiar la palabra usuario por '''SU NOMBRE DE USUARIO'''<br> | ||
* Configurar el nombre de '''siga.com''' asociado a nuestro equipo: | * Configurar el nombre de '''siga.com''' asociado a nuestro equipo: | ||
Última versión de 14:50 13 jul 2007
- Instalar Apache2, Instalación de PHP5 en Debian Etch
- verificar la correcta instalación de php y pear.
$ php5 -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
.....
- Se ejecutan las siguientes instrucciones para instalar symfony:
# 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.5.tgz ...
Starting to download symfony-1.0.5.tgz (1,911,013 bytes)
.............................done: 1,911,013 bytes
install ok: channel://pear.symfony-project.com/symfony-1.0.5
- Se verifica la instalación de Symfony
# symfony -V
symfony version 1.0.5
- Configuramos Apache. Se debe editar el archivo 000-default : $ sudo nano /etc/apache2/sites-enabled/000-default y copiar al final lo siguiente:
<VirtualHost *>
ServerName siga.com
DocumentRoot "/home/usuario/siga/web"
DirectoryIndex autenticacion_dev.php
Alias /sf /usr/share/php/data/symfony/web/sf
<Directory "/usr/share/php/data/symfony/web/sf">
AllowOverride All
Allow from All
</Directory>
<Directory "/home/usuario/siga/web">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
Tomando en cuenta que donde dice /home/usuario/siga/web, se debe cambiar la palabra usuario por SU NOMBRE DE USUARIO
- Configurar el nombre de siga.com asociado a nuestro equipo:
$ nano /etc/hosts #agregar: 127.0.0.1 siga.com
- Reiniciar los servicio de Red
$ /etc/init.d/networking restart
- Listo........