problemas al instalar php
| From: | xavi garcia | Date: | Thu, 02 Jan 2003 12:05:38 +0000 |
| Subject: | problemas al instalar php | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-30926@lists.php.net to get a copy of this message | ||
Hola a todos,
Estoy comenzando con esto de php, de hecho, me estoy dedicando a instalar los fuentes de php 4.30 y apache 2.0.43.
He segido al pie de la letra la información que facilita el sitio de PHP y durante la instalación, todo ha ido bién excepto el final.
Como indica el paso 14, configuro apache para que carge el modulo de libphp4.so en el directorio modules pero me da error porque la instalación no lo ha colocado en tal directorio. Si alguien me pudiera ayudar, lo agradecería.
Cordialmente,
Xavi Garcia
1. gzip -d httpd-2_0_NN.tar.gz
2. tar xvf httpd-2_0_NN.tar
3. gunzip php-NN.tar.gz
4. tar -xvf php-NN.tar
5. cd httpd-2_0_NN
6. ./configure --enable-so
7. make
8. make install
Now you have Apache 2.0.NN available under /usr/local/apache2,
configured with loadable module support and the standard MPM prefork.
To test the installation use your normal procedure for starting
the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start
and stop the server to go on with the configuration for PHP:
/usr/local/apache2/bin/apachectl stop.
9. cd ../php4-NN
10. ./configure --with-apxs2=/usr/local/apache2/bin/apxs
11. make
12. make install
13. cp php.ini-dist /usr/local/lib/php.ini
Edit your php.ini file to set PHP options. If
you prefer this file in another location, use
--with-config-file-path=/path in step 10.
14. Edit your httpd.conf file and check that these lines are
present:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
You can choose any extension you wish here. .php is simply the one
we suggest.
The path on the right hand side of the LoadModule statement must point
to the path of the PHP module on your system. The above statement is
correct for the steps shown above.
15. Use your normal procedure for starting the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start
_________________________________________________________________