約 5,750,590 件
https://w.atwiki.jp/kbhyakka/pages/44.html
Index Index(Black Album)
https://w.atwiki.jp/king1/pages/9.html
/**** andreas00 - an open source xhtml/css website layout by Andreas Viklund - http //andreasviklund.com/ . Free to use for any purpose as long as the proper credits are given to the original author. Version 2.0 (Jan 29, 2007) ****/ /**** Customized by @wiki.jp(http //atwiki.jp/) ****/ /****ads****/ .gafc_on{ /*background-color #FFEB8F;*/ } .gafc_domain{ /*color green;*/ } body{ /*background #eaeaea;*/ /*color #3a3a3a;*/ /*font 76% "arial", "helvetica", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Osaka", "メイリオ", "Meiryo", "MS Pゴシック", clean, sans-serif;*/ /*margin 0px auto;*/ /*padding 0px;*/ } /**** Main layout and header ****/ #container{ /*background #fff;*/ /*color #303030;*/ /*margin 0px auto;*/ /*padding 1px 10px;*/ /*width 1100px;*/ /*border-left 1px solid #aaa;*/ /*border-right 1px solid #aaa;*/ /*-moz-box-shadow 0px 0px 20px #999;*/ /*-webkit-box-shadow 0px 0px 20px #999;*/ /*box-shadow 0px 0px 20px #999;*/ } #header{ /*color #505050;*/ /*height 250px;*/ /*margin 0px 0px 10px;*/ /*padding 0px;*/ /*background url(/common/_img/skin/037flower/front.jpg) no-repeat bottom right #C0E4F2;*/ } #header h1{ /*font-size 2.5em;*/ /*font-weight 400;*/ /*letter-spacing -2px;*/ /*margin 0px 0px 4px 15px;*/ /*padding 37px 0 0;*/ } #header h1 a, #header h1 a hover{ /*font-weight 400;*/ /*padding 0;*/ } #header h2{ /*font-size 1.1em;*/ /*letter-spacing -1px; /*margin 0px 0px 20px 15px; /*padding 0px 0px 0px 3px; } /**** Left sidebar and menu ****/ #menubar ul.avmenu{ /*list-style none; /*margin 0px 0px 18px; /*padding 0; /*width 190px; } #menubar ul.avmenu li{ /*display inline; /*padding 0px; /*width 190px; } #menubar ul.avmenu li a{ /*background url(/common/_img/skin/037flower/menubg.gif) repeat-x bottom left #f4f4f4;*/ /*border-bottom 1px solid #d8d8d8;*/ /*border-left 4px solid #ccc;*/ /*border-right 1px solid #d8d8d8;*/ /*border-top 1px solid #d8d8d8;*/ /*color #505050;*/ /*float left;*/ /*font-size 1em;*/ /*font-weight 700;*/ /*margin-bottom 5px;*/ /*padding 5px 1px 5px 5px;*/ /*text-decoration none;*/ /*width 178px;*/ } #menubar ul.avmenu li a hover, #menubar ul.avmenu li a.current{ /*background url(/common/_img/skin/037flower/menubg2.gif) repeat-x bottom left #eaeaea;*/ /*border-bottom 1px solid #b0b0b0;*/ /*border-left 4px solid #505050;*/ /*border-right 1px solid #b0b0b0;*/ /*border-top 1px solid #b0b0b0;*/ /*color #505050;*/ } #menubar ul.avmenu ul{ /*font-size 0.9em;*/ /*margin 0px 0px 0px 15px; /*padding 0px 0px 5px 0px;*/ /*width 173px;*/ } #menubar ul.avmenu ul a{ /*padding 3px 1px 3px 5px;*/ /*width 163px;*/ } #menubar ul.avmenu ul ul{ /*font-size 1em;*/ /*width 160px;*/ } #menubar ul.avmenu ul ul a{ /*width 148px;*/ } #menubar{ /*float left;*/ /*margin 0px 0px 10px;*/ /*padding 10px;*/ /*width 200px;*/ /*overflow hidden;*/ /*background url(/common/_img/skin/037flower/menubg.gif) repeat-x bottom left #f4f4f4;*/ /*border-bottom 1px solid #d8d8d8;*/ /*border-left 4px solid #ccc;*/ /*border-right 1px solid #d8d8d8;*/ /*border-top 1px solid #d8d8d8;*/ /*clear left;*/ /*color #505050;*/ /*line-height 1.3em;*/ } #menubar p,.announce p{ /*font-size 0.9em;*/ } /**** Main content variations ****/ #content{ /*line-height 1.5em;*/ /*margin 10px 150px 10px 160px;*/ /*padding 0px;*/ /*text-align left;*/ } #contents{ /*line-height 1.5em;*/ /*margin 10px 0px 10px 0px;*/ /*padding 0px;*/ /*text-align left; /*float right;*/ /*overflow hidden;*/ /*width 850px;*/ } #content h2, #contents h2{ /*font-size 1.8em;*/ /*letter-spacing -1px;*/ /*margin 8px 0px 10px;*/ /*padding 0px;*/ } #content h3, #contents h3{ /*font-size 1.5em;*/ /*margin 6px 0px;*/ /*padding 0px;*/ } #content img, #contents img{ /*background #ccc;*/ /*border 4px solid #f0f0f0;*/ /*color #303030;*/ /*display inline;*/ /*padding 1px;*/ /*margin 0px 10px 5px 0px;*/ } #content ul, #content ol, #contents ul, #contents ol{ /*margin 0px 0px 16px 20px;*/ /*padding 0px;*/ } #content ul ul, #content ol ol, #contents ul ul, #contents ol ol{ /*margin 2px 0px 2px 20px;*/ } #content li, #contents li{ /*margin 0px 0px 2px 10px;*/ /*padding 0px 0px 0px 4px;*/ } #content-inner{ /*overflow hidden;*/ } /**** Footer ****/ #footer{ /*background #fff;*/ /*border-top 2px solid #dadada;*/ /*clear both;*/ /*color gray;*/ /*font-size 0.9em;*/ /*margin 0px auto;*/ /*padding 8px 0px;*/ /*text-align center;*/ /*width 1000px;*/ } #footer hr{ /*display none;*/ } #footer a{ /*background inherit;*/ /*color gray;*/ /*font-weight 400;*/ /*text-decoration none;*/ } #footer a hover{ /*text-decoration underline;*/ } /**** Links ****/ a{ /*background inherit;*/ /*color #166090;*/ /*text-decoration none;*/ /*font-weight 700;*/ } a hover{ /*background inherit;*/ /*color #286ea0;*/ /*text-decoration underline;*/ } a img{ /*border 0;*/ } p{ /*margin 0px 0px 16px;*/ } /**** Various classes ****/ .textright{ /*margin -10px 0px 4px;*/ /*text-align right;*/ } .center{ /*text-align center;*/ } .small{ /*font-size 0.8em;*/ } .large{ /*font-size 1.3em;*/ } .highlighted{ /*background #f0f0f0;*/ /*border 1px solid #b0b0b0;*/ /*color #303030;*/ /*padding 3px;*/ } .button{ /*background url(/common/_img/skin/037flower/menubg.gif) repeat-x bottom left #f4f4f4;*/ /*border-bottom 1px solid #d8d8d8;*/ /*border-left 4px solid #ccc;*/ /*border-right 1px solid #d8d8d8;*/ /*border-top 1px solid #d8d8d8;*/ /*color #505050;*/ /*font-weight 700;*/ /*margin 0px 0px 15px;*/ /*padding 7px 7px 7px 11px;*/ /*width 120px;*/ } .left{ /*float left;*/ /*margin 10px 10px 5px 0px;*/ } .right{ /*float right;*/ /*margin 10px 0px 5px 10px;*/ } /**** General Rules ****/ p, dl, multicol{ /*display block;*/ /*margin 1em 0px;*/ } dd{ /*display block;*/ /*margin-left 20px;*/ } dt{ /*font-weight bold;*/ } blockquote{ /*display block;*/ /*margin 1em 0px;*/ } address{ /*display block;*/ /*font-style italic;*/ } center{ /*display block;*/ /*text-align center;*/ } h1{ /*margin 1em 0px;*/ /*font-size 2.2em;*/ /*font-weight bold;*/ } h2{ /*margin 1em 0px;*/ /*font-size 1.8em;*/ /*font-weight bold;*/ } h3{ /*margin 1em 0px;*/ /*font-size 1.4em;*/ /*font-weight bold;*/ } h4{ /*margin 1em 0px;*/ /*font-size 1.2em;*/ /*font-weight bold;*/ } h5{ /*margin 1em 0px;*/ /*font-size 1.1em;*/ /*font-weight bold;*/ } h6{ /*margin 1em 0px;*/ /*font-size 1em;*/ /*font-weight bold;*/ } xmp, pre, plaintext{ /*display block;*/ /*font-family fixed;*/ /*margin 1em 0px;*/ /*white-space -moz-pre-wrap;*//**** Mozilla ****/ /*white-space -pre-wrap;*//**** Opera 4-6 ****/ /*white-space -o-pre-wrap;*//**** Opera 7 ****/ /*white-space pre-wrap;*//**** CSS3 ****/ /*word-wrap break-word;*//**** IE 5.5+ ****/ } table{ /*display table;*/ /*border-spacing 2px;*/ /*border-collapse collapse;*/ /*margin-top 1em;*/ /*margin-bottom 1em;*/ /*-moz-box-sizing border-box;*/ /*text-indent 0px;*/ /*border 1px solid #aaa;*/ } caption{ /*display table-caption;*/ /*text-align center;*/ } tr{ /*display table-row;*/ /*vertical-align inherit;*/ } col{ /*display table-column;*/ } colgroup{ /*display table-column-group;*/ } table{ /*margin-left 1px;*/ } tbody{ /*display table-row-group;*/ /*vertical-align middle;*/ } thead{ /*display table-header-group;*/ /*vertical-align middle;*/ } tfoot{ /*display table-footer-group;*/ /*vertical-align middle;*/ } table tr{ /*vertical-align middle;*/ } td{ /*display table-cell;*/ /*vertical-align inherit;*/ /*text-align inherit; */ /*padding 3px;*/ /*border 1px solid #999;*/ } th{ /*display table-cell;*/ /*vertical-align inherit;*/ /*font-weight bold;*/ /*padding 3px;*/ /*border 1px solid #999;*/ } q before{ /*content open-quote;*/ } q after{ /*content close-quote;*/ } b, strong{ /*font-weight bolder;*/ } i, cite, em, var, dfn{ /*font-style italic;*/ } u, ins{ /*text-decoration underline;*/ } s, strike, del{ /*text-decoration line-through;*/ } sub{ /*vertical-align sub;*/ /*font-size smaller;*/ /*line-height normal;*/ } sup{ /*vertical-align super;*/ /*font-size smaller;*/ /*line-height normal;*/ } nobr{ /*white-space nowrap;*/ } ul{ /*display block;*/ /*list-style-type disc;*/ /*margin 1em 0px;*/ /*padding-left 25px;*/ } ol{ /*display block;*/ /*list-style-type decimal;*/ /*margin 1em 0px;*/ /*padding-left 25px;*/ } li{ /*display list-item;*/ } ul ul, ul ol, ul dl, ol ul, ol ol, ol dl, dl ul, dl ol, dl dl{ /*margin-top 3px;*/ /*margin-bottom 3px;*/ } ol ul, ul ul{ /*list-style-type circle;*/ } ol ol ul, ol ul ul, ul ol ul, ul ul ul{ /*list-style-type square;*/ } hr{ /*display block;*/ /*height 1px;*/ /*border 1px 0;*/ /*margin 0.5em auto 0.5em auto;*/ } /****/ blockquote, pre{ /*background url(/common/_img/skin/037flower/menubg.gif) repeat-x bottom left #f4f4f4;*/ /*border-bottom 1px solid #d8d8d8;*/ /*border-left 4px solid #ccc;*/ /*border-right 1px solid #d8d8d8;*/ /*border-top 1px solid #d8d8d8;*/ /*color #505050;*/ /*padding 7px 7px 7px 11px;*/ } blockquote{ /*font-size 1.1em;*/ /*line-height 1.3em;*/ } blockquote{ /*border-left-color #5ebbda;*/ } pre{ /*border-left-color #eb72fd;*/ } /**** Tables and forms ****/ table{ /*border 1px solid #d8d8d8;*/ /*border-collapse collapse;*/ /*line-height 1.3em;*/ /*smargin 0 0 16px;*/ /*padding 0px;*/ } caption{ /*font-size 1.5em;*/ /*font-weight 400;*/ /*margin 0px;*/ /*padding 6px 0px 8px;*/ /*text-align left;*/ } th{ /*background url(/common/_img/skin/037flower/menubg2.gif) repeat-x bottom left #eaeaea;*/ /*color #505050;*/ /*padding 7px;*/ /*text-align left;*/ /*border none;*/ /*border-right 1px solid #eaeaea;*/ } tr{ /*border none;*/ } td{ /*background url(/common/_img/skin/037flower/menubg.gif) repeat-x bottom left #f4f4f4;*/ /*color #303030;*/ /*font-size 0.9em;*/ /*padding 7px;*/ /*text-align left;*/ /*border none;*/ /*border-right 1px solid #eaeaea;*/ } input, textarea{ /*border 1px solid #ccc;*/ /*font-size 1em;*/ /*margin 0px;*/ /*padding 4px;*/ } label{ /*margin 2px;*/ } /*****/ #tarea_wiki, .cmd_backup{ /*max-width 520px;*/ } pre.diff{ /*background #fff;*/ /*border 1px solid #999;*/ /*color #333;*/ } #contents .edit img{ /*background none;*/ /*border none;*/ /*display inline;*/ /*margin 5px 0px 0px 0px;*/ /*padding 0px;*/ } #menubar .plugin_comment{ /*width 180px;*/ } #menubar .plugin_comment input{ /*width 95px;*/ } #atwiki-jp-bg1{ /*height 250px;*/ } /**** Original open source design by Andreas Viklund - http //andreasviklund.com Released through OSWD.org ****/ (since 2022/01/12)
https://w.atwiki.jp/parepan/pages/16.html
前提として、HTTPDはapache2 / DBはPostgersqlを使用する事とします。 1.解凍 tar xvfz php-5.2.4.tar.gz cd php-5.2.4.tar.gz 2.コンパイル インストール # ./configure --disable-debug --with-apxs2=/usr/local/apache2/bin/apxs --with-iconv --enable-mbstring --enable-zend-multibyte --with-pgsql=/usr/local/pgsql --with-zlib ※「--with-zlib」はFPDFを利用する場合に必要となります。 「libxml2」ってのが引っかかった. インストール直後の状態だと”./configure”の時にlibxml2のバージョンが古いとかで以下のようなエラーが表示された. Configuring extensions checking whether to enable LIBXML support... yes checking libxml2 install dir... no configure error libxml2 version 2.5.10 or greater required. libxml2最新版のrpmは”ftp //xmlsoft.org/”で入手可能. 必要なパッケージは ・libxml2-2.6.11-1.i386.rpm ・libxml2-devel-2.6.11-1.i386.rpm ・libxml2-python-2.6.11-1.i386.rpm です。その時によってバージョンは違いますので、都度、最適バージョンを選択下さい。 パッケージのアップデート # rpm -Uvh libxml2-* 警告 libxml2-2.6.11-1.i386.rpm V3 DSA signature NOKEY, key ID de95bc1f Preparing... ########################################### [100%] 1 libxml2 ########################################### [ 33%] 2 libxml2-devel ########################################### [ 67%] 3 libxml2-python ########################################### [100%] これさえ気をつければインストールに関しては4系と同じなんじゃないかと. 以下のメッセージが表示されればOK -------------------------------------------------------------------------------------- +--------------------------------------------------------------------+ | 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 --- 結構時間がかかります。 # make test --- 結構時間がかかります。 # make install 3.PHPの設定ファイルをコピーします。 # cp php.ini-dist /usr/local/lib/php.ini # cp /usr/local/src/php-5.3.1/php.ini-production /usr/local/lib/php.ini -- 5.3.1の場合 4.ApacheでPHPを使用する設定をします #vi /usr/local/apache2/conf/httpd.conf 自動的に追加されている箇所もあります。 LoadModule php5_module libexec/libphp5.so←LoadModuleの最後に追記する。 -------------------------------------------------------------------------------------- DirectoryIndex index.html index.php index.html.var←index.phpを追記する。 -------------------------------------------------------------------------------------- IfModule mod_php5.c ←以下の三行を追加 AddType application/x-httpd-php .phtml .php /IfModule -------------------------------------------------------------------------------------- 5.apache2の設定テスト # /usr/local/apache2/bin/apachectl configtest 5-1.fedora7にてconfigtestでSyntax errorが発生 [エラー内容は] Cannot load /.../libphp5.so into server /.../libphp5.so cannot restore segment prot after reloc Permission denied [原因] SELinuxのセキュリティ制限にてエラーとなっている模様 [対策方法] /etc/sysconfig/selinuxの修正 ----------------------------------------- SELINUX=enforcing --修正前 SELINUX=disabled --修正後 ----------------------------------------- 修正後にサーバを再起動してapacheのテストを実行したら成功しました。 6.apache2の再起動 # /usr/local/apache2/bin/apachectl stop # /usr/local/apache2/bin/apachectl start ※ apachectl restartだと設定が反映しない場合がありましたので、他への影響がなければ stop start で再起動したほうがよい。 7.テスト 下記PHPソース作成・起動し、Infomationが表示されれぱOKです。 ? phpinfo(); ? ---------------------------
https://w.atwiki.jp/m_shige1979/pages/1582.html
phpenvをインストールしてバージョン単位に管理 概要 phpenvというツールをインストールしてphpをインストーしたバージョン単位に切り替えられるようにする 手順 phpenvをインストール # phpenvをインストール [root@localhost ~]# cd [root@localhost ~]# curl https //raw.github.com/CHH/phpenv/master/bin/phpenv-install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 101 2833 101 2833 0 0 4834 0 -- -- -- -- -- -- -- -- -- 13685 Installing phpenv in /root/.phpenv remote Counting objects 1715, done. remote Compressing objects 100% (716/716), done. remote Total 1715 (delta 1112), reused 1516 (delta 967) Receiving objects 100% (1715/1715), 251.09 KiB | 151 KiB/s, done. Resolving deltas 100% (1112/1112), done. Success. [root@localhost ~]# 環境変数に設定 [root@localhost ~]# echo export PATH="$HOME/.phpenv/bin $PATH" ~/.bash_profile [root@localhost ~]# echo eval "$(phpenv init -)" ~/.bash_profile 環境設定の再ロード [root@localhost ~]# source ~/.bash_profile インストール場所の確認 [root@localhost ~]# which phpenv /root/.phpenv/bin/phpenv [root@localhost ~]# コマンドを叩いて確認 [root@localhost ~]# phpenv rbenv 0.4.0-65-gff23666 Usage rbenv command [ args ] Some useful rbenv commands are commands List all available rbenv commands local Set or show the local application-specific Ruby version global Set or show the global Ruby version shell Set or show the shell-specific Ruby version rehash Rehash rbenv shims (run this after installing executables) version Show the current Ruby version and its origin versions List all Ruby versions available to rbenv which Display the full path to an executable whence List all Ruby versions that contain the given executable See `rbenv help command for information on a specific command. For full documentation, see https //github.com/sstephenson/rbenv#readme [root@localhost ~]# php-buildのインストール [root@localhost ~]# mkdir -p /root/.phpenv/plugins [root@localhost ~]# cd /root/.phpenv/plugins [root@localhost plugins]# git clone git //github.com/CHH/php-build.git Initialized empty Git repository in /root/.phpenv/plugins/php-build/.git/ remote Counting objects 1817, done. remote Compressing objects 100% (754/754), done. remote Total 1817 (delta 946), reused 1751 (delta 892) Receiving objects 100% (1817/1817), 258.57 KiB | 224 KiB/s, done. Resolving deltas 100% (946/946), done. [root@localhost plugins]# curl https //raw.github.com/hnw/php-build/plugin-to-chh-phpenv/bin/rbenv-install php-build/bin/rbenv-install % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 112 560 112 560 0 0 1429 0 -- -- -- -- -- -- -- -- -- 2403 [root@localhost plugins]# 実行権限を付与 [root@localhost plugins]# chmod 755 php-build/bin/rbenv-install インストールするものを確認 [root@localhost plugins]# phpenv install usage phpenv install VERSION Available versions 5.2.17 5.3.10 5.3.11 5.3.11RC1 5.3.11RC2 5.3.12 5.3.13 5.3.14 5.3.15 5.3.16 5.3.17 5.3.18 5.3.19 5.3.19RC1 5.3.2 5.3.20 5.3.20RC1 5.3.21 5.3.22 5.3.23 5.3.24 5.3.25 5.3.26 5.3.27 5.3.3 5.3.6 5.3.8 5.3.9 5.3.9RC3 5.3.9RC4 5.3snapshot 5.4.0 5.4.0RC1 5.4.0RC2 5.4.0RC3 5.4.0RC4 5.4.0RC5 5.4.0RC6 5.4.0RC7 5.4.0RC8 5.4.0alpha3 5.4.0beta1 5.4.0beta2 5.4.1 5.4.10 5.4.10RC1 5.4.11 5.4.12 5.4.13 5.4.14 5.4.15 5.4.16 5.4.17 5.4.18 5.4.19 5.4.1RC1 5.4.1RC2 5.4.2 5.4.20 5.4.3 5.4.4 5.4.5 5.4.6 5.4.7 5.4.8 5.4.9 5.4.9RC1 5.4snapshot 5.5.0 5.5.0RC1 5.5.0RC2 5.5.0RC3 5.5.0alpha1 5.5.0alpha2 5.5.0alpha3 5.5.0alpha4 5.5.0alpha5 5.5.0alpha6 5.5.0beta1 5.5.0beta2 5.5.0beta3 5.5.0beta4 5.5.1 5.5.2 5.5.3 5.5.4 5.5snapshot [root@localhost plugins]# 依存するモジュールをインストール [root@localhost plugins]# yum --enablerepo=epel install re2c [root@localhost plugins]# yum --enablerepo=epel install libmcrypt [root@localhost plugins]# yum --enablerepo=epel install libmcrypt-devel [root@localhost plugins]# yum install libxml2-devel [root@localhost plugins]# yum install bison [root@localhost plugins]# yum install bison-devel [root@localhost plugins]# yum install openssl-devel [root@localhost plugins]# yum install curl-devel [root@localhost plugins]# yum install libjpeg-devel [root@localhost plugins]# yum install libpng-devel [root@localhost plugins]# yum install libmcrypt-devel [root@localhost plugins]# yum install readline-devel [root@localhost plugins]# yum install libtidy-devel [root@localhost plugins]# yum install libxslt-devel [root@localhost plugins]# yum install httpd-devel [root@localhost plugins]# yum install enchant-devel [root@localhost plugins]# yum install libXpm [root@localhost plugins]# yum install libXpm-devel [root@localhost plugins]# yum install freetype-devel [root@localhost plugins]# yum install t1lib t1lib-devel [root@localhost plugins]# yum install gmp-devel [root@localhost plugins]# yum install libc-client-devel [root@localhost plugins]# yum install libicu-devel [root@localhost plugins]# yum install oniguruma-devel [root@localhost plugins]# yum install net-snmp [root@localhost plugins]# yum install net-snmp-devel [root@localhost plugins]# yum install bzip2-devel インストールログがたくさんですけど省略します phpの5.3.27をインストール 「vim /root/.phpenv/plugins/php-build/share/php-build/definitions/5.3.27」で編集 configure_option "--with-apxs2=/usr/sbin/apxs --disable-fpm --enable-fileinfo --enable-hash --enable-json --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2 --enable-ctype --with-iconv --enable-ftp --with-gettext --enable-mbstring --with-onig=/usr --with-pcre-regex --with-mysql=mysqlnd --with-mysql-sock=/tmp/mysql.sock --enable-phar --enable-shmop --enable-sockets --enable-simplexml --enable-dom --with-libxml-dir=/usr --enable-tokenizer --with-zlib --with-kerberos=/usr --with-openssl=/usr --enable-soap --enable-zip --with-mhash=yes --without-mm --with-enchant=/usr --with-zlib-dir=/usr --with-gd --enable-gd-native-ttf --with-gmp=/usr --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6 --with-png-dir=/usr --with-freetype-dir=/usr --with-imap=/usr --with-imap-ssl --enable-intl --with-t1lib=/usr --with-mcrypt=/usr --with-snmp=/usr" install_package "http //php.net/distributions/php-5.3.27.tar.bz2" install_pyrus install_xdebug "2.2.3" インストール実行 [root@localhost ~]# phpenv install 5.3.27 [Info] Loaded apc Plugin. [Info] Loaded pyrus Plugin. [Info] Loaded xdebug Plugin. [Info] Loaded xhprof Plugin. [Info] php.ini-production gets used as php.ini [Info] Building 5.3.27 into /root/.phpenv/versions/5.3.27 [Downloading] http //php.net/distributions/php-5.3.27.tar.bz2 [Preparing] /tmp/php-build/source/5.3.27 [Compiling] /tmp/php-build/source/5.3.27 [Pyrus] Downloading from http //pear2.php.net/pyrus.phar [Pyrus] Installing executable in /root/.phpenv/versions/5.3.27/bin/pyrus [XDebug] Downloading http //xdebug.org/files/xdebug-2.2.3.tgz [XDebug] Compiling in /tmp/php-build/source/xdebug-2.2.3 [XDebug] Installing XDebug configuration in /root/.phpenv/versions/5.3.27/etc/conf.d/xdebug.ini [XDebug] Cleaning up. [Info] The Log File is not empty, but the Build did not fail. Maybe just warnings got logged. You can review the log in /tmp/php-build.5.3.27.20131005122333.log [Success] Built 5.3.27 successfully. [root@localhost ~]# モジュールを退避する [root@localhost ~]# mv /etc/httpd/modules/libphp5.so /root/.phpenv/versions/5.3.27/ [root@localhost ~]# phpの5.4.20をインストール 「vim /root/.phpenv/plugins/php-build/share/php-build/definitions/5.4.20」で編集 configure_option "--with-apxs2=/usr/sbin/apxs --enable-fpm --enable-fileinfo --enable-hash --enable-json --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2 --enable-ctype --with-iconv --enable-ftp --with-gettext --enable-mbstring --with-onig=/usr --with-pcre-regex --with-mysql=mysqlnd --with-mysql-sock=/tmp/mysql.sock --enable-phar --enable-shmop --enable-sockets --enable-simplexml --enable-dom --with-libxml-dir=/usr --enable-tokenizer --with-zlib --with-kerberos=/usr --with-openssl=/usr --enable-soap --enable-zip --with-mhash=yes --without-mm --with-enchant=/usr --with-zlib-dir=/usr --with-gd --enable-gd-native-ttf --with-gmp=/usr --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6 --with-png-dir=/usr --with-freetype-dir=/usr --with-imap=/usr --with-imap-ssl --enable-intl --with-t1lib=/usr --with-mcrypt=/usr --with-snmp=/usr" install_package "http //php.net/distributions/php-5.4.20.tar.bz2" install_pyrus install_xdebug "2.2.3" インストール実行 [root@localhost ~]# phpenv install 5.4.20 [Info] Loaded apc Plugin. [Info] Loaded pyrus Plugin. [Info] Loaded xdebug Plugin. [Info] Loaded xhprof Plugin. [Info] php.ini-production gets used as php.ini [Info] Building 5.4.20 into /root/.phpenv/versions/5.4.20 [Downloading] http //php.net/distributions/php-5.4.20.tar.bz2 [Preparing] /tmp/php-build/source/5.4.20 [Compiling] /tmp/php-build/source/5.4.20 [Pyrus] Downloading from http //pear2.php.net/pyrus.phar [Pyrus] Installing executable in /root/.phpenv/versions/5.4.20/bin/pyrus [XDebug] Downloading http //xdebug.org/files/xdebug-2.2.3.tgz [XDebug] Compiling in /tmp/php-build/source/xdebug-2.2.3 [XDebug] Installing XDebug configuration in /root/.phpenv/versions/5.4.20/etc/conf.d/xdebug.ini [XDebug] Cleaning up. [Info] The Log File is not empty, but the Build did not fail. Maybe just warnings got logged. You can review the log in /tmp/php-build.5.4.20.20131005124559.log [Success] Built 5.4.20 successfully. [root@localhost ~]# モジュールを退避する [root@localhost ~]# mv /etc/httpd/modules/libphp5.so /root/.phpenv/versions/5.4.20/ [root@localhost ~]# phpの5.5.4をインストール 「vim /root/.phpenv/plugins/php-build/share/php-build/definitions/5.5.4」で編集 configure_option "--with-apxs2=/usr/sbin/apxs --enable-fpm --enable-fileinfo --enable-hash --enable-json --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2 --enable-ctype --with-iconv --enable-ftp --with-gettext --enable-mbstring --with-onig=/usr --with-pcre-regex --with-mysql=mysqlnd --with-mysql-sock=/tmp/mysql.sock --enable-phar --enable-shmop --enable-sockets --enable-simplexml --enable-dom --with-libxml-dir=/usr --enable-tokenizer --with-zlib --with-kerberos=/usr --with-openssl=/usr --enable-soap --enable-zip --with-mhash=yes --without-mm --with-enchant=/usr --with-zlib-dir=/usr --with-gd --enable-gd-native-ttf --with-gmp=/usr --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6 --with-png-dir=/usr --with-freetype-dir=/usr --with-imap=/usr --with-imap-ssl --enable-intl --with-t1lib=/usr --with-mcrypt=/usr --with-snmp=/usr" install_package "http //www.php.net/distributions/php-5.5.4.tar.bz2" install_pyrus install_xdebug "2.2.3" enable_builtin_opcache インストール実行 [root@localhost ~]# phpenv install 5.5.4 [Info] Loaded apc Plugin. [Info] Loaded pyrus Plugin. [Info] Loaded xdebug Plugin. [Info] Loaded xhprof Plugin. [Info] php.ini-production gets used as php.ini [Info] Building 5.5.4 into /root/.phpenv/versions/5.5.4 [Downloading] http //www.php.net/distributions/php-5.5.4.tar.bz2 [Preparing] /tmp/php-build/source/5.5.4 [Compiling] /tmp/php-build/source/5.5.4 [Pyrus] Downloading from http //pear2.php.net/pyrus.phar [Pyrus] Installing executable in /root/.phpenv/versions/5.5.4/bin/pyrus [XDebug] Downloading http //xdebug.org/files/xdebug-2.2.3.tgz [XDebug] Compiling in /tmp/php-build/source/xdebug-2.2.3 [XDebug] Installing XDebug configuration in /root/.phpenv/versions/5.5.4/etc/conf.d/xdebug.ini [XDebug] Cleaning up. [Info] Enabling Opcache... [Info] Done [Info] The Log File is not empty, but the Build did not fail. Maybe just warnings got logged. You can review the log in /tmp/php-build.5.5.4.20131005130728.log [Success] Built 5.5.4 successfully. [root@localhost ~]# モジュールを退避する [root@localhost ~]# mv /etc/httpd/modules/libphp5.so /root/.phpenv/versions/5.5.4/ [root@localhost ~]# apacheの設定を変更(vim /etc/httpd/conf/httpd.conf) #LoadModule php5_module /usr/lib64/httpd/modules/libphp5.so ←ここをコメントアウト 新しく拡張モジュールとして「vim /etc/httpd/conf.d/php.conf」で定義ファイルを作成 # # PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically generated webpages. # LoadModule php5_module modules/libphp5.so # # Cause the PHP interpreter to handle files with a .php extension. # AddHandler php5-script .php AddType text/html .php # # Add index.php to the list of files that will be served as directory # indexes. # DirectoryIndex index.php # # Uncomment the following line to allow PHP to pretty-print .phps # files as PHP source code # #AddType application/x-httpd-php-source .phps PHP(cli)のバージョンの確認 [root@localhost ~]# phpenv rehash [root@localhost ~]# php -v rbenv php command not found The `php command exists in these Ruby versions 5.3.27 5.4.20 5.5.4 [root@localhost ~]# ※「phpenv rehash」を初回に実行 ※まだ、切り替えていない場合はインストールしたバージョンのリストを表示する とりあえず、5.5.4に切り替え [root@localhost ~]# phpenv global 5.5.4 [root@localhost ~]# php -v PHP 5.5.4 (cli) (built Oct 5 2013 13 22 14) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans [root@localhost ~]# apacheなどで切り替えられるようにphpenv-apache-versionインストール [root@localhost ~]# git clone https //github.com/garamon/phpenv-apache-version ~/.phpenv/plugins/phpenv-apache-version Initialized empty Git repository in /root/.phpenv/plugins/phpenv-apache-version/.git/ remote Counting objects 36, done. remote Compressing objects 100% (27/27), done. remote Total 36 (delta 10), reused 31 (delta 5) Unpacking objects 100% (36/36), done. [root@localhost ~]# 確認用のサンプルスクリプトを作成 [root@localhost ~]# vim /var/www/html/info.php ---- ?php phpinfo(); ---- 切り替え確認 5.5.4に切り替え [root@localhost ~]# phpenv apache-version 5.5.4 copy /root/.phpenv/versions/5.5.4/libphp5.so to /etc/httpd/modules Restarting apache... Stopping httpd [ OK ] Starting httpd AH00558 httpd Could not reliably determine the server s fully qualified domain name, using localhost.localdomain. Set the ServerName directive globally to suppress this message [ OK ] [root@localhost ~]# phpinfo 5.4.20に切り替え [root@localhost ~]# phpenv apache-version 5.4.20 copy /root/.phpenv/versions/5.4.20/libphp5.so to /etc/httpd/modules Restarting apache... Stopping httpd [ OK ] Starting httpd AH00558 httpd Could not reliably determine the server s fully qualified domain name, using localhost.localdomain. Set the ServerName directive globally to suppress this message [ OK ] [root@localhost ~]# phpinfo
https://w.atwiki.jp/runnershigh/
此処は管理人の藤原惣一郎、 による自己満足の小説サイトです。 また、バトル・ロワイヤル(著・高見広春)の二次元もの(オリバト)を主として運営しております。その為、グロ表現・死ネタをたいぶ取り扱っています。 ○二次元創作が苦手・嫌いな方 ●グロが苦手・嫌いな方 ○死ネタが苦手・嫌いな方 ●パロロワもの(オリバト)が苦手・嫌いな方 その他、嫌悪感を感じる方は観覧はご遠慮下さい。 もしも万が一に気分を害されたとしても、こちら側は一切の責任を取れません。 観覧は全て自己責任でお願い致します。勿論苦情の方も受けつけられないのでご了承下さい。 それでは大丈夫な方のみ下の“ENTER”という文字からお入り下さい。 ENTER
https://w.atwiki.jp/knowledge_library/pages/83.html
apacheインストール apache概要 httpd.conf動作環境の設定(Global Enviroment) Mainサーバに関する主要な設定 ディレクトリアクセスに関する設定 ログに関する設定 エイリアスの設定 アクセス制御に関する設定 apacheインストール yum -y install httpd mod_ssl apache概要 Service Name httpd Protocol and port 80/TCP , 443/TCP SELinux Module apache 2.1.2 Deamon Program /usr/sbin/httpd Configuration files /etc/httpd/conf/httpd.conf, /etc/httpd/conf.d/*.conf Pid file /var/run/httpd.pid Lock file /var/lock/subsys/httpd Control script /etc/init.d/httpd Script parameters start stop restart condrestart reload status fullstatas graceful help configtest Startup 2 3 4 5/85 15 httpd.conf 動作環境の設定(Global Enviroment) ServerTokens OS #SERVERレスポンスヘッダ ServerRoot "/etc/httpd" #設定ファイルのパス PidFile run/httpd.pid #プロセスIDファイルの指定 TimeOut 60 #タイムアウト時間 rest(GET,POST,PUT,DELETE) KeepAlive Off #1回のTCPセッションで、複数のHTTPリクエストを処理させる MaxKeepAliveRequests 100 #1回のTCPセッションで受け付ける事の出来るリクエスト数 KeepAliveTimeout 15 #TCPセッションを切断せずに次のHTTPリクエストを待つ時間 IfModule prefork.c #MPM prefockの設定 StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 /IfModule Listen 80 #待機するアドレス/ポートの設定 LoadModule #モジュールの使用に関する設定 Include conf.d/*.conf #他ファイルの読み込みに関する設定 #ExtendedStatus On #ステータス情報の使用の設定 User apache #プロセス所有者 Group apache Mainサーバに関する主要な設定 ServerAdmin root@localhost #サーバ管理者の指定 #ServerName www.example.com 80 #サーバ名の指定 UseCanonicalName Off #サーバ名の指定 Off/On/Dns DocumentRoot "/var/www/html" #ドキュメントルートの指定 ServerSignature On/Off/Email #サーバが生成するドキュメントフッターの設定 ディレクトリアクセスに関する設定 UserDir disabled #ユーザが公開するディレクトリの指定 disabled|enabled #UserDir public_html DirectoryIndex index.html index.html.var #インデックスファイルの指定 *.varファイルを利用する事でブラウザの指定する言語に併せたページを表示する事が可能です ログに関する設定 HostnameLookups Off #ホスト名解決の設定 アクセスログに記録する際、クライアントのIPアドレスから,DNSに問い合わせて得られたホスト名で記録するかを指定。 On|Off|Double #EnableMMAP off|on #メモリマッピングの設定 #EnableSendfile off|on #Sendfileの設定 エラーログに関する設定 ErrorLog logs/error_log LogLevel warn|emeg|alert|crit|error|warn|notice|info|debug アクセスログに関する設定 combined(複合型),common(基本型),referer(REFEREおよび、AGENTのみ) LogFormat "%h %l %u %t \"%r\" % s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" % s %b" common LogFormat "%{Referer}i - %U" referer LogFormat "%{User-agent}i" agent #LogFormat "%h %l %u %t \"%r\" % s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio #CustomLog logs/access_log common #CustomLog logs/referer_log referer #CustomLog logs/agent_log agent CustomLog logs/access_log combined エイリアスの設定 Alias /icons/ "/var/www/icons/" #エイリアスの指定 Directory "/var/www/icons" Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory IfModule mod_dav_fs.c # Location of the WebDAV lock database. DAVLockDB /var/lib/dav/lockdb /IfModule ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" #スクリプトエイリアスの指定 Directory "/var/www/cgi-bin" AllowOverride None Options None Order allow,deny Allow from all /Directory IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8 #インデックス表示の書式設定 アイコン情報の指定 AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* 挿入ファイルの指定 ReadmeName README.html HeaderName HEADER.html 無視するファイルの指定 IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t MIME言語タイプとサフィックスの対応付け AddLanguage ca .ca AddLanguage cs .cz .cs LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW ForceLanguagePriority Prefer Fallback 文字コードとサッフィクスの対応付け AddDefaultCharset UTF-8 MIMEタイプとサフィックスの対応付け #AddType application/x-tar .tgz ハンドラとサフィックスの対応付け #AddHandler cgi-script .cgi サーバ応答のフィルタの対応付け AddOutputFilter INCLUDES .shtml エラードキュメントの設定 IfModule mod_negotiation.c IfModule mod_include.c Directory "/var/www/error" AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback /Directory # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var /IfModule /IfModule アクセス制御に関する設定 Directory / #ディレクトリ単位のアクセス制御 Options FollowSymLinks #制御オプション AllowOverride All Deny from All /Directory Directory "/var/www/html" Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all /Directory Options None 全て無効にする All 全て有効にする ExecCGI CGIプログラムの実行を許可する FollowSymLinks シンボリックリンクがあるとき、それを辿る事を許可する Includes SSIを許可する IncludesNOEXEC SSIを許可するが、#exec,#cmd,#includeによるプログラムの実行は禁止する Indexes ディレクトリインデックスの作成を許可する MultiViews Content negotiated MultiViewsを許可する SymLinksOwnerMatch シンボリックリンクとリンク先が同じ所有車である場合のみ、それを辿る事を許可する AllowOverride None オーバライドを無効 All すべて有効 AuthConfig 認証に関するディレクティブを有効にする。対象のディレクティブは、AuthDBMUserFile,AuthDBMGroupFile,AuthGroupFile,AuthName,AuthTypeなど FileInfo ドキュメントタイプを指定するディレクティブを有効にする。 Indexes ディレクトリインデックスを制御するディレクティブを有効にする Limit アクセス制御を行うディレクティブを有効にする Options 機能を制御するディレクティブを有効にする
https://w.atwiki.jp/arduino/pages/23.html
(2013.12.2更新) 『外付けAVRライタ無しでBootloaderを書き込む』 http //www.geocities.jp/arduino_diecimila/bootloader/ http //www.geocities.jp/arduino_diecimila/bootloader/index_old.html をMacでやりたい。 環境は、 Arduino2009 macbook OSX 10.4.11 - 10.9 (2013.12.2更新) です。 ドライバの準備 ダウンロード http //www.ftdichip.com/Drivers/D2XX.htm http //www.ftdichip.com/Drivers/D2XX/MacOSX/UniBin/Universal%20D2XX0.1.6.dmg(古い) http //www.ftdichip.com/Drivers/D2XX/MacOSX/D2XX1.2.2.dmg (2013.12.2更新) インストール ReadMe.rtfに従ってインストールする。 (libftd2xx.0.1.6.dylibを/usr/local/libにコピー。 libftd2xx.0.1.6.dylib - libftd2xx.dylib にシンボリックリンク。 ftd2xx.hとWinTypes.hを/usr/local/includeにコピー。) % ls -l /usr/local/lib/libftd2xx* -rwxr-xr-x 1 root wheel 212748 2 24 01 47 /usr/local/lib/libftd2xx.0.1.6.dylib lrwxr-xr-x 1 root wheel 36 2 24 01 50 /usr/local/lib/libftd2xx.dylib - /usr/local/lib/libftd2xx.0.1.6.dylib % ls -l /usr/local/include/(ftd*|Win*) -rwxr--r-- 1 root wheel 2230 2 24 01 49 /usr/local/include/WinTypes.h -rwxr-xr-x 1 root wheel 23433 2 24 01 48 /usr/local/include/ftd2xx.h テスト (成功例) % cd D2XX/Samples/BitMode % make % ./bitmode ucMode = 0x0 % cd D2XX/Samples/Simple 追記:このフォルダにあるRules.makeを以下のように修正しないとmakeが失敗する。 修正前 CFLAGS=-Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib 修正後 CFLAGS=-Wall -Wextra -L/usr/local/lib -lftd2xx -Wl,-rpath /usr/local/lib % make % ./simple Device 0 Serial Number - A9005bvI Opened device A9005bvI ^CClosed device ↑こうなれば成功なのだが、Arduinoのシリアルドライバがインストールされている場合うまくいかない。 (失敗例) % cd D2XX/Samples/BitMode % ./bitmode FT_Open(0) failed = 3 % cd D2XX/Samples/Simple % ./simple Device 0 Serial Number - A9005bvI Error FT_OpenEx(3), device USBシリアルドライバとD2XXドライバは排他的なので同時に使うことができません。 ターミナルから以下のコマンドでUSBシリアルドライバをアンロード/ロードできます。 sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext sudo kextload /System/Library/Extensions/FTDIUSBSerialDriver.kext (参考 http //arms22.blog91.fc2.com/blog-entry-148.html) 2013.12.2更新:MavericksではOSにFT232RL用のドライバが標準で添付されるようになった。これをunloadするには、 sudo kextunload -bundle com.apple.driver.AppleUSBFTDI を実行する。追記:両方ともunloadする必要がある。 参考[1] http //libusb.6.n5.nabble.com/libusb-Accessing-managed-devices-with-OS-X-td5712602.html 参考[2] http //www.oversea-pub.com/free/environment/2083.html (アンロード&テスト) sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext % cd D2XX/Samples/BitMode % ./bitmode ucMode = 0x0 bitbangを使い終わったらふたたびArduinoを使えるように、 sudo kextload /System/Library/Extensions/FTDIUSBSerialDriver.kext としてUSBシリアルドライバをロードしておきます。 avrdude-6.0.1のビルド avrdude 6.0.1が2013年9月17日にリリースされています。 これはFT232R/245Rのbitbangモードに対応しましたので、以下のserjtagパッチは不要となりました。 (詳しくはhttp //savannah.nongnu.org/forum/forum.php?forum_id=7719を参照) ソースからconfigure;make;(sudo?)make installでビルドして使えるようになりました。 "ft232r"あるいは"ft245r"というプログラマ名で使えます。SPI接続は付属のavrdude.confを見てください。 追記:2014年3月28日に再確認したら、3月12日に6.1がリリースされていました。リリースノートは見つかりませんでしたので、何が変わったのかは不明です。ダウンロードはhttp //download.savannah.gnu.org/releases/avrdude/から。 serjtag-0.3 + avrdude-5.3.1のビルド mkdir mac_bitbang cd mac_bitbang wget http //www.nmj.sakura.ne.jp/suz-avr/serjtag/serjtag-0.3.tar.gz # wget http //www.geocities.jp/arduino_diecimila/bootloader/files/serjtag-0.3.tar.gz wget http //ftp.twaren.net/Unix/NonGNU/avrdude/avrdude-5.3.1.tar.gz # MD5 (avrdude-5.3.1.tar.gz) = 58c2be9f7a864b930ed9e6f1858f5cc7 # MD5 (serjtag-0.3.tar.gz) = 7228de34ad8221598401cd631dd6f55e tar xvzf avrdude-5.3.1.tar.gz tar xvzf serjtag-0.3.tar.gz cd avrdude-5.3.1 patch -p1 ../serjtag-0.3/avrdude-serjtag/src/avrdude-5.3.1-usb910.patch patch -p1 ../serjtag-0.3/avrdude-serjtag/src/avrdude-5.3.1-avr910d.patch patch -p1 ../serjtag-0.3/avrdude-serjtag/src/avrdude-5.3.1-serjtag.patch patch -p1 ../serjtag-0.3/avrdude-serjtag/src/avrdude-5.3.1-ft245r.patch patch -p1 ../serjtag-0.3/avrdude-serjtag/src/avrdude-5.3.1-baud.patch mv ser_posix.c ser_posix.c.ORIG grep -v B3000000 ser_posix.c.ORIG ser_posix.c ./configure CFLAGS="-g -O2 -DSUPPORT_FT245R" LIBS="-lftd2xx" make ./avrdude -v ↑ターミナルにコピペしたらOK 配線 色 Arduino tiny2313V mega88 mega88p 赤 5V Vcc 20 7,20 黒 Gnd GND 10 8,22 青 (X3 2) SCK 19 19 緑 (X3 1) MISO 18 18 黄 (X3 3) MOSI 17 17 白 (X3 4) RESET 1 1 avrdude.confを編集 #arduino diecimila programmer id="diecimila"; desc = "FT232R Synchronous BitBang"; type = ft245r; miso = 3; # CTS X3(1) sck = 5; # DSR X3(2) mosi = 6; # DCD X3(3) reset = 7; # RI X3(4) ; 追加する。 実行 ~/tmp/mac_bitbang/avrdude-5.3.1/avrdude -C ~/tmp/mac_bitbang/avrdude-5.3.1/avrdude.conf -c diecimila -p t2313 -vv -B 4800 ~/tmp/mac_bitbang/avrdude-5.3.1/avrdude -C ~/tmp/mac_bitbang/avrdude-5.3.1/avrdude.conf -c diecimila -p t2313 -vv -B 4800 -U flash w main.hex i リセットが解除されない なんかリセットが常にLOWのような気がする。 プルアップ10kを付けてもだめ。 配線を外すと書き込んだプログラムが動き始める。 うごかないときは ReadMe.rtfにヒントがあった。 Q. Cannot open a port even though installation has been successful. A1. This is possibly due to the FTDI serial driver holding the port with your VID and PID. Solution is to uninstall the serial driver (see www.ftdichip.com knowledgebase on how to do this). To completely eradicate the possibility of this occurring in future it is recommended a new VID and PID is used to distinguish between devices. A2. Another possibility is an incorrect VID/PID. Try changing your application to use the FT_SetVIDPID API call to quickly determine if this is the case. http //www.ftdichip.com/Support/Knowledgebase/macosxuninstallingvcp.htm 参考サイト http //www.geocities.jp/arduino_diecimila/bootloader/ http //www.geocities.jp/arduino_diecimila/bootloader/index_old.html http //suz-avr.sblo.jp/article/27131001.html
https://w.atwiki.jp/api_programming/pages/48.html
下位ページ フォント・テキスト フォーム(Form) レイアウト レスポンシブデザイン 画像 色 Content リンク form CSS適用の優先順位 CSSのコメントアウト モバイルサイト用の表示CSS jQuery Mobile 画像のフィルタ 表表をつくる 行をつくる 列をつくる左寄せ、センタリング、右寄せ 要素の表示、非表示 ポップアップ風のメニューを仕込む(主にcssで) エラー時のステータスコード 流行りのUIをコード付きで紹介 ウェブサイトのUIに悩んだときにインスピレーションが受けられるサイト「inspiration ui」 ロゴのジェネレータ Instagram風の写真加工ができるCSSライブラリ「CSSGram」 簡易なチャートグラフを手軽に描けるサイト「BEAM」 200万点以上のアイコンをベクター形式でダウンロードできるサイト「iconshock」 HTMLクイックリファレンス ★スタイルシートリファレンス(目的別) - HTMLクイックリファレンス リンク 新しいウィンドウ(タブ)で開く a href="~" target="_blank" /a form FORM - HTMLクイックリファレンス CSS 適用の優先順位 全体に適用されるものと局所に適用される者では、局所に適用されるものが優先される。#xyz p p#xyz #xyz 上書きされるので、最後に読み込まれたものが適用される。 強制的に優先順位を上げるには !important を付ける p {color red !important;} /*この値が最優先されて有効となる*/ スタイルの優先順位 - HTML クイックリファレンス CSSのコメントアウト /* コメントアウト */ // は使えない(認識する場合もあるらしい) http //monopocket.jp/blog/css/1278/ モバイルサイト用の表示CSS jQuery Mobile Javascript/jQuery Mobile 画像のフィルタ http //migo-media.com/css-filter/ 表 a aa aaa b bb bbb TABLE - ★HTMLタグリファレンス 行をつくる→行の中に列をつくる table tr th ... /th td ... /td /tr tr th ... /th td ... /td /tr /table 表をつくる table ... /table 行をつくる tr ... /tr 列をつくる tr td ... /td /tr 左寄せ、センタリング、右寄せ td align="right" } 要素の表示、非表示 タグはあるけれど、表示はされない、という状態をつくる visiblity display 非表示・使用不可 visiblity - HTMLクイックリファレンス(スタイルシートリファレンス) display - HTMLクイックリファレンス(スタイルシートリファレンス) ポップアップ風のメニューを仕込む(主にcssで) メニューボタン(メニューアイコン)にポップアップルメニューとなるdiv要素を仕込んでおく。そのdiv要素は普段は display none を設定しておく。(もしくはjavascript等でクリックしたときに生成するようにしておく) クリックしたら display block(とか) で表示させる。この時、 レイアウトを崩さないように、position absolute(メニューボタン位置に連動させるなら、親にposition relaltiveも)を仕込む z-index を設定して、他の要素より前に出す。 親要素に overflow hidden が設定してると、親の枠外に飛び出せなくなる。 ので注意する。 エラー時のステータスコード HTTPステータスコード - Wikipedia 流行りのUIをコード付きで紹介 CodeMyUI.com - http //codemyui.com/ ウェブサイトのUIに悩んだときにインスピレーションが受けられるサイト「inspiration ui」 http //inspirationui.com/ ロゴのジェネレータ http //girlsnet.ninpou.jp/logo.html Instagram風の写真加工ができるCSSライブラリ「CSSGram」 http //una.im/CSSgram/ 簡易なチャートグラフを手軽に描けるサイト「BEAM」 BEAM 200万点以上のアイコンをベクター形式でダウンロードできるサイト「iconshock」 iconshock
https://w.atwiki.jp/snagplaces/pages/56.html
最終更新日時:2010年04月30日 (金) 13時32分59秒[編集] はじめに Apache2.2.3になってから、ある程度の仕様変更があったようで、httpd.confの設定が合っていないのか単純にアップグレードしただけでは動作しなくなります。 ここでは、新版になったApacheの基本的な構築を行います。mod-sslの設定はここでは取り上げません。 はじめに インストールPHP関連パッケージ Perl関連パッケージ MySQL関連パッケージ ユーザ作成 FTPアクセス許可 ファイアウォールアクセスの許可 設定ファイルの編集 サービスの起動 自動起動設定 インストール CentOSの基本インストールの状態であれば、Apacheは既にインストール済みなので、関連するパッケージのインストールのみ行います。 PHP関連パッケージ # yum install php php-mbstring 【依存パッケージ:pcp-cli php-common】 Perl関連パッケージ # yum install mod_perl perl-DBD-MySQL 【依存パッケージ:perl-DBD perl-BSD-Resource mysql】 # yum --enablerepo=rpmforge install perl-Jcode MySQL関連パッケージ # yum install mysql-devel mysql-server 【依存パッケージ:e2fsprogs-devel keyutils-libs-devel krb5-devel libselinux-devel libsepol-devel openssl-devel】 [▲上へ] ユーザ作成 Webコンテンツ編集用のユーザを作成します。FTPアクセスできれば十分なので、SSHログインはできない設定にしておきます。 # groupadd www # useradd www -g www -s /sbin/nologin # passwd www HTTPアクセスできるようにパーミッションも変更しておきます。 # chmod 711 /home/www [▲上へ] FTPアクセス許可 ユーザ追加直後はFTPアクセスできない設定になっていますので、アクセス許可できるようにしておきます。 # vi /etc/vsftpd/user_list [▲上へ] ファイアウォールアクセスの許可 FTP設定したときと同様に、WWW(HTTP)アクセスの許可もしておきます。 # setup ※「カスタマイズ」から「www(HTTP)」にチェックを入れる [▲上へ] 設定ファイルの編集 # vi /etc/httpd/conf/httpd.conf 【44行目当たり変更】OS名を表示しない ServerTokens Prod 【200行目あたり追記】phpの認識 AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps 【252行目あたり変更】連絡用メールアドレス ServerAdmin メールアドレス 【266行目あたり変更】サーバ名 ServerName ドメイン名 ポート 【321行目あたり変更】CGI、SSIの許可 Options Includes ExecCGI FollowSymLinks 【328行目あたり変更】.htaccessの許可 AllowOverride All 【282行目あたり変更】ルートアクセス時のパス #DocumentRoot "/home/www/public_html" DocumentRoot "/var/www/html" 【307行目あたり変更】ルートアクセス時の設定 # Directory "/home/www/public_html" Directory "/var/www/html" 【321行目あたり変更】ルートアクセス時に使用できる機能を設定 Options Includes ExecCGI FollowSymLinks Indexes MultiViews 【356行目あたりコメントアウト】ユーザディレクトリの有効 #UserDir disable 【363行目当たり変更】ユーザディレクトリの基本パス UserDir /home/*/public_html 【371行目あたり変更】ユーザディレクトリの設定 Directory /home/*/public_html 【372行目あたり変更】.htaccessの許可 AllowOverride All 【373行目あたり変更】ユーザディレクトリアクセス時に使用できる機能を設定 Options Includes ExecCGI FollowSymLinks Indexes MultiViews 【382行目あたり変更】 /Directory 【392行目あたり変更】ディレクトリアクセス時に強制アクセスするファイル名(左から優先) DirectoryIndex index.htm index.html index.cgi index.php 【486行目あたり変更】長いURIはログに記録しない LogFormat "%h %l %u %t \"%!414r\" % s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined 【515行目あたり追記】その他ログに記録させない項目 SetEnvIf Request_URI "default\.ida" no_log SetEnvIf Request_URI "cmd\.exe" no_log SetEnvIf Request_URI "root\.exe" no_log SetEnvIf Request_URI "Admin\.dll" no_log SetEnvIf Request_URI "NULL\.IDA" no_log SetEnvIf Remote_Addr 192.168 no_log SetEnvIf Remote_Addr 127.0.0.1 no_log 【522行目あたり変更】上記以外のログを記録する CustomLog logs/access_log combined env=!no_log 【532行目あたり変更】Apacheのバージョンを表示しない ServerSignature Off 【550行目あたり変更】アイコンディレクトリ一覧を表示しない Options MultiViews 【572行目あたりコメントアウト】CGI専用実行アドレスは使用しない #ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" 【658・659行目あたりコメントアウト】 #ReadmeName README.html #HeaderName HEADER.html 【665行目あたりコメントアウト】 #IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t 【739行目あたり変更】日本語を優先 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 【755行目あたりコメントアウト】 #AddDefaultCharset UTF-8 【786行目あたり変更】実行CGIに.plを追加 AddHandler cgi-script .cgi .pl 【807行目あたり変更】SSIを実行できる拡張子を指定 AddOutputFilter INCLUDES .shtml .htm .html .cgi .php 適当なHTMLやCGIを作成して動作確認してみてください。 [▲上へ] サービスの起動 # service httpd start 自動起動設定 # chkconfig httpd on [▲上へ]
https://w.atwiki.jp/ky1229/pages/55.html
#coments 初期設定 検索するときは「apche2.2」「php5」でやる。 LoadModule php5_module c \php/php5apache2_2.dll がキモで手間取った。 使えるコード WEB制作の覚書 | 外部のCSVファイルをPHPで読み込み、出力させる方法 http //blog.loaferz.com/?eid=159303 ?php $fp = fopen("data.csv", "r"); //CSVファイルのパス $repeat = 10; //表示する件数「10」とすると10行分出力 $count = 1; while ($data = fgetcsv($fp, 10000)) { if ($count $repeat) { break; } //繰り返す部分のソース。この辺は自由にコーディング print EOD a href="$data[0]" $data[1] /a $data[2]・$data[3] br EOD; $count++ ; } fclose ($fp) ? 参考サイト http //php.eweb-design.com/index.html PHP/データベース - eWeb