|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-28 07:16 UTC] sniper@php.net
[2000-12-30 19:46 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 23:00:02 2026 UTC |
Dear Sir, There are some problems, when I install php4 on Linux Redhat 6.2 platform. I try to find the answer on FAQ, but also failed! Actually, I want to install Apache 1.3.14 and php-4.0.3pl1 version on my Redhat 6.2 platform. Before I install these, my system have been installed the ODBC-1.8.12(on /usr/include/odbc directory) and PostgreSQL-7.0.2 (on /usr/local/pgsql directory) software ready. The steps are 1) /etc/rc.d/init.d/# httpd stop 2) rpm -e mod_perl 3) rpm -e mod_ss1-2.6.6-25 4) rpm -e apache 5) /usr/local/src/apache_1.3.14/# OPTIM="-O2" ./configure -- prefix=/usr/local/apache --enable-module=so 6) /usr/local/src/php-4.0.3pl1/# ./configure --with-pgsql --with-apache=../apache_1.3.14 --with-custom-odbc=/usr/include/odbc --enable-track-vars 7) /usr/local/src/php_4.0.3pl1/# make Result: ????.... In file included from internal_functions.c:39: /usr/local/src/php- 4.0.3pl1/ext/odbc/php_odbc.h:140:18: odbc.h: No such file or directory make[2]: *** [internal_functions.lo] Error 1 make[2]: Leaving directory `/usr/local/src/php-4.0.3pl1/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.0.3pl1/main' make: *** [all-recursive] Error 1 8) /usr/local/src/php_4.0.3pl1/# make install Result: .... In file included from internal_functions.c:39: /usr/local/src/php-4.0.3pl1/ext/odbc/php_odbc.h:140:18: odbc.h: No such file or directory make[2]: *** [internal_functions.lo] Error 1 make[2]: Leaving directory `/usr/local/src/php-4.0.3pl1/main' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.0.3pl1/main' make: *** [install-recursive] Error 1 9) /usr/local/src/apache_1.3.14/# ./configure -- prefix=/usr/local/apache --activate-module=/src/modules/php4/libphp4.a 10) /usr/local/src/apache_1.3.14/# make Result: ............. <=== src/modules/standard ===> src/modules/php4 make[4]: *** No rule to make target `all'. Stop. make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/usr/local/src/apache_1.3.14/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/src/apache_1.3.14' make: *** [build] Error 2 11) /usr/local/src/apache_1.3.14/# make install Result: ............. [PRESERVING EXISTING CONFIG FILE: /usr/local/apache/conf/magic] <=== [config] make[1]: Leaving directory `/usr/local/src/apache_1.3.14' +--------------------------------------------------------------------------+ | You now have successfully built and installed the | | Apache 1.3 HTTP server. To verify that Apache actually | | works correctly you now should first check the | | (initially created or preserved) configuration files | | | | /usr/local/apache/conf/httpd.conf | | | and then you should be able to immediately fire up | | Apache the first time by running: | | | | /usr/local/apache/bin/apachectl start | | | Thanks for using Apache. The Apache Group | | http://www.apache.org/ | +----------------------------------------------------------------------+ 12) /usr/local/src/php_4.0.3pl1/# cp php.ini-dist /usr/local/lib/php.ini 13) /usr/local/apache/conf/srm.conf Addition following. -->AddType application/x-httpd-php .php -->AddType application/x-httpd-php-source .phps After finished all steps, I restart the apache server 14) /usr/local/apache/bin/# apachectl restart 15) /usr/local/apache/bin/# httpd -v Result: Server version: Apache/1.3.14 (Unix) Server built: Nov 24 2000 13:29:09 I use the Netscript browser to open "http://localhost/index.html" is Okay, but I try to open phpinfo.php (I check the file existing and content is <? phpinfo(); ?> only) the result is Result: nothing to see Can you tell me what happen? The php4 have problem when use apache 1.3.14 version ? Thank very much !