
21/01/2002, 20:05
|
 | | | Fecha de Ingreso: febrero-2001
Mensajes: 350
Antigüedad: 24 años Puntos: 0 | |
Instalando PHP4 como módulo de Apache Veamos,
Trataré de explicar brevemente como configurar PHP4 como módulo del servidor Apache bajo Windows:
En mi caso, he instalado Apache 1.3.22 , PHP 4.1.1 , MySQL 3.23.46 y Perl 5.6.1 build 630 en los siguientes directorios, Uds. deberán guiarse por sus instalaciones: c:\inetpub\Apache
c:\inetpub\mysql
c:\inetpub\Perl
c:\inetpub\php ¡¡¡OJO!!!: Para hacer los cambios, Apache no debe estar corriendo. Pasos a seguir:
-Editar el file \Apache\conf\httpd.conf .
-Buscar #ServerName y modificarla así: ServerName http://
-Buscar DocumentRoot y modificarla así: DocumentRoot "C:/inetpub/Apache/htdocs"
-Buscar ScriptAlias /cgi-bin/ y modificarla así: ScriptAlias /cgi-bin/ "C:/inetpub/Apache/cgi-bin/"
-Debajo de esa línea agregar: ScriptAlias /php/ "C:/inetpub/php/"
-Buscar la sección Addtype application/ y modificarla o agregarle estas líneas: Addtype application/x-httpd-php .php Addtype application/x-httpd-php .php3 Addtype application/x-httpd-php .php4 Addtype application/x-httpd-php .phtml
-Buscar la sección Actions y agregar: Action application/x-httpd-php "/inetpub/php/php.exe"
-Buscar la sección LoadModule y agregar: LoadModule php4_module c:/inetpub/php/sapi/php4apache.dll
-Buscar la sección AddModule y agregar al final: AddModule mod_php4.c
-Guardar el file \Apache\conf\httpd.conf .
--En win9x/Me , copiar el file: \php\php4ts.dll al directorio x:\windows\system
--En win NT/2k/XP , copiar el file: \php\php4ts.dll al directorio x:\windows\system32
-En el directorio \php\, buscar el file \php\php.ini-dist , renombrarlo como php.ini y moverlo así:
--En win9x/Me , al directorio x:\windows\system
--En win NT/2k/XP , al directorio x:\windows\system32
Sigue... |