| PHP ・・・ャ≪・/TH > | ||
|---|---|---|
| ・・・・若墁/A > | 罨<・・若墁/A > | |
・・・・с・罕膀・・・榊・・紊・・・・・・・・・・若・・・・・・с・
configure.in・・configure・鴻・・・・・・・・・・・・・GNU autoconf・・・宴若吾綽 荀・с・CVS・泣若・・・純若鴻・ユ・・緇・ ・筝篏・・・c・・・・・B CLASS="command" >./buildconf・絎茵・・・・ ・・・(・障・configure・・ --enable-maintainer-mode・・・激с潟篁・・・・ 茵・・・翫篁ュ・・・configure・鴻・・・・・TT CLASS="filename" >configure.in ・・<ゃ・・贋違・・・・・・・・・罕膀・茵・・障・・・・・・・ configure.in・ 紊・眼・・・翫・・・・・・・・・・у罕膀・茵・綽 荀・・・・障・ ・罕膀・・・・・・・・・・・・・・ゃ・configure・障・・ config.status・ 絎茵・・緇・Makefile・・賢・・VARIABLE@・・・・・・荀・ゃ・・・・с・)
2. PHP・Apache・・・・帥・・・・篏・・・・・ùonfigure・茵・・・・蕁・ ・・・障・httpd.h・荀篁・・・・・・・・・障・・ ・絎・・・贋・・・・・<ゃ・・・・・с!
configure/setup・鴻・・・・ïpache・純若鴻・・若・筝篏・・贋・・ 絎・・綽 荀・・・・障・・・・・' --with-apache=/path/to/apache'・・絎・・・・・ ・・c・'--with-apache=/path/to/apache/src'・・ ・・・・・・・・・с・
4. Apache・莎桁・・・・・・札筝・・・・・<・祉若吾・冴:
fatal: relocation error: file /path/to/libphp4.so:
symbol ap_block_alarms: referenced symbol not found |
Apache・・ore・・㏍違・・shared・İSO・・ゃ・・・・・・ ・潟潟・ゃ・・・・・・翫・・・・・・若・冴障・ ・篏・с篁ヤ・・・・・違篏睡・・・pache・・configure・・・ ・・・・:
--enable-shared=max --enable-rule=SHARED_CORE |
荅括完・・pache・・純若鴻・c・・・・・・・・・・・・・ INSTALL・・<ゃ・・障・・pache・・ DSO manual page・・荀с・・・・
5. configure・絎茵・・・・GD・gdbm・障・・・・・・・宴若吾・・<ゃ・・ ・・・・ゃ・・・荀・ゃ・・・・・с・・・・・・・・障・
C・・・・㏍祉・泣・・潟・潟・・・・・・・・申・・с・・違・絎・・・ ・・・・・configure・鴻・・・・・・・・・<ゃ・障・・・ゃ・・・ 罔羣篁ュ・・・贋・ф「・・・・・・純・・・障・
CPPFLAGS=-I/path/to/include LDFLAGS=-L/path/to/library ./configure |
env CPPFLAGS=-I/path/to/include LDFLAGS=-L/path/to/library ./configure |
6. ・・<ゃ・TT CLASS="filename" >language-parser.tab.c・・潟潟・ゃ・・・・ 'yytname undeclared'・・・・・・若・榊・・障・
bison・・・若吾с潟・贋違・綽 荀・・・・障・・・亥・・ http://www.gnu.org/software/bison/bison.html・・・・障・
7. make・絎茵・・・・絎茵・・・・・・・・・・・с・・潟潟・ゃ・・ ・腟・・・≪・・宴若激с潟・・潟・・・・・・・・・・・・・<ゃ・荀 ・ゃ・・・・・・・・・若・榊・・障・
・ゃ・・若吾с潟・ake・・・functions・・c・・・・・・・・<ゃ・・ ・潟潟・ゃ・・・・・・・・・・c・・・・・③・・・ャ・・・・・・・ ・障・cp *.o functions・荅・・・・茵・・・・ make ・・綺・・茵・・茹f浦・・・・腆肴・・・・・・ ・・茹f浦・・・・翫・・・GNU make・・菴・・・若吾с潟・贋違・・鴻 ・с・
・緇・・・・・・ゃ・・・・・・ゃ潟・・若・・・・・・・・・腆肴・・ ・・・・・・・・・・・・・'-ldl'・・絎・・・・若帥・若鴻・泣・若罘 ・純・・荀・・・ゃ・・・・絎・罨・・・・・・・・・・с・
Apache 1.2.x・・・潟・・・翫・・・・・・・・ ・宴Configuration・・・ ・ゃ・・XTRA_LIBS・・・・・申・・・Apache・・Configure・鴻・・・・・綺・ 絎茵・・・・・・・腆肴・・・・・・・・・・荅括完・・ ・宴・ゃ・・・・絽 ・・<ゃ・・・絮・・・・<ゃ・ INSTALL・・・т・ ・・・
篏・・・・査・・Apache・・・潟・・・・ā libphp4.a'・・翫・・ā-ldl'・菴遵・・綽 荀・・ ・・・・・怨・・・・・障・
・・・・・・・・・・・絽吾・亜・・с・篁ヤ・・・・・・絵・羞宴緇・c・・・ ・・
http://www.apache.org/dist/httpd/・・・・・ ・・pache 1.3・絽・・<ゃ・・緇・・・・・・・
・・・・・・・箴・・違 /usr/local/src/apache-1.3・・ ungzip・untar・・・・・・・
・障・ ./configure --with-apache=/<path>/apache-1.3・絎茵・・PHP ・・潟潟・ゃ・・・・・・・ (<path> ・・・・・・・・・pache-1.3・・c・・・・・・鴻・舟 ・・・・・・・・)
make ・絎茵・・緇・make install・絎茵・・・・・・・・・・・・・PHP・罕膀・・・ 綽 荀・・・<ゃ・Apache・・純若鴻・・若・潟・若・・障・
・・c・・・・ /<path>/apache-1.3/src・・Щ・・・ Configuration・・<ゃ・膩・・・・・・・・ ・・・・<ゃ・・札筝・菴遵・・・・・・・: AddModule modules/php4/libphp4.a
./configure ・絎茵・・緇・ make・絎茵・・・・・・・
篁ヤ・・・・・・・PHP絲上・・・ttpd・・ゃ・・罕膀・с・障・・
羈・: : Apache ・・違・ ./configure・鴻・・・・篏睡・・・・・・・純с・ Apache・絽・・<ゃ・・VAR CLASS="literal" >README.configure・・<ゃ・ ・・腓冴・・т・・・・・障・PHP・絽・・<ゃ・・ INSTALL ・・<ゃ・・・т・・・・
10. ・ゃ潟鴻・若・・・・・・・・冴ャUNIX筝・・pache・≪吾ャ若・・・ゃ潟・ ・・若・・障・・・・・・・吟с≪・祉鴻・・・HP・鴻・・・・茵・ず・ ・・・・<ゃ・篆絖・・障・・・・・㏍・・障・
・・・・篏・・・・・宴・・PHP・≪吾ャ若・莎桁・・・・・・・・・ ・潟・・・障・・・・羆・・莖・・茵・・・・障篁ヤ・・腆肴・筝・・・
絎茵・・・・httpd・・ゃ・・罕膀・・・違・・・違・httpd・・ゃ ・・с・・・・腆肴・・・・・・・・腆肴・・茵・・・・札筝・・・・・ ュ ・・障・ /path/to/binary/httpd -l
mod_php4.c ・・・鴻・・賢・・・・翫・罩c ・・・ゃ・・絎茵・・・・・障・・罩c・・・ゃ・・荀・ゃ・・・・ ・潟鴻・若・・・・・・・
Apache .conf ・・<ゃ・・・・ゃ・③・・MIME・ ・菴遵・・・・・・・・腆肴・・・・・・・・・・・・札筝・・・・・・ ・障・ AddType application/x-httpd-php3 .php3 (PHP 3・・翫)
・障・・AddType application/x-httpd-php .php (PHP 4・・翫)
・障・・・・ddType・・・・・ <Virtualhost> ・障・・<Directory> ・・㏍・・・賢・・ ・・・・・・鴻・・・鴻・・・・・贋・・・・с・・・・・・・・ ・・・・・・・腆肴・・・・・・・・
・緇・・・・・・・・・pache荐㊤・・・<ゃ・・贋・・pache 1.2・・ Apache 1.3・・・у・・眼・・・・障・AddType・・・・菴遵・・荐㊤・・・・ ・ゃ・絎・・・・・粋昭・障・・・・・・腆肴・・・・・・・・・・・・<・ ・・罩c・茯㏍粋昭・障・・・・翫・・・・・・・・・・・・・若 httpd.conf・・<ゃ・・賢・・吾莨若・с・障c・・篏・・・・・・ ・・・・眼・・c・・醇с・・・障・
11. --activate-module=src/modules/php4/libphp4.a ・・吾・・・・障・・・・<ゃ・・・・障・・・・・・・ --activate-module=src/modules/php4/libmodphp4.a・・ 紊・眼・障・・・・・・・・・с・篏・莎激・・・・・с・・?
libphp4.a・・<ゃ・・・・・鴻с・・・・・・・・・・・・・・・・・ゃ・・・・・・ ・・・・<ゃ・・Apache・・・膀・・・・・・・・・・・・障・
12. --activate-module=src/modules/php4/libphp4.a ・・絎・・PHP・・・・≪吾ャ若・・・・・・粋昭・・・pache・罕膀・・・ ・・・・・・・激鴻・・ANSI絲上・・с・・・・・・・・若・榊・・障・
Apache・・・・・・若<・祉若吾・・・・・・・・・・違・・・若吾с潟・ ・・信・眼・・・・障・
・・・с・腆肴・・・鴻・・・3・鴻・・障・・障・篏・・・・・宴・・・ Apache・apxs Perl・鴻・・・・罕膀・・・・・・・・・潟潟・ゃ・・・・ ・医・・違篁・・・・ф・膀・・・・・障・・・・・ ・・・障・ 篏睡・・apxs・・贋・荀・ゃ・・(which apxs・潟・潟・ 荅・・・帥・・・・・/usr/local/apache/bin/apxs ・障・・TT CLASS="filename" >/usr/sbin/apxs膈・・・・障)・ 篁ヤ・・・・・腆肴・・・・・・・・
my $CFG_CFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl my $CFG_LD_SHLIB = ' '; # substituted via Makefile.tmpl my $CFG_LDFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl |
my $CFG_CFLAGS_SHLIB = '-fpic -DSHARED_MODULE'; # substituted via Makefile.tmpl my $CFG_LD_SHLIB = 'gcc'; # substituted via Makefile.tmpl my $CFG_LDFLAGS_SHLIB = q(-shared); # substituted via Makefile.tmpl |
my $CFG_LIBEXECDIR = 'modules'; # substituted via APACI install |
my $CFG_LIBEXECDIR = '/usr/lib/apache'; # substituted via APACI install |
・ゃ潟鴻・若・・・B CLASS="command" >make・茵・c・・・・篁ヤ・・・・・・・・若・榊・ ・・・・・翫・
microtime.c: In function `php_if_getrusage': microtime.c:94: storage size of `usg' isn't known microtime.c:97: `RUSAGE_SELF' undeclared (first use in this function) microtime.c:97: (Each undeclared identifier is reported only once microtime.c:97: for each function it appears in.) microtime.c:103: `RUSAGE_CHILDREN' undeclared (first use in this function) make[3]: *** [microtime.lo] Error 1 make[3]: Leaving directory `/home/master/php-4.0.1/ext/standard' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/master/php-4.0.1/ext/standard' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/master/php-4.0.1/ext' make: *** [all-recursive] Error 1 |
・・・・・激鴻・・・・・・・・障・篏睡・・・・glibc・・・・・若吾с潟・ glibc-devel・・・宴若吾・ゃ潟鴻・若・・・/usr/include ・・<ゃ・篆・③ ・・綽 荀・・・・障・・・・蕁・・PHP・・篏・・・ ・・≫・・・・障・・ ・・・腓冴・・・罨<・・・・亜・・・・鴻・茵・c・帥・・・・・
$ cat >test.c <<X #include <sys/resource.h> X $ gcc -E test.c >/dev/null |
15. MySQL・篏睡・с・・・・ñHP・・潟潟・ゃ・・・・configure・・③絽吾・ 絎茵・・・・make・・筝㏍・札筝・・・・・・・若・冴: ext/mysql/libmysql/my_tempnam.o(.text+0x46): In function my_tempnam': /php4/ext/mysql/libmysql/my_tempnam.c:103: the use of tempnam' is dangerous, better use mkstemp' 篏・・・・・・・鐚
・障・・・・・VAR CLASS="literal" >Warning・с・c・翫順・・ ・・・若с・・・・・茘・・・・・・荀・с・make・・ ・緇・・祉・с・・阪・・・違・域・・・・・・・翫順・・・・若・ ・・・・・<с・・・・с・・・障・・・・<・・Warning・ 莎激・・・潟潟・ゃ・・罩≪・・・・・┃絎・・・・・・翫・・ャс・ ・障・MySQL・泣・若・・・・・・・ф・膀・・・・・・・ ・・・・・・・・・
羈・: PHP4.3.2篁ラ・・・・(make)絎篋緇・・札筝・・・・・・㏍鴻・・冴 ・・・・・・障:
Build complete. (It is safe to ignore warnings about tempnam and tmpnam).
16. PHP・・≪・・違・若・・・・・с・・・上・ゃ潟鴻・若・・・・・PHP・ 罕膀・・・・・・絎・・./configure・潟・潟・・ ・・・激с潟・・・хャ・・・・堺ャ障・鐚
・上・ゃ潟鴻・若・・・・・PHP・罕膀・・・・・・c・・・・・・ config.nice ・・<ゃ・荀・・・・・・・・・・・c・・・・・<・翫・・
<?php phpinfo(); ?> |
| ・・・・若墁/A > | ・・若 | 罨<・・若墁/A > |
| ・ゃ潟鴻・若・/TD > | 筝・・祉 | PHP・篏帥 |