2009-03-01から1ヶ月間の記事一覧

scp コマンド

scpコマンド scp [転送元パス][転送先パス] 転送元パスに外部サーバのURLを指定 →ファイルを持ってくる転送元パスにローカルサーバのURLを指定 →ファイルを押し出す具体例 scp [転送元パス] username@servername:/filepath/filepath/file.fl scp /home/hogeo…

pecl install エラー

pecl install json エラー ERROR: `phpize' failed phpのdevelをインストール yum -y install php-devel インストールできるようになりました。

pear 安定版以外のインストール

pear install hogehoge-beta hogehogeのベータ版をインストール http://pear.plus-server.net/guide.users.commandline.installing.html

今日の反省 設定ファイルに関して

バージョンが異なるときは設定ファイルの内容も異なっている可能性が高いので、 そのままコピーしないで、きちんとマージするようにする

centosでサーバ構築・6 httpd.conf の編集・2

locateコマンドで libphp.5.so を検索 locate libphp5.so /usr/lib/httpd/modules/libphp5.so あった。。 上の httpd.conf の編集内容を訂正します。

locate コマンド ファイル名検索

ファイル名で検索 locate hogehoge 先輩からのご助言 検索結果が出ないとき updatedb でdbを更新

centosでサーバ構築・6 libphp5.so がない

httpd を起動中: httpd: Syntax error on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/libexec/libphp5.so into server: /etc/httpd/libexec/libphp5.so: cannot open shared object file: No such file or directory [失敗] ぬあ http…

centosでサーバ構築・6 httpd.conf の編集

前回の続きです。 httpd.conf を編集します vi /etc/httpd/conf/httpd.conf 編集箇所 AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps DirectoryIndex index.html index.html.var index.php LoadModule php5_mod…

yum コマンド

yum list installed | grep 'hogehoge' インストールされているhogehogeを表示 yum list available | grep 'hogehoge' インストールできるhogehogeを表示

php インストールに失敗する

phpinfoが表示されません ./configure make make test ===================================================================== FAILED TEST SUMMARY - Bug #16069 (ICONV transliteration failure) [ext/iconv/tests/bug16069.phpt] iconv stream filter […

やり直し・2

上にlibxml2のインストールを足しておきます

わからない単語 libxml2

Libxml2 とは GNOME 2 などで採用されている XML を扱うための基本ライブラリです。 The XML C parser and toolkit of Gnome から Libxml2 のソースファイルをダウンロードしてインストールする方法を紹介します。 http://honana.com/library/libxml2.html

失敗しました・2

checking libxml2 install dir... no checking for xml2-config path... configure: error: xml2-config not found. Please check your libxml2 installation. ぬ

やり直し

上に apxs の configure を足しておきます

わからない単語 apxs

apxs = apache拡張ツール、です。apache には php などを apache の機能の一部であるかのように利用する機能がありますが、これを使う場合に必要なものということになります。 知りませんでした。。http://q.hatena.ne.jp/1153519831

失敗しました

Sorry, I cannot run apxs. Possible reasons follow:1. Perl is not installed 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs 3. Apache was not built using --enable-so (the apxs usage page is displayed)The output …

centosでサーバ構築・4 phpのインストール

phpの取得 wget http://jp2.php.net/get/php-5.2.9.tar.gz/from/jp.php.net/mirror tar xvzf php-5.2.9.tar.gz インストール cd php-5.2.9.tar.gz ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring=all make su make i…

rpm コマンド

インストールされているプログラムを探す rpm -qa | grep HOGEHOGE アンインストール rpm -e HOGEHOGE

わからない単語 Dovecot

Dovecot は Timo Sirainen さんに書かれた、 オープンソース の Linux/UNIX-like システム向けの IMAP と POP3 サーバであり、 セキュリティを第一に考えて書かれました。 C 言語で書かれおり、よくある隠れた危険のほとんどを避けるための いくつかのコーデ…

つまづきました

[root@centos works]# rpm -ivh MySQL-client-5.1.32-0.glibc23.i386.rpm 準備中... ########################################### [100%] ファイル /usr/bin/mysql (パッケージ MySQL-client-5.1.32-0.glibc23 から) は、パッケージ mysql-5.0.45-7.el5 か…

centosでサーバ構築・3 mysqlのインストール

wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-5.1.32-0.glibc23.i386.rpm/from/ftp://ftp.jaist.ac.jp/pub/mysql/wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-test-5.1.32-0.glibc23.i386.rpm/from/ftp://ftp.jaist.ac.jp…

centosでサーバ構築・2 apacheインストール

apacheを取得、解凍 wget http://www.meisei-u.ac.jp/mirror/apache/httpd/httpd-2.2.11.tar.gz tar xzvf httpd-2.2.11.tar.gz インストール cd httpd-2.2.11 ./configure--enable-so ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-so mak…

tar.gz の解凍

忘れるのでメモ $ tar xzvf package.tar.gz なんのオプションなのか調べておこうと思います。http://itpro.nikkeibp.co.jp/article/COLUMN/20060228/231198/

centosでサーバ構築・1

またOSを入れなおしてみました。 setup → network configuration → eth0 Static IP 192.168.11.250 NetMask 255.255.255.0 Default gateway IP 192.168.11.1 ネットワーク再起動 /etc/init.d/network restart yum最適化 yum -y install yum-fastestmirror yu…

Ethna フォームの内容を取得する

すぐ忘れるのでメモ var_dump($this->af->getArray(false)) で、afに記述してフォームから渡した内容がとれる

わからない単語 スカラー値

PerlやPHP等の言語ではCのようなデータ型を指定しません。 その代わり数字や文字列といった一つの値を持ったものをスカラー値と言います。PHPのスカラー値は4種類です。 * 論理値 (boolean) * 整数 (integer) * 浮動小数点数(double) * 文字列 (string) 最…

mysql での if文

つまったのでメモ SELECT IF(fugaid is not NULL, 1 , 0) as is_listed FROM hoge_info http://d.hatena.ne.jp/americanboss/20051202#p4

sql メモ

ついでにsqlもメモupdate update hoge_info set hogetype= 'hogehoge', hogerole = 'fuga' where hogeid = '40' ;

dump ファイルで mysql のデータを復元

いつも忘れてしまうのでメモ 特定のデータベースのみのバックアップの場合は、 $ mysqldump -u root データベース名 > dump.sql 特定データベースのみの復元は $ mysql -u root データベース名 < dump.sql http://phpspot.net/php/pgmysqldump%82%C5%83o%83b…

メモ

とりあえずメモ head nkf -w vim :set number :行 先輩のコマンド mysql> use test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> show ta…