RE: [PHP-ES] PHP sobre Apache2
| From: | Hari Seldon | Date: | Thu, 01 Dec 2005 14:21:22 +0000 |
| Subject: | RE: [PHP-ES] PHP sobre Apache2 | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-56831@lists.php.net to get a copy of this message | ||
Yo tengo SID y antes tuve Sarge, y hasta dónde yo se, y Apache va un poco
distinto; la diferencia está que los módulos se cargan en el archivo
modules.conf
hariseldon@seldonserver:/etc/apache$ ls -al
total 147
drwxr-xr-x 8 root root 528 2005-11-26 16:41 .
drwxr-xr-x 111 root root 6552 2005-11-28 17:03 ..
-rw-r--r-- 1 root root 285 2005-04-14 16:12 access.conf
drwxr-xr-x 2 root root 216 2005-11-26 16:41 conf.d
-rw-r--r-- 1 root root 36901 2005-05-24 15:11 httpd.conf
-rw-r--r-- 1 root root 36504 2005-04-25 00:08 httpd.conf~
-rw-r--r-- 1 root root 36901 2005-05-24 15:11 httpd-php5-ssl.conf
lrwxrwxrwx 1 root root 15 2005-04-14 16:12 mime.types ->
/etc/mime.types
-rw-r--r-- 1 root root 1223 2005-08-31 18:14 modules.conf
-rw-r--r-- 1 root root 1170 2005-08-31 16:45 modules.conf~
-rw-r--r-- 1 root root 1284 2005-09-15 17:02 modules.conf.dpkg-dist
-rw-r--r-- 1 root root 1441 2005-08-31 16:45 modules.conf.dpkg-old
-rw-r--r-- 1 root root 297 2005-04-14 16:12 srm.conf
drwxr-xr-x 2 root root 72 2005-09-09 00:15 ssl.crl
drwxr-xr-x 2 root root 440 2005-09-09 00:15 ssl.crt
drwxr-xr-x 2 root root 104 2005-09-09 00:15 ssl.csr
drwxr-xr-x 2 root root 248 2005-09-09 00:15 ssl.key
drwxr-xr-x 2 root root 144 2005-09-09 00:15 ssl.prm
Mientras que Apache 2:
hariseldon@seldonserver:/etc/apache2$ ls -al
total 59
drwxr-xr-x 8 root root 424 2005-09-09 13:02 .
drwxr-xr-x 111 root root 6552 2005-11-28 17:03 ..
-rw-r--r-- 1 root root 12482 2005-05-12 07:35 apache2.conf
drwxr-xr-x 2 root root 48 2005-11-26 15:53 conf.d
-rw-r--r-- 1 root root 748 2005-05-12 07:12 envvars
-rw-r--r-- 1 root root 268 2005-08-31 23:14 httpd.conf
-rw-r--r-- 1 root root 12441 2005-05-12 07:35 magic
drwxr-xr-x 2 root root 1464 2005-10-24 00:53 mods-available
drwxr-xr-x 2 root root 352 2005-08-31 23:57 mods-enabled
-rw-r--r-- 1 root root 11 2005-08-31 23:52 ports.conf
-rw-r--r-- 1 root root 21 2005-08-31 23:19 ports.conf~
-rw-r--r-- 1 root root 2266 2005-05-12 07:36 README
drwxr-xr-x 2 root root 96 2005-09-09 13:02 sites-available
drwxr-xr-x 2 root root 80 2005-08-31 23:14 sites-enabled
drwxr-xr-x 2 root root 144 2005-08-31 23:56 ssl
Si editas apache2.conf, te encuentras con esto:
# Global error log.
ErrorLog /var/log/apache2/error.log
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
# Include all the user configurations:
Include /etc/apache2/httpd.conf
# Include ports listing
Include /etc/apache2/ports.conf
# Include generic snippets of statements
Include /etc/apache2/conf.d/[^.#]*
Un saludo.
> -----Mensaje original-----
> De: Fernando Gutierrez [mailto:fgutierrez@gmail.com]
> Enviado el: miércoles, 30 de noviembre de 2005 18:55
> Para: Gorka
> CC: PHP CA
> Asunto: Re: [PHP-ES] PHP sobre Apache2
>
> mira donde esta instalado el apache 2 seguramente no este en
> el path que tu
> esperas
>
> On 11/30/05, Gorka <gorkaphp@yahoo.es> wrote:
> >
> >
> > Antes en Debian Woody para poder correr páginas PHP sobre
> apache 1 tenías
> > que hacer lo siguiente en /etc/apache/httpd.conf:
> >
> > LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
> > AddType application/x-httpd-php .php
> > DirectoryIndex index.php index.html index.htm index.shtml
> > index.cgi
> >
> > Pero ahora con Sarge trato de correrlas sobre apache2. Tras
> cargar el
> > paquete php4 (versión 4:4.3.10-16) y todas sus dependencias reinicio
> > apache2. Me voy a /etc/apache2/httpd.conf y resulta que
> está todo vacío,
> > no
> > como antes. De todas formas he probado a poner el párrafo anterior y
> > tampoco
> > me va un simple index.php que he dejado en /var/www/
> >
> > Alguna idea? Gracias.
> >
> >
> >
> > ______________________________________________
> > Renovamos el Correo Yahoo!
> > Nuevos servicios, más seguridad
> > http://correo.yahoo.es
> >
> >
> > --
> > PHP Spanish Localization Talk Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> -- Fernando Gutierrez Perez --
> gmeileando un poco :)
>