忍者ブログ

鯖設定とプログラム

メモ。

<< | 2024/04 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | >>

[PR]

×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

PHP5.2.4にアップグレードする RHEL4(RedHat Enterprise Linux ES v4)

PHP5.2.3からPHP5.2.4にローカルサーバをアップグレードする。
その後安定していれば公開サーバにも入れる。

前回のPHP5.2.1からPHP5.2.3にアップグレードと同様にインストールしてみる。

# cd /usr/local/src/

# wget http://jp.php.net/get/php-5.2.4.tar.bz2/from/this/mirror
# ls -al
php-5.2.4.tar.bz2

# tar jxvf php-5.2.4.tar.bz2
# cd php-5.2.4

# ./configure --prefix=/usr/local --bindir=/usr/local/bin/ --with-apxs2=/usr/sbin/apxs --with-mysql=/usr --enable-mbstr-enc-trans --enable-mbstring --enable-mbregex --enable-track-vars --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell --with-regex --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --without-oci8 --with-pear --with-kerberos=/usr/kerberos --with-ldap=shared --enable-memory-limit --enable-bcmath --enable-shmop --enable-calendar --enable-dbx --enable-dio --with-pdo-mysql --enable-mcal --with-mcrypt

+--------------------------------------------------------------------+
| License:                                                                                                  |
| This software is subject to the PHP License, available in this                          |
| distribution in the file LICENSE.  By continuing this installation                        |
| process, you are bound by the terms of this license agreement.                        |
| If you do not agree with the terms of this license, you must abort                     |
| the installation process at this point.                                                           |
+--------------------------------------------------------------------+

Thank you for using PHP.

Notice: Following unknown configure options were used:

--enable-mbstr-enc-trans
--enable-track-vars
--with-png
--with-xml
--with-expat-dir=/usr
--enable-track-vars
--enable-trans-sid
--enable-yp
--enable-mbstr-enc-trans
--enable-memory-limit
--enable-dbx
--enable-dio
--enable-mcal

Check './configure --help' for available options

知らないオプションが設定されているとのメッセージが出る。
今までと同じ方法のアップグレードでは出なかったので、Changelogを見てみる。
すると、added check for unknown options passed to configure.とあった。
5.2.4からconfigure時にオプションのチェックが入るようになったので、このメッセージが出た。
今までもこれらのオプションは間違ってたのか・・・。しかもチェックのお陰で同じオプションを設定しているのに気づく。

指摘されたオプションを削除して再チャレンジ。

./configure --prefix=/usr/local --bindir=/usr/local/bin/ --with-apxs2=/usr/sbin/apxs --with-mysql=/usr --enable-mbstring --enable-mbregex --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pspell --with-regex --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-wddx --without-oci8 --with-pear --with-kerberos=/usr/kerberos --with-ldap=shared --enable-bcmath --enable-shmop --enable-calendar --with-pdo-mysql --with-mcrypt

+--------------------------------------------------------------------+
| License:                                                                                                  |
| This software is subject to the PHP License, available in this                          |
| distribution in the file LICENSE.  By continuing this installation                        |
| process, you are bound by the terms of this license agreement.                        |
| If you do not agree with the terms of this license, you must abort                     |
| the installation process at this point.                                                           |
+--------------------------------------------------------------------+

Thank you for using PHP.

今回はチェックにひっかかったオプションはない。

# make

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

アパッチを止める
/etc/init.d/httpd stop
インストール
# make install
アパッチ起動
/etc/init.d/httpd start

これでアップグレードは完了。

# php -v

5.2.4の情報に変わっていた。

PHPアップグレード履歴
PHP4.3.9からPHP5.1.5にアップグレード
PHP5.1.5からPHP5.2.0にアップグレード
PHP5.2.0からPHP5.2.1にアップグレード
PHP5.2.1からPHP5.2.3にアップグレード
PR
...
Sehr gute Seite. Ich habe es zu den Favoriten.

Commented on 2009/03/14 Saturday 19:30:08

by mietwagen | コメント編集

この記事にコメントする







  Vodafone絵文字入力用パレット表示ボタン i-mode絵文字入力用パレット表示ボタン Ezweb絵文字入力用パレット表示ボタン

この記事へのトラックバック




ブログ内検索
カレンダー
03 2024/04 05
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
プロフィール
HN:
No Name Ninja
性別:
非公開
自己紹介:
へなちょこサーバ管理者

HPは作れるがプログラムが出来なかったので、PHPを覚えた。

公開サーバ環境:
CPU:Pentium M 740 1.73GHz
Mem:512MB DDR2
HDD1:160GB SATA
HDD2:160GB SATA
OS:RedHat Enterprise Linux ES v4
Apache:httpd-2.0.52-28ent
MySQL:mysql-4.1.20-1
PHP:php-5.2.5
JavaSE:JDK6
Tomcat:apache-tomcat-5.5.20
Apache Tomcat Connector:jk-1.2.19

ローカルサーバ環境:
DELL INSPIRON4000
OS:RedHat Enterprise Linux ES v4
Apache:httpd-2.0.52-28ent
MySQL:mysql-4.1.20-1
PHP:php-5.2.5
JavaSE:JDK6
Tomcat:apache-tomcat-5.5.20
Apache Tomcat Connector:jk-1.2.19

ローカルPC
OS:Windows7
最新コメント
[03/14 mietwagen]
[02/02 Online poker]
[03/13 ほし]
[03/01 へなとこ]
[11/14 ポポ]
アクセス解析
?
カウンター
起動、終了、再起動
Apacheの起動
/etc/init.d/httpd start
Apacheの終了
/etc/init.d/httpd stop
Apacheの再起動
/etc/init.d/httpd restart

Tomcatの起動
/usr/local/tomcat/bin/startup.sh
Toncatの終了
/usr/local/tomcat/bin/shutdown.sh

MySQLの起動
/etc/rc.d/init.d/mysqld start
MySQLの終了
/etc/rc.d/init.d/mysqld stop
MySQLの再起動
/etc/rc.d/init.d/mysqld restart

vsftpdの起動
/etc/init.d/vsftpd start
vsftpdの終了
/etc/init.d/vsftpd stop
vsftpdの再起動
/etc/init.d/vsftpd restart
場所
httpd.conf
/etc/httpd/conf/httpd.conf

AdminControlMenu: AdminMenu | NewEntry | EditComment | EditTrackback

忍者ブログ [PR]