Re: Problema al instalar php4

From: Date: Tue, 24 Oct 2000 15:56:35 +0000
Subject: Re: Problema al instalar php4
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-2646@lists.php.net to get a copy of this message
Mark escribió: > > Hola a todos: > He instalado php4 en linux 6.2, he seguido los siguientes pasos y NO tuve > ningun resultado de error, pero simplemente no puedo abrir archivos php, > esto es lo que hice: > > el ./configure lo corri con --with-mysql ya que precisamente para eso quite > mi php3 y quiero poner php4 > > $ gunzip -c php-4.0.x.tar.gz | tar xf - > $ cd php-4.0.x > $ ./configure --with-mysql --with-apxs > $ make > $ make install > > If you get an error telling you that the apxs script could not be found, > look for it on your system and if you find it, provide the full path to it > as: --with-apxs=/path/to/apxs > > Next you must copy php.ini-dist to the appropriate place (normally > /usr/local/lib/php.ini) and edit it as necessary to set PHP options. > > The only thing left to do is to edit your httpd.conf file and make sure the > PHP 4 mime type is there and uncommented. You need a line that looks like > this: > > AddType application/x-httpd-php .php > > Then restart your server (apachectl restart) and you should be able to > > Alguien me podria decir porque no se ejecutan mis archivos .php ? > > Gracias > > Saludos desde Mexico Yo tengo una configuración muy parecida a la tuya, también pasé de php3 a php4 y me funcionó bién. Ésto es lo que puse en /etc/httpd/conf/httpd.conf (cada línea en su respectiva sección) LoadModule php4_module modules/libphp4.so AddModule mod_php4.c DirectoryIndex index.html index.php AddType application/x-httpd-php .php .php3 Todas las líneas antiguas que hacían referencia a php3, las comenté. Tampoco olvides parar y volver a encender el Apache. También puedes ver qué dice netcraft de tu servidor apache, en esta direción: http://www.netcraft.com/whats/ Entras tu número de IP y te informa de lo que tienes. A mí me dice (la ip no es real): 123.123.123.123 is running Apache/1.3.11 (Unix) (Red Hat/Linux) PHP/4.0.1pl2 on Linux Debería decirte algo parecido también a tí. Saludos. Àngel

« previous php.general.es (#2646) next »