RedhatES4を,インストールするとSubscription Numberを入力した後,Activateが失敗しませんか?
この原因と対処方法がわかったので,せっかくなので覚書します。
<原因>
RedhatES4でActivateする場合、「ハードウエア情報を送信する」にチェック
を付けると、レジストする際エラーが発生し、「エンタイトルメントがはずされ
ました」または「不明」といった情報で登録されるバグがあるようです。
http://www.jp.redhat.com/FAQ/index_rhnsub.html#2 のQ2
<対処方法>
1)誤った状態で登録されたシステム情報(System Profile)を削除する
2)再度、Activeteする(インストール後でも可能)
<手順>
1)https://www.redhat.com/apps/support/ でサブスクリプションが
有効期限内にあるか事をチェックする。
2)https://rhn.redhat.com からRHNにログインする。
3)全てのシステム一覧を参照すると次の様なメッセージのシステムが
登録されている。
①不明
②エンタイトルメントが外されました。
4)システムを選択し、右上の”delete system”をクリックする。
5)確認に対し、右下の「Delete Profile」ボタンをクリックする。
-問題のあるプロファイルをすべて削除したら、再度Activeteする-
6)%up2date –register #GUIが起動する
7)RedhatID, PASSWORDを入力する。
8)subscription number を入力する。
※ここで、ハードウエア情報の送信は、チェックを外す事!
サーバ名を入力する(ホスト名でいい)
9)表示されたチェンネルを確認し正しければ「進む」をクリックする。
※rpmヘッダをフェッチしています・・メッセージが続く(1時間~
10)全部終わるまでひたすら待ちます・・
-終わったら正しくRedhat Networksに登録された事を確認する-
11)全システムの更新のシステム記号に[レ]が表示されたらOK!
以上です。
Redhatからのメールもサイトも英語なので,くじけそうですが,エキサイト(http://www.excite.co.jp/world/)の優秀な翻訳のおかげで,なんとか解決しました。
ありがたやぁ~。
やっぱ,英語は大切ですね!
英語に慣れようと思って,昨日書店で,英語の「となりのトトロ」を買いました(w
Posted by seemo as SETUP MANUAL at 12:02 AM JST
No Comments »
ひょんなことで、
この間インストールしたApacheを2.0.58から RedhatES4に標準で付いてくるApacheに入れ替えた(戻した)ときの話やけど・・
RedhatES4に標準Apache2.0.5x_xxにPHP5.16をインストールすると
./configureで、apxsが無いのでエラーになりました。
標準のApacheは、どうやら/etc/httpd/にインストールされるらしく
modules/ は、/usr/lib64/ に入っています。
で、どこを探してもapxsはないんですね。これが・・
なんでやねん・・・
PHPはこれがないとインストールできないし、困った困った。
1時間後ようやく、見つけました。
RedhatES4のCDの5枚目の中に、httpd-devel-2.0.59-9.ent.x86_64.rpmが・・
説明書くらい付けてよ・・(日本語で・・(大阪弁可
そんで、rpmでインストールするとエラーが2発!!
”あれとこれがないで” だって
あれ:apr-devel-0.9.4-24.1.x86_64.rpm
これ:apr-util-devel-0.9.4-17.x86_64.rpm
これらは、運よく同じ5枚目CDに入っていたので、先にインストールしてなんとかうまくいきました。
まったくLinuxは,いつもこんな調子で僕を困らせるので、楽しいですね(M?
せっかくなので手順を覚書します。
■RedhatES4標準ApacheをインストールしてPHPをインストールする為の準備。。
#RedhatES4の5枚目のCDに入っている次の3つのファイルを/usr/local/src にコピーします。
#apr-devel-0.9.4-24.1.x86_64.rpm
#apr-util-devel-0.9.4-17.x86_64.rpm
#httpd-devel-2.0.59-9.ent.x86_64.rpm
#続いて、インストールします。
%rpm -Uvh apr-devel-0.9.4-24.1.x86_64.rpm
%rpm -Uvh apr-util-devel-0.9.4-17.x86_64.rpm
%rpm -Uvh httpd-devel-2.0.59-9.ent.x86_64.rpm
#これで、PHPがインストールできるようになります。
#必要だったapxsは、次の場所にインストールされます。
#/usr/sbin/apxs
#なのでphpのコンパイルオプションには次のように記述するとOK。
#./configure –with-apxs2=/usr/sbin/apxs ・・・・・・
#なお、標準ApacheのHTTPドキュメントルートは、/var/www/html です。
#そこに<?php phpinfo(); ?> みたいなテストファイル作って実行すると,こんどは,
”warning: include_path=.:/usr/local/lib/php” みたいなのがでてOUT!!
まったく・・
まるで,pathの間違いかなみたいな気がするメッセージだけど,
そのファイルのパーミッション(実行権限)が不足していたのが原因でした。
#はぁ,Linuxやるまえに,NOVAにいったほうがいいかな・・ 英語・・
以上です。
覚書追加>>
▼サービスに登録する方法————————————–
%sed -e ’s/^# chkconfig:.*/# chkconfig: 2345 85 15/’
-e ’s/\/etc\/httpd/\/usr\/local\/httpd/’
-e ’s/\/usr\/sbin/\/usr\/local\/httpd\/bin/’ /usr/local/src/httpd-2.0.58/build/rpm/httpd.init > /etc/rc.d/init.d/httpd
%chmod 755 /etc/rc.d/init.d/httpd
%chkconfig –add httpd
%service http start
▲————————————————————
▼サービスに登録しないで起動する方法は次の通り—————-
%cd /etc/rc.d/
%vi rc.local
# 以下の文章を最後の行に追加する
———————————————-
/usr/local/httpd/bin/apachectl start
———————————————-
# 保存する。
#うまくいかないとき書式チェックする
%/usr/local/httpd/bin/apachectl configtest
Syntax OK
▲————————————————————-
# PCを再起動し、ブラウザからページが表示されるかテストします。
Posted by seemo as SETUP MANUAL at 12:35 PM JST
No Comments »
またまた
ひょんなことで、RedhatES4.0に、PHPをインストールすることになりました。
せっかくなので、インストール手順を覚書します。
詳しい方、ご指摘お願いしますね・・
#は、コメントで、%は、コマンドプロンプトです。
ちなみに、こちらも、データベースはpostgreSQLです。
あ、文字コードはUTF-8です。
1.”PHP5.1.6″ is installed.
#”libxml” is needed wheny installing “PHP5″ in “RedhatES4.0.”
#Existence is checked.
%rpm -qa | grep libxml2
%cd /usr/local/src
%tar zxvf php-5.1.6.tar
%cd pho-5.1.6
%./configure –with-apxs2=/usr/local/httpd/bin/apxs –enable-mbstring
–enable-mbstr-enc-trans –enable-mbregex –enable-trans-sid –enable-zend-multibyte
–enable-track-vars –enable-exif –enable-ftp –enable-sockets
–with-pgsql=/usr/local/pgsql –without-mysql –enable-sqlite-utf8
%make
%make install
“php.ini” is edit
# sample file is copied.
%cp /usr/local/src/php-5.1.6/php.ini-dist /usr/local/lib/php.ini
%vi /usr/local/lib/php.ini
#”mbstring” is edit as follows.
——————————————
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_input = pass
mbstring.http_output = pass
mbstring.encoding_translation = off
mbstring.detect_order = auto
mbstring.substitute_character = none
mbstring.func_overload = 0
——————————————
#”httpd.conf” is corrected.
——————————————
%vi /usr/local/httpd/conf/httpd.conf
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html #Arbitrary
LoadModule php5_module module/libphp5.so
——————————————
#Apache is rebooted.
%/usr/local/httpd/bin/apachectl restart
2.PHP is tested.
#The next file is created.
<?php phpinfo(); ?>
/usr/local/httpd/httpdoc/ <-copy here.
↑
#Please change “Web contener” into a suitable place later.
以上です。
Posted by seemo as SETUP MANUAL at 12:56 AM JST
Comments Off
ひょんな事で,Linuxサーバをインストールしたので,
せっかくなので,その時の手順です。
あちこちのサイトを参照しつつ,試行錯誤でできあがりました。
間違ってるところがあるかもしれないですが,
大体OKでしょ?
コメントの英語がめちゃくちゃですすみません。
そのうち正しく・・ なる・・ かも・・
fedora server install manual.
essential information.
ip address:xxx.xxx.xxx.xxx
sub netmask:xxxx.xxx.xxx.xxx (xx)
default gateway:xxx.xxx.xxx.xxx
dns1:xxx.xxx.xxx.xxx
dns2:xxx.xxx.xxx.xxx
host name:xxxxx
root password:xxxxxx
this server installs Fedora Core6 + Apache2.0.58 + Tomcat5.0.28(jdk1.4.2) + postgreSQL8.1.5.
Hardware is ML(cpu-64bit) of HP.
1.FEDORA is installed.
Please remove the web server and the data base from the package.
Moreover, please select the following package because it cannot be “make command”.
“Development package”, “Development of ..legacy.. software”, and “Development library”.
2.Installation of postgreSQL.
%groupadd postgres
%useradd -g postgres postgres
%password postgres
%chmod 777 /usr/local/src
%mkdir /usr/local/pgsql
%chown postgres.postgres /usr/local/pgsql
%su postgres
%cd /usr/local/src
%tar zxvf postgresql-8.1.5.tar.gz
%cd postgresql-8.1.5
%./configure –prefix=/usr/local/pgsql –enable-nls=ja
%make
%make install
“PostgreSQL installation complete” it ended correctly by this.
#making of environment variable
%vi ~/.bash_profile
———————————–
PGHOME=/usr/local/pgsql
PGDATA=$PGHOME/data
PGLIB=$PGHOME/lib
PATH=$PATH:$HOME/bin:$PGHOME/bin
export PGHOME PGDATA PGLIB PATH
———————————–
# save
%source ~/.bash_profile
%initdb –encoding=EUC_JP -no-locale
%exit
%vi /etc/ld.so.conf
#add it to the last line on a page.
———————————–
/usr/local/pgsql/lib
———————————–
# save
%cd /etc/
%ldconfig -v
%su - postgres
%vi /usr/local/pgsql/data/pg_hba.conf
# IPv4 local connections:
———————————————————————-
host all all 127.0.0.1/32 trush
host all all xxx.xxx.xxx.0/24 trust # add line
———————————————————————-
# save
%vi /usr/local/pgsql/data/postgresql.conf
# 「#listen_addresses=’localhost’」on line changes.
———————————————————————-
listen_addresses=’localhost,192.168.0.xx’ ・・・
# when it is possible to connect it from anywhere
listen_addresses=’*’
PORT=5432 #comment is removed.
———————————————————————-
# save
%pg_ctl start
or
%pg_ctl reload
%pg_ctl stop
# returns to the root.
%exit
# start script is copied.
%cd /usr/local/src/postgresql-8.1.5/contrib/start-scripts/
%cp linux /etc/rc.d/init.d/postgresql
# authority is set.
%cd /etc/rc.d/init.d/
%chmod 755 postgresql
# adds it to “service”.
%chkconfig –add postgresql
# postgresql start
%service postgresql start
# authority is without.
%chmod 755 /usr/local/src
4.Installation of Apache.
#ssl
%yum -y install openssl-devel
%mkdir /usr/local/httpd-2.0.58
%cd /usr/local/src
#64bitCPU onry
%up /usr/lib64/libexpat.so instead of /usr/lib
or
%cp /usr/lib64/libexpat.so /usr/lib
%tar zxvf httpd-2.0.58.tar.gz
%cd httpd-2.0.58
%./configure –prefix=/usr/local/httpd-2.0.58 –enable-rewrite=shared –without-ssl –without-dav_fs –without-dav
%make
%make install
#link
%ln -sfn /usr/local/httpd-2.0.58 /usr/local/httpd
#Apache Operation test
%/usr/local/httpd/bin/apachectl start
%/usr/local/httpd/bin/apachectl stop
#adds it to “service”.
%vi /usr/local/httpd/conf/httpd.conf
———————————————————————————————————
# LanguagePriority en ca cs da de el eo es et fr he hr it ha ja ko itz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
↓ja
LanguagePriority ja en ca cs da de el eo es et fr he hr it ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
———————————————————————————————————
%cd /etc/rc.d/
%vi rc.local
# last line add
———————————–
/usr/local/apache2/bin/apachectl start
———————————–
# save
# re check
%/usr/local/httpd/bin/apachectl configtest
Syntax OK
# pc restart.
5.Installation of Java.
#jdk1.4.2_13
% cd /usr/local/src
# cp j2sdk-1_4_2_13-linux-i586.bin /usr/local
# cd /usr/local
# chmod 755 j2sdk-1_4_2_13-linux-i586.bin
# ./j2sdk-1_4_2_13-linux-i586.bin
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA 2 PLATFORM STANDARD EDITION DEVELOPMENT
KIT 5.0
…..
For inquiries please contact: Sun Microsystems, Inc.,
4150 Network Circle, Santa Clara, California 95054,
U.S.A. (LFI#143333/Form ID#011801)
Do you agree to the above license terms? [yes or no]
yes ←entry
%ln -sfn /usr/local/j2sdk-1_4_2_13 /usr/local/jdk
6.Installation of Tomcat.
#download
wget -P /usr/local/src http://ftp.kddilabs.jp/infosystems/apache/tomcat/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28.tar.gz
%cd /usr/local/src
%tar xzf jakarta-tomcat-5.0.28.tar.gz -C /usr/local
%ln -sfn /usr/local/jakarta-tomcat-5.0.28 /usr/local/tomcat
7.Tomcat setting
%vi /etc/profile
———————————–
export JAVA_HOME=/usr/local/jdk
export CATALINA_HOME=/usr/local/tomcat
PATH=$PATH:$JAVA_HOME/bin
———————————–
#source
%source /etc/profile
#create user
%useradd -d /var/empty/tomcat -s /bin/bash tomcat
%chown -R tomcat:tomcat /usr/local/jakarta-tomcat-5.0.28
8.Tomcat testing
%su -s /bin/bash - tomcat -c “$CATALINA_HOME/bin/startup.sh”
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/jdk
#add to “service”
#start script is copied.
%vi /etc/rc.d/init.d/tomcat
———————————————————————-
#!/bin/sh
#
# Startup script for the tomcat
#
# chkconfig: 345 80 15
# description: Tomcat
# Source function library.
. /etc/rc.d/init.d/functions
case “$1″ in
’start’)
if [ -f /usr/local/tomcat/bin/startup.sh ]; then
echo “Starting tomcat ..”
su - tomcat -c “export JAVA_HOME=/usr/local/jdk; \
export TOMCAT_HOME=/usr/local/tomcat;/usr/local/tomcat/bin/startup.sh”
fi
;;
’stop’)
echo “Stopping tomcat ..”
su - tomcat -c “export JAVA_HOME=/usr/local/jdk; \
export TOMCAT_HOME=/usr/local/tomcat;/usr/local/tomcat/bin/shutdown.sh”
;;
‘restart’)
$0 stop
$0 start
;;
‘jkconf’)
if [ -f /usr/local/tomcat/bin/startup.sh ]; then
echo “Generating Apache mod_jk config file. ”
su - tomcat -c “export JAVA_HOME=/usr/local/jdk; \
export TOMCAT_HOME=/usr/local/tomcat;/usr/local/tomcat/bin/startup.sh jkconf”
fi
;;
*)
echo “Usage: $0 {start|stop|restart|jkconf}”
;;
esac
exit 0
———————————————————————-
#authority is set.
%chmod 755 /etc/rc.d/init.d/tomcat
%chkconfig –add tomcat
#test
%service tomcat start
%service tomcat stop
%service tomcat restart
11.Tomcat synchronizes with Apache.
#download
%wget -P /usr/local/src http://www.meisei-u.ac.jp/mirror/apache/dist/tomcat/tomcat-connectors/jk2/jakarta-tomcat-connectors-jk2-src-current.tar.gz
%tar xvfz jakarta-tomcat-connectors-jk2-src-current.tar.gz
%cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
%./configure –with-apxs2=/usr/local/apache2/bin/apxs
%make
%cp ../build/jk2/apache2/mod_jk2.so /usr/local/apache2/modules
#/usr/local/httpd/conf/httpd.conf
%LoadModule jk2_module modules/mod_jk2.so
#/usr/local/httpd/conf/workers2.properties create
%vi /usr/local/httpd/conf/workers2.properties
———————————–
[channel.socket:localhost:8009]
[shm:]
disabled=1
[uri:/jsp-exsamples/*]
———————————–
#conf/jk2.properties
%vi /usr/local/tomcat/conf/jk2.properties
———————————–
channelSocket.port=8009
———————————–
#edit server.xml
%vi /usr/local/tomcat/conf/server.xml
———————————————————————-
<Connector port=”8009″
enableLookups=”false” redirectPort=”8443″ debug=”0″
protocol=”AJP/1.3″ useBodyEncodingForURI=”true” />
———————————————————————-
#8080→7001 debug (Erase it at the end. )
———————————————————————-
<Connector port=”8080″
maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″
enableLookups=”false” redirectPort=”8443″ acceptCount=”100″
debug=”0″ connectionTimeout=”20000″
disableUploadTimeout=”true”
useBodyEncodingForURI=”true”/>
↓
<Connector port=”7001″
maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″
enableLookups=”false” redirectPort=”8443″ acceptCount=”100″
debug=”0″ connectionTimeout=”20000″
disableUploadTimeout=”true”
useBodyEncodingForURI=”true”/>
———————————————————————-
以上でした。
詳しい方が,いらっしゃいましたら,やばそうなとこ教えてください!!
よろしくお願いします。
Posted by seemo as SETUP MANUAL at 12:48 AM JST
Comments Off