note 86660 deleted from faq.mailinglist by danbrown

From: Date: Tue, 28 Oct 2008 19:34:40 +0000
Subject: note 86660 deleted from faq.mailinglist by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-145905@lists.php.net to get a copy of this message
Note Submitter: helen ---- Hello There, We have an apache_1.3.34 with Php4.3 on Solaris10 now. But we would like install Php5.2.6 statically without reinstall apache server. So I did step by step as follows: /****compile php5*********/ gunzip -c php5.2.6.tar.gz | tar xf - ./configure --prefix=[path] --with-Apache=[path direct httpd.h] --with-libxml-dir=[path] --exec-prefix=[path] --with-config-file-with=[path to bin with executable] --disable-cli make make install /****active php5 module******/ ./configure --prefix=[path of apache server with director of bin include..] --activate=module=src/modules/php5/llibphp.5 /************************/ Now, I have an issue. Someone installed php5 on another path and activate php5 module already on different directory from what I created. So, I got error as follows: mod_php5.c:976: warning: (near initialization for `php_commands[0]') mod_php5.c:976: warning: excess elements in scalar initializer mod_php5.c:976: warning: (near initialization for `php_commands[0]') mod_php5.c:976: error: `OR_OPTIONS' undeclared here (not in a function) mod_php5.c:976: warning: excess elements in scalar initializer mod_php5.c:976: warning: (near initialization for `php_commands[0]') mod_php5.c:976: error: `TAKE2' undeclared here (not in a function) mod_php5.c:976: warning: excess elements in scalar initializer mod_php5.c:976: warning: (near initialization for `php_commands[0]') mod_php5.c:976: warning: excess elements in scalar initializer mod_php5.c:976: warning: (near initialization for `php_commands[0]') mod_php5.c:977: warning: braces around scalar initializer mod_php5.c:977: warning: (near initialization for `php_commands[1]') mod_php5.c:977: warning: initialization makes integer from pointer without a cast mod_php5.c:977: warning: excess elements in scalar initializer mod_php5.c:977: warning: (near initialization for `php_commands[1]') mod_php5.c:977: warning: excess elements in scalar initializer mod_php5.c:977: warning: (near initialization for `php_commands[1]') ...... ...... ..... ../../include/http_conf_globals.h:42: error: storage size of `ap_bind_address' isn't known ../../include/http_conf_globals.h:75: error: storage size of `ap_server_root' isn't known ../../include/http_conf_globals.h:76: error: storage size of `ap_server_confname' isn't known ../../include/http_conf_globals.h:86: error: storage size of `ap_coredump_dir' isn't known make[4]: *** [mod_php5.o] Error 1 make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/mktg/fsa12/webserver/build_2/apache_1.3.34/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/mktg/fsa12/webserver/build_2/apache_1.3.34' make: *** [build] Error 2 /*************************************************/ I tried many times and spent a week, but still can not fix it. It does not make me sense at all. Is there some me to help me? Do I need reactivate php5 module now? (--activate-module=...) If so, how can I reactivate it? Many thanks and best regards, Helen

« previous php.notes (#145905) next »