memorandum
FrontPage
管理
ヘルプ
VineLinux3.x/Apache2.0/PHP4のインストール
をテンプレートにして作成
開始行:
* 概要 [#xa4e07d2]
PHP(Hypertext Preprocessor)4をソースからインストールしま...
ダウンロードサイト~
http://jp2.php.net/downloads.php
apache2のworkerに対応させるためには、先にWebサーバ - Apac...
*設定手順 [#hffc3b3d]
** ダウンロード、解凍 [#c0b4b890]
# wget http://jp2.php.net/distributions/php-4.4.0.tar.gz
--15:47:31-- http://jp2.php.net/distributions/php-4.4.0...
=> `php-4.4.0.tar.gz'
jp2.php.net をDNSに問いあわせています... 210.138.109.182
jp2.php.net[210.138.109.182]:80 に接続しています... 接続...
HTTP による接続要求を送信しました、応答を待っています......
長さ: 4,972,107 [application/x-tar]
100%[==============================================>] 4,...
15:47:35 (1.16 MB/s) - `php-4.4.0.tar.gz' を保存しました...
# tar zxf php-4.4.0.tar.gz
# cd php-4.4.0
** configureの前にインストールが必要だと思われるパッケー...
# apt-get install flex \
> bzip2-devel \
> MySQL-server MySQL-devel \
> openssl-devel \
> libjpeg-devel zlib-devel libpng-devel \
> t1lib-devel
パッケージリストを読みこんでいます... 完了
依存情報ツリーを作成しています... 完了
* openssl-devel は既に最新バージョンがインストールされ...
以下の追加パッケージがインストールされます:
t1lib
以下のパッケージが新たにインストールされます:
MySQL-devel MySQL-server bzip2-devel flex libjpeg-deve...
zlib-devel
アップグレード: 0 個, 新規インストール: 9 個, 削除: 0 個...
13.0MB のアーカイブを取得する必要があります。
展開後に 32.9MB のディスク容量が追加消費されます。
続行しますか? [Y/n]y
取得:1 http://updates.vinelinux.org 3.1/i386/plus MySQL-...
取得:2 http://updates.vinelinux.org 3.1/i386/main t1lib ...
取得:3 http://updates.vinelinux.org 3.1/i386/plus MySQL-...
取得:4 http://updates.vinelinux.org 3.1/i386/devel bzip2...
取得:5 http://updates.vinelinux.org 3.1/i386/plus flex 2...
取得:6 http://updates.vinelinux.org 3.1/i386/devel libjp...
取得:7 http://updates.vinelinux.org 3.1/i386/devel zlib-...
取得:8 http://updates.vinelinux.org 3.1/i386/updates lib...
取得:9 http://updates.vinelinux.org 3.1/i386/devel t1lib...
13.0MB を 8s 秒で取得しました (1528kB/s)
変更を適用しています...
Preparing... ############################...
1:MySQL-server ############################...
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
050802 16:23:27 /usr/sbin/mysqld: Shutdown Complete
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USE...
To do so, start the server, then issue the following com...
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h x22 password 'new-password'
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug sc...
The latest information about MySQL is available on the w...
http://www.mysql.com
Support MySQL by buying support/licenses at https://orde...
2:t1lib ############################...
3:MySQL-devel ############################...
4:bzip2-devel ############################...
5:flex ############################...
6:libjpeg-devel ############################...
7:zlib-devel ############################...
8:libpng-devel ############################...
9:t1lib-devel ############################...
完了
** apache2(worker対応)とmysqlを使う場合に必要十分だと思わ...
詳しいオプションは、http://php.s3.to/man/install.configur...
# ./configure \
--prefix=/usr \
--with-apxs2=/usr/local/apache2/bin/apxs \ ←apache2のapx...
--with-config-file-path=/etc \
--with-mysql=/usr \
--with-jpeg-dir=/usr \
--with-zlib-dir=/usr \
--with-bz2 \
--with-openssl \
--with-gd \
--with-t1lib \
--with-ttf \
--enable-exif \
--enable-mbregex \
--enable-mbstring \
--enable-zend-multibyte \
--enable-gd-jis-conv \
--enable-gd-native-ttf
+-------------------------------------------------------...
| License: ...
| This software is subject to the PHP License, available...
| distribution in the file LICENSE. By continuing this ...
| process, you are bound by the terms of this license ag...
| If you do not agree with the terms of this license, yo...
| the installation process at this point. ...
+-------------------------------------------------------...
| *** NOTE *** ...
| The default for register_globals is now OFF...
| ...
| If your application relies on register_globals being O...
| should explicitly set it to on in your php.ini file. ...
| Note that you are strongly encouraged to read ...
| http://www.php.net/manual/en/security.globals.php ...
| about the implications of having register_globals set ...
| avoid using it if possible. ...
+-------------------------------------------------------...
Thank you for using PHP.
が出ればOKだす。
ちなみに、PHPがスレッドセーフでコンパイルされるかどうかは...
Configuring Zend
:
checking whether to enable thread-safety... yes
:
となっているかどうかで分かる。これは、apache2がスレッドセ...
# make
# make install
php.iniをコピー
# cp php.ini-dist /etc/php.ini
** /etc/php.iniの編集 [#b881331d]
# vi /etc/php.ini
>
output_buffering = On
output_handler = mb_output_handler
magic_quotes_gpc = Off
以下は、設定しなくてもよいかも。PHPのソースがEUC-JPで出力...
default_charset = EUC-JP
mbstring.language = Japanese
mbstring.internal_encoding = EUC-JP
mbstring.http_input = auto
mbstring.http_output = EUC-JP
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none
** apache2の再起動 [#e0624624]
# /etc/rc.d/init.d/apache2 restart
httpdを停止中: ...
httpdを起動中: ...
** 動作確認 [#h01b6658]
apacheのDocument Rootとして指定しているディレクトリ以下に...
# vi /home/httpd/html/info.php
>
に、
<?php phpinfo() ?>
と記述して保存。
クライアントより、
http://xxxxxx/info.php
で表示されれば完了。
確認が終わったら、info.phpは削除すること。
* コメント [#v252f82d]
#comment
終了行:
* 概要 [#xa4e07d2]
PHP(Hypertext Preprocessor)4をソースからインストールしま...
ダウンロードサイト~
http://jp2.php.net/downloads.php
apache2のworkerに対応させるためには、先にWebサーバ - Apac...
*設定手順 [#hffc3b3d]
** ダウンロード、解凍 [#c0b4b890]
# wget http://jp2.php.net/distributions/php-4.4.0.tar.gz
--15:47:31-- http://jp2.php.net/distributions/php-4.4.0...
=> `php-4.4.0.tar.gz'
jp2.php.net をDNSに問いあわせています... 210.138.109.182
jp2.php.net[210.138.109.182]:80 に接続しています... 接続...
HTTP による接続要求を送信しました、応答を待っています......
長さ: 4,972,107 [application/x-tar]
100%[==============================================>] 4,...
15:47:35 (1.16 MB/s) - `php-4.4.0.tar.gz' を保存しました...
# tar zxf php-4.4.0.tar.gz
# cd php-4.4.0
** configureの前にインストールが必要だと思われるパッケー...
# apt-get install flex \
> bzip2-devel \
> MySQL-server MySQL-devel \
> openssl-devel \
> libjpeg-devel zlib-devel libpng-devel \
> t1lib-devel
パッケージリストを読みこんでいます... 完了
依存情報ツリーを作成しています... 完了
* openssl-devel は既に最新バージョンがインストールされ...
以下の追加パッケージがインストールされます:
t1lib
以下のパッケージが新たにインストールされます:
MySQL-devel MySQL-server bzip2-devel flex libjpeg-deve...
zlib-devel
アップグレード: 0 個, 新規インストール: 9 個, 削除: 0 個...
13.0MB のアーカイブを取得する必要があります。
展開後に 32.9MB のディスク容量が追加消費されます。
続行しますか? [Y/n]y
取得:1 http://updates.vinelinux.org 3.1/i386/plus MySQL-...
取得:2 http://updates.vinelinux.org 3.1/i386/main t1lib ...
取得:3 http://updates.vinelinux.org 3.1/i386/plus MySQL-...
取得:4 http://updates.vinelinux.org 3.1/i386/devel bzip2...
取得:5 http://updates.vinelinux.org 3.1/i386/plus flex 2...
取得:6 http://updates.vinelinux.org 3.1/i386/devel libjp...
取得:7 http://updates.vinelinux.org 3.1/i386/devel zlib-...
取得:8 http://updates.vinelinux.org 3.1/i386/updates lib...
取得:9 http://updates.vinelinux.org 3.1/i386/devel t1lib...
13.0MB を 8s 秒で取得しました (1528kB/s)
変更を適用しています...
Preparing... ############################...
1:MySQL-server ############################...
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
050802 16:23:27 /usr/sbin/mysqld: Shutdown Complete
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USE...
To do so, start the server, then issue the following com...
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h x22 password 'new-password'
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug sc...
The latest information about MySQL is available on the w...
http://www.mysql.com
Support MySQL by buying support/licenses at https://orde...
2:t1lib ############################...
3:MySQL-devel ############################...
4:bzip2-devel ############################...
5:flex ############################...
6:libjpeg-devel ############################...
7:zlib-devel ############################...
8:libpng-devel ############################...
9:t1lib-devel ############################...
完了
** apache2(worker対応)とmysqlを使う場合に必要十分だと思わ...
詳しいオプションは、http://php.s3.to/man/install.configur...
# ./configure \
--prefix=/usr \
--with-apxs2=/usr/local/apache2/bin/apxs \ ←apache2のapx...
--with-config-file-path=/etc \
--with-mysql=/usr \
--with-jpeg-dir=/usr \
--with-zlib-dir=/usr \
--with-bz2 \
--with-openssl \
--with-gd \
--with-t1lib \
--with-ttf \
--enable-exif \
--enable-mbregex \
--enable-mbstring \
--enable-zend-multibyte \
--enable-gd-jis-conv \
--enable-gd-native-ttf
+-------------------------------------------------------...
| License: ...
| This software is subject to the PHP License, available...
| distribution in the file LICENSE. By continuing this ...
| process, you are bound by the terms of this license ag...
| If you do not agree with the terms of this license, yo...
| the installation process at this point. ...
+-------------------------------------------------------...
| *** NOTE *** ...
| The default for register_globals is now OFF...
| ...
| If your application relies on register_globals being O...
| should explicitly set it to on in your php.ini file. ...
| Note that you are strongly encouraged to read ...
| http://www.php.net/manual/en/security.globals.php ...
| about the implications of having register_globals set ...
| avoid using it if possible. ...
+-------------------------------------------------------...
Thank you for using PHP.
が出ればOKだす。
ちなみに、PHPがスレッドセーフでコンパイルされるかどうかは...
Configuring Zend
:
checking whether to enable thread-safety... yes
:
となっているかどうかで分かる。これは、apache2がスレッドセ...
# make
# make install
php.iniをコピー
# cp php.ini-dist /etc/php.ini
** /etc/php.iniの編集 [#b881331d]
# vi /etc/php.ini
>
output_buffering = On
output_handler = mb_output_handler
magic_quotes_gpc = Off
以下は、設定しなくてもよいかも。PHPのソースがEUC-JPで出力...
default_charset = EUC-JP
mbstring.language = Japanese
mbstring.internal_encoding = EUC-JP
mbstring.http_input = auto
mbstring.http_output = EUC-JP
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none
** apache2の再起動 [#e0624624]
# /etc/rc.d/init.d/apache2 restart
httpdを停止中: ...
httpdを起動中: ...
** 動作確認 [#h01b6658]
apacheのDocument Rootとして指定しているディレクトリ以下に...
# vi /home/httpd/html/info.php
>
に、
<?php phpinfo() ?>
と記述して保存。
クライアントより、
http://xxxxxx/info.php
で表示されれば完了。
確認が終わったら、info.phpは削除すること。
* コメント [#v252f82d]
#comment
ページ名:
検索
AND検索
OR検索
編集操作
一覧
単語検索
最終更新
バックアップ
ヘルプ
トップページ
http://kayanomori.net/
↑
アクセス数
本日:0人
昨日:0人
総数:0人
現在:5人
最新の20件
2022-07-16
投票箱
2022-01-30
FrontPage
2022-01-29
めも
2018-02-03
SandBox
PukiWiki
InterWikiName
FormattingRules
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
InterWiki
日本語
複数画像アップ掲示板 ECOUP(エコアップ) v1.31
日記/2006-12-12
日記
日記/2005-10-04
特定のオートコンプリート履歴だけを削除する
日記/2005-10-06
小ネタ集/WordPress
日記/2005-10-05
整形ルール
edit