note 86660 added to faq.mailinglist
| From: | helen at osu1 dot php dot net | Date: | Tue, 28 Oct 2008 19:33:49 +0000 |
| Subject: | note 86660 added to faq.mailinglist | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145904@lists.php.net to get a copy of this message | ||
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
----
Server IP: 64.71.164.2
Probable Submitter: 199.82.243.72 (proxied: 199.81.243.50)
----
Manual Page -- http://www.php.net/manual/en/faq.mailinglist.php
Edit -- https://master.php.net/note/edit/86660
Del: integrated -- https://master.php.net/note/delete/86660/integrated
Del: useless -- https://master.php.net/note/delete/86660/useless
Del: bad code -- https://master.php.net/note/delete/86660/bad+code
Del: spam -- https://master.php.net/note/delete/86660/spam
Del: non-english -- https://master.php.net/note/delete/86660/non-english
Del: in docs -- https://master.php.net/note/delete/86660/in+docs
Del: other reasons-- https://master.php.net/note/delete/86660
Reject -- https://master.php.net/note/reject/86660
Search -- https://master.php.net/manage/user-notes.php