<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HOTSYSTEMS - BLOG - &#187; サーバ</title>
	<atom:link href="http://www.hotsystems.jp/blog/archives/category/%e3%82%b5%e3%83%bc%e3%83%90/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hotsystems.jp/blog</link>
	<description>簡単で使いやすいシステム開発でみんなを笑顔に！</description>
	<lastBuildDate>Sat, 22 Oct 2011 16:26:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>サブドメイン</title>
		<link>http://www.hotsystems.jp/blog/archives/275</link>
		<comments>http://www.hotsystems.jp/blog/archives/275#comments</comments>
		<pubDate>Tue, 18 May 2010 16:34:21 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[サーバ]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/?p=275</guid>
		<description><![CDATA[www.example.comで運用中のサーバに
hoge.example.comのようにサブドメインを追加する場合の覚書
※hoge.example.comのドキュメントルートは任意の場所に指定可能
サブドメインを使用するにはまず、DNSレコードを変更する必要がある。
レンタルサーバで申請できる場合は以下のように申請。
例）
サブドメイン hogeを作る場合
ホスト:　hoge    A  サーバのIPアドレス
DNSレコードが変更されれば後は
apacheのhttp.confを以下のように修正
# vi /etc/httpd/conf/httpd.conf
NameVirtualHost *:80　　#を取る
#以下追加
&#60;virtualhost *:80&#62;
      ServerName www.example.com
      DocumentRoot /var/www/html　元からのデータのディレクトリ
&#60;/virtualhost&#62;
&#60;virtualhost *:80&#62;
    ServerName hoge.example.com
    DocumentRoot /home/hoge/html　hoge用のディレクトリ
    &#60;directory &#8220;/home/hoge/htm&#8221;&#62;
        AllowOverride All
     [...]]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/275/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yum Error: Missing Dependency</title>
		<link>http://www.hotsystems.jp/blog/archives/265</link>
		<comments>http://www.hotsystems.jp/blog/archives/265#comments</comments>
		<pubDate>Sat, 21 Nov 2009 02:49:17 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[サーバ]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/265</guid>
		<description><![CDATA[VPSのPHPをアップデートしようとしたところ以下の様にエラーが出た。
[root@ user]# yum update php
Error: Missing Dependency: php-common = 5.1.6-23.9v1 is needed by package php-sqlite2-5.1.6-23.9v1.x86_64 (installed)
色々調べたが結局php-sqliteは目下必要ないので削除する事に
[root@ user]# yum remove php-sqlite2-5.1.6-23.9v1.x86_64
もう一度トライでインストールできた
[root@ user]# yum update php
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/265/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPSのCentOS5にyumをインストール</title>
		<link>http://www.hotsystems.jp/blog/archives/264</link>
		<comments>http://www.hotsystems.jp/blog/archives/264#comments</comments>
		<pubDate>Thu, 19 Nov 2009 05:43:53 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[サーバ]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/264</guid>
		<description><![CDATA[VPSにyumが入っていなかったのでインストール
まずはディストリビューションのチェック
[root@ user]# cat /etc/redhat-release
CentOS release 5.3 (Final)
それから何ビットか調べる　これは64bit
[root@user]# uname -a
Linux 2.6.18-028stab059.6 #1 SMP Fri Nov 14 14:01:22 MSK 2008 x86_64 x86_64 x86_64 GNU/Linux
そんでもって以下のサイトよりバージョンに合ったフォルダに降りていって欲しいRPMのパスを調べる
http://ftp.riken.jp/Linux/centos/
これが欲しいRPM
http://ftp.riken.jp/Linux/centos/5.3/os/x86_64/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm
お次はサーバにログインして
[root@user]#cd /usr/local/src
[root@user]#mkdir yumrpm
[root@user]#cd yumrpm
[root@yumrpm]# wget http://ftp.riken.jp/Linux/centos/5.3/os/x86_64/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm
[root@yumrpm]# rpm -ihv *
これを行うと他にも必要なRPMパッケージが表示されるので一つ一つwgetで取得していく
最後にもう一度
[root@yumrpm]# rpm -ihv *
でインストール完了！
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/264/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>サーバシステム情報　64bit</title>
		<link>http://www.hotsystems.jp/blog/archives/263</link>
		<comments>http://www.hotsystems.jp/blog/archives/263#comments</comments>
		<pubDate>Thu, 19 Nov 2009 04:59:49 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[サーバ]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/263</guid>
		<description><![CDATA[レンタルサーバに自分で色々インストールしたい時に、32bitか64bitか調べる必要があるが
このコマンドで調べる事ができる。
[root@user]# uname -a
Linux  2.6.18-028stab059.6 #1 SMP Fri Nov 14 14:01:22 MSK 2008 x86_64 x86_64 x86_64 GNU/Linux
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/263/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ディストリビューションの確認</title>
		<link>http://www.hotsystems.jp/blog/archives/262</link>
		<comments>http://www.hotsystems.jp/blog/archives/262#comments</comments>
		<pubDate>Thu, 19 Nov 2009 04:43:42 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[サーバ]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/262</guid>
		<description><![CDATA[[root@ user]# cat /etc/redhat-release
CentOS release 5.3 (Final)
[root@ user]#
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/262/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>バーチャルドメインのIP</title>
		<link>http://www.hotsystems.jp/blog/archives/259</link>
		<comments>http://www.hotsystems.jp/blog/archives/259#comments</comments>
		<pubDate>Fri, 30 Oct 2009 03:50:17 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[サーバ]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/259</guid>
		<description><![CDATA[バーチャルドメインにて運用しているサーバのIPについて覚書
nslookupなどでドメインのIPを調べたものとREMOTE_ADDRで出てくるIPが違う。
クレジット会社に申請する時にサーバ会社から割り振られているIPをそのまま出すと
IPが違いまっせと怒られてしまう。。。REMOTE_ADDRのIPが違うからだ。
なのでREMOTE_ADDRの調べ方。
調べたいサーバに以下のPHPファイルを置く　例）remote.php
 $result = file_get_contents(&#8220;http://テキトーなサーバ/hoge.php&#8221;);
 print $result;
どっかテキトーなサーバにhoge.phpを置く
print_r($_SERVER);
remote.phpにアクセスすれば自身のサーバのIPが
    [REMOTE_ADDR] => 000.000.000.00
見たいに入っている。
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/259/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS5に　PHP5.2系をいれる</title>
		<link>http://www.hotsystems.jp/blog/archives/257</link>
		<comments>http://www.hotsystems.jp/blog/archives/257#comments</comments>
		<pubDate>Sat, 05 Sep 2009 01:26:40 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[サーバ]]></category>
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/257</guid>
		<description><![CDATA[参照サイト：
GuinEa Pig　様
まずは、下記のRPM-GPG-KEYを取得する。
# rpm &#8211;import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
次に、&#8221;/etc/yum.repos.d&#8221;の直下に&#8221;utterramblings.repo&#8221;というファイルを作成し、リポジトリ参照の設定を書き込む。ここはviでサクッと（べつになんでもいいけど）。
# vi /etc/yum.repos.d/utterramblings.repo
[utterramblings]
name=Jason&#8217;s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
これを保存して、さいごにyumでPHPをアップデートする。
# yum update php
最後に、yumの自動アップデートで勝手にさっきの設定を利用されないように以下の部分を書き換え。
#vi /etc/yum.repos.d/utterramblings.repo
    enabled=1
    ↓
    enabled=0
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/257/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 2003でIIS6 &amp; PHP</title>
		<link>http://www.hotsystems.jp/blog/archives/134</link>
		<comments>http://www.hotsystems.jp/blog/archives/134#comments</comments>
		<pubDate>Mon, 10 Sep 2007 14:29:08 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[サーバ]]></category>
		<category><![CDATA[仕事]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/134</guid>
		<description><![CDATA[とあるクライアント様の案件でIIS6とPHP５で運用する為にWindows 2003 Server にPHPをインストールした。拡張モジュールを使用できるISAPI版のPHP5をインストールし通常どうりの設定をした。
１．php5ts.dllをC:\WINDOWSへ
２．php.ini-distをphp.iniとし、C:\WINDOWSへ
３．php.iniのinclude_pathやextension_dirを設定
４．IISマネージャーのISAPIフィルタを追加
５．「ホームディレクトリ」の「構成」からアプリケーションのマッピングを設定
とココまでで問題なく動くと思いきや何故か動かない。調べてみるとIIS6では
IIS 6 (2003 Server) の場合は IIS マネージャを開き、「Web サービス拡張」に 移動し、「新しい Web サービス拡張を追加」を選択し、たとえば「PHP」などと 拡張名を入力し、「追加」ボタンを押して ISAPI ファイル (php4isapi.dll または php5isapi.dll) あるいは CGI (php.exe または php-cgi.exe) を選択し、「拡張の状態を許可済みに設定する」をチェックして「OK」ボタンを クリックします。　?　PHPマニュアルより　?
らしい。


これで無事IIS6でPHP5を動かすことができた。さーてこれでアプリを作っていけるぞ！
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/134/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL　VIEW</title>
		<link>http://www.hotsystems.jp/blog/archives/94</link>
		<comments>http://www.hotsystems.jp/blog/archives/94#comments</comments>
		<pubDate>Fri, 27 Jul 2007 14:07:47 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[program]]></category>
		<category><![CDATA[サーバ]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/94</guid>
		<description><![CDATA[今まで、SQLのVIEWというものを使った事がなかったのだけれども、今回たまたま使う事があった。PostgreSQLにてViewをつかうには
CREATE [ OR REPLACE ] VIEW test_v1 name AS SELECT * FROM test_t1
※test_t1は既に存在するテーブル
とするらしい。これにより
SELECT *　FROM test_v1
を実行することが出来る。副問い合わせや、外部結合を使ったSLECT文をVIEWに登録しておいて後からそのVIEWを使ったりすると便利な時があるみたい。ちなみにVIEWもGRANTで権限を付与してあげる必要があった。忘れないように書いておこう。
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/94/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPエイリアス？</title>
		<link>http://www.hotsystems.jp/blog/archives/66</link>
		<comments>http://www.hotsystems.jp/blog/archives/66#comments</comments>
		<pubDate>Tue, 03 Jul 2007 12:23:59 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[サーバ]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/66</guid>
		<description><![CDATA[とあるシステムからクレジット決済を行うのに決済サービス会社にIP制限が掛けられているので、システムのIPを設定してもらった。ところがぜ?んぜん繋がらんのですよ。なーぜー？IPはプロバイダから教えてもらっているものだし、nslookupでチェックしてみてもちゃんとあっております。ログなどを調べてもらうと、どうもアクセスしているIPが違うらしい。。。。設定してもらっていたIPはエイリアスだったのか？う?ん、久々にかなりハマッテしまった。ところで、IPエイリアスの設定されているサーバのデフォルトIP？ってどうやって調べるんだ？とりあえず、PHPなんかでリモートアドレスを取れば分かるんだけど、めんどくさいなー。。
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/66/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

