phpの設定
phpをhttp://www.php.net/またミラーからダウンロード PHP5.2.0の場合 # tar fvxz php-5.2.0.tar.gz # cd php-5.2.0 # ./configure \ --enable-sockets \ --with-openssl \ --with-mysql \ --with-pgsql \ --enable-track-vars \ --with-apxs=/usr/local/apache/bin/apxs \ --enable-versioning \ --enable-trans-sid \ --enable-mbstring \ --enable-mbstr-euc-trans \ --enable-gd-native-ttf \ --with-gd \ --with-freetype-dir \ --with-xpm-dir \ --with-jpeg-dir \ --with-zlib \ --with-xml \ --with-png-dir \ --enable-exif MAKEを行う前に、一部修正 safe_modeで、mb_send_mailの5番目のadditional_parameters パラメータが使用できない。 使用できるように、 ext/mbstring/mbstring.c の次の行をコメントにする。 ## // if (PG(safe_mode) && (ZEND_NUM_ARGS() == 5)) { ## // php_error_docref(NULL TSRMLS_CC, E_WARNING, "SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE."); ## // RETURN_FALSE; ## // } # make # make test # su # make install # cp php.ini-dist /usr/local/lib/php.ini
PREV(apache) | INDEX | (samba)NEXT |