<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1304394367188228288</id><updated>2024-10-25T06:37:42.291+09:00</updated><category term="cs-cart"/><category term="nginx"/><category term="addon"/><category term="centos"/><category term="chrome"/><category term="eccube"/><category term="facebox"/><category term="monit"/><category term="mysql"/><category term="php"/><category term="phpThumb"/><category term="sakura"/><title type='text'>mep&#39;s memo</title><subtitle type='html'>CS-CartとかEC-CUBEとかPHPとかのメモ</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-376054330629331094</id><published>2013-03-14T09:13:00.001+09:00</published><updated>2013-03-14T09:13:08.673+09:00</updated><title type='text'>Google Readerが2013年7月で終了</title><content type='html'>マジか。。。
乗り換え先探すか、、、</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/376054330629331094/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2013/03/google-reader20137.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/376054330629331094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/376054330629331094'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2013/03/google-reader20137.html' title='Google Readerが2013年7月で終了'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-7623493967998189278</id><published>2012-01-28T11:37:00.004+09:00</published><updated>2012-01-28T11:37:37.258+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><title type='text'>CS-Cart SSLから抜けるとトップページに戻ってしまう</title><content type='html'>CS-Cartの仕様なのかこちらのRewriteRuleの設定を間違っているのか不明だけど「SSL使用ページにアクセスした後はHTTPS接続を維持」にチェックが入っていないと、カートページでカートに入っている商品をクリックしてしまうと商品詳細ページではなくトップページに飛ばされる。&lt;br /&gt;
&lt;br /&gt;
https://〜/index.php?dispatch=checkout.cart&lt;br /&gt;
↓&lt;br /&gt;
カートに入っているサムネイル、商品名のリンクをクリックすると&lt;br /&gt;
https://〜/index.php?dispatch=products.view&amp;amp;product_id=1&lt;br /&gt;
↓&lt;br /&gt;
http://〜/index.php&lt;br /&gt;
&lt;br /&gt;
できれば&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://〜/index.php?dispatch=checkout.cart&lt;br /&gt;
↓&lt;br /&gt;
カートに入っているサムネイル、商品名のリンクをクリックすると&lt;br /&gt;
https://〜/index.php?dispatch=products.view&amp;amp;product_id=1&lt;br /&gt;
↓&lt;br /&gt;
&lt;br /&gt;
http://〜/index.php?dispatch=products.view&amp;amp;product_id=1&lt;br /&gt;
&lt;br /&gt;
となって欲しい・・・&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/7623493967998189278/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart-ssl.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/7623493967998189278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/7623493967998189278'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart-ssl.html' title='CS-Cart SSLから抜けるとトップページに戻ってしまう'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-6010970873959649844</id><published>2012-01-27T13:14:00.001+09:00</published><updated>2012-01-28T11:38:36.574+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><title type='text'>CS-CartをFastCGIで運用するときに</title><content type='html'>個人的なメモ&lt;br /&gt;
&lt;br /&gt;
mod_fastcgiのバージョンが2.4.6の時、&lt;br /&gt;
Apache2+FastCGI(mod_fastcgi)+PHP-FPMの環境で納品書(PDF)をダウンロードすると&lt;br /&gt;
&lt;br /&gt;
FastCGI: comm with server &quot;/var/www/fcgi-bin/php-fpm&quot; aborted: error parsing headers: duplicate header &#39;Content-Type&#39;, referer: ...&lt;br /&gt;
&lt;br /&gt;
とInternal Serverエラーが出る&lt;br /&gt;
&lt;br /&gt;
mod_fastcgiのバグ?らしいのでSnapshot版の&amp;nbsp;&lt;a href=&quot;http://www.fastcgi.com/dist/mod_fastcgi-SNAP-0811090952.tar.gz&quot; target=&quot;_blank&quot;&gt;http://www.fastcgi.com/dist/mod_fastcgi-SNAP-0811090952.tar.gz&lt;/a&gt;&amp;nbsp;と入れ替える。&lt;br /&gt;
mod_fastcgi-SNAP-0910052141.tar.gzの方が新しいようだけど未検証。</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/6010970873959649844/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cartfastcgi.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/6010970873959649844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/6010970873959649844'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cartfastcgi.html' title='CS-CartをFastCGIで運用するときに'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-4036720211654825956</id><published>2012-01-25T21:52:00.000+09:00</published><updated>2012-01-27T18:25:09.672+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><title type='text'>CS-Cart パンくずリストをリッチスニペット化</title><content type='html'>skins/basic/customer/common_templates/breadcrumbs.tplを修正&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://support.google.com/webmasters/bin/answer.py?hl=ja&amp;amp;answer=185417&amp;amp;topic=1088474&amp;amp;ctx=topic&quot; target=&quot;_blank&quot;&gt;http://support.google.com/webmasters/bin/answer.py?hl=ja&amp;amp;answer=185417&amp;amp;topic=1088474&amp;amp;ctx=topic&lt;/a&gt;&amp;nbsp;を参考に&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.google.co.jp/webmasters/tools/richsnippets&quot; target=&quot;_blank&quot;&gt;http://www.google.co.jp/webmasters/tools/richsnippets&lt;/a&gt;&amp;nbsp;で確かめる&lt;br /&gt;
&lt;br /&gt;
修正例&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{* $Id$ *}&lt;br /&gt;
&lt;br /&gt;
{if $breadcrumbs &amp;amp;&amp;amp; $breadcrumbs|@sizeof &amp;gt; 1}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;div class=&quot;breadcrumbs&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{strip}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{foreach from=$breadcrumbs item=&quot;bc&quot; name=&quot;bcn&quot; key=&quot;key&quot;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{if $key != &quot;0&quot;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&amp;lt;img src=&quot;{$images_dir}/icons/breadcrumbs_arrow.gif&quot; class=&quot;bc-arrow&quot; border=&quot;0&quot; alt=&quot;&amp;amp;gt;&quot; /&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{/if}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{if $bc.link}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&amp;lt;span itemscope itemtype=&quot;http://data-vocabulary.org/Breadcrumb&quot;&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&amp;lt;a href=&quot;{$bc.link|fn_url}&quot;{if $additional_class} class=&quot;{$additional_class}&quot;{/if} itemprop=&quot;url&quot;&amp;gt;&amp;lt;span itemprop=&quot;title&quot;&amp;gt;{$bc.title|unescape|strip_tags|escape:&quot;html&quot;}&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{else}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;{$bc.title|unescape|strip_tags|escape:&quot;html&quot;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{/if}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{/foreach}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{/strip}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{/if}</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/4036720211654825956/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart_25.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/4036720211654825956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/4036720211654825956'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart_25.html' title='CS-Cart パンくずリストをリッチスニペット化'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-1011423727440362653</id><published>2012-01-20T18:28:00.002+09:00</published><updated>2012-01-27T18:25:18.688+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><title type='text'>CS-Cart PayPal Express Checkoutボタンを日本語にする</title><content type='html'>PayPal Express Checkoutを有効にするとカートページにExpress Checkoutボタン現れる。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
そのままだと英語圏向けのボタン表示なので日本語向けボタンに変更する。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.paypal.com/ja_JP/i/btn/btn_xpressCheckout.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://www.paypal.com/ja_JP/i/btn/btn_xpressCheckout.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
ボタンはハードコーディングされているので payments/paypal_express.php の134行目付近&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;pre&gt;if (!empty($_payment_id) &amp;amp;&amp;amp; !empty($_SESSION[&#39;cart&#39;][&#39;products&#39;]))  {
&lt;span style=&quot;background-color: yellow;&quot;&gt;    $lang = array(
        &#39;EN&#39; =&amp;gt; &#39;en_US&#39;,
        &#39;JP&#39; =&amp;gt; &#39;ja_JP&#39;,
    );
    $lang_code = isset($lang[CART_LANGUAGE]) ? $lang[CART_LANGUAGE] : &#39;en_US&#39;;&lt;/span&gt;
    $checkout_buttons[] = &#39;
        &amp;lt;html&amp;gt;
        &amp;lt;body&amp;gt;
        &amp;lt;br/&amp;gt;
        &amp;lt;form name=&quot;pp_express&quot; action=&quot;&#39;. Registry::get(&#39;config.current_location&#39;) . &#39;/payments/paypal_express.php&quot; method=&quot;post&quot;&amp;gt;
            &amp;lt;input name=&quot;_payment_id&quot; value=&quot;&#39;.$_payment_id.&#39;&quot; type=&quot;hidden&quot; /&amp;gt;
            &amp;lt;input src=&quot;https://www.paypal.com/&lt;span style=&quot;background-color: yellow;&quot;&gt;&#39; . $lang_code . &#39;&lt;/span&gt;/i/btn/btn_xpressCheckout.gif&quot; type=&quot;image&quot; /&amp;gt;
            &amp;lt;input name=&quot;mode&quot; value=&quot;express&quot; type=&quot;hidden&quot; /&amp;gt;
        &amp;lt;/form&amp;gt;
        &amp;lt;/body&amp;gt;
        &amp;lt;/html&amp;gt;&#39;;
&lt;/pre&gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/1011423727440362653/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart-paypal-express-checkout.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/1011423727440362653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/1011423727440362653'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart-paypal-express-checkout.html' title='CS-Cart PayPal Express Checkoutボタンを日本語にする'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-7445271847358375165</id><published>2012-01-20T14:29:00.002+09:00</published><updated>2012-01-27T18:25:30.671+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><title type='text'>CS-Cart 購入画面のコメント欄を削除する</title><content type='html'>skins/basic/customer/addons/my_changes/hooks/checkout/notes.override.tpl&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
{* $Id: customer_notes.tpl 9403 2010-05-07 13:11:06Z klerik $ *}&lt;br /&gt;
&amp;lt;!-- //--&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/7445271847358375165/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart_20.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/7445271847358375165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/7445271847358375165'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart_20.html' title='CS-Cart 購入画面のコメント欄を削除する'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-4644966986073177662</id><published>2012-01-11T20:44:00.001+09:00</published><updated>2012-01-27T18:25:43.078+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><title type='text'>CS-Cart 携帯電話対応アドオンでPHP Noticeエラー</title><content type='html'>携帯電話対応アドオンを有効後、端末でアクセスするとDIR_SKINS定数を再定義するようでNoticeエラーが発生する&lt;br /&gt;
PHP Notice: &amp;nbsp;Constant DIR_SKINS already defined in /var/www/html/config.php on line 41&lt;br /&gt;
if (!defined(DIR_SKINS))という感じでとりあえず回避</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/4644966986073177662/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart-php-notice.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/4644966986073177662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/4644966986073177662'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart-php-notice.html' title='CS-Cart 携帯電話対応アドオンでPHP Noticeエラー'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-4503602480718477240</id><published>2012-01-10T11:44:00.001+09:00</published><updated>2012-01-25T21:37:40.425+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><title type='text'>CS-Cartのタイトルを変更する</title><content type='html'>skins/basic/customer/index.tpl&lt;br /&gt;
&lt;pre&gt;&amp;lt;title&amp;gt;
{if $page_title}
  {$page_title|escape:&quot;html&quot;}
{else}
  {assign var=&#39;breadcrumbs_reverse&#39; value=$breadcrumbs|array_reverse}
  {assign var=&#39;breadcrumbs_reverse_count&#39; value=$breadcrumbs_reverse|count}
  {foreach from=$breadcrumbs_reverse item=i name=&quot;bkt&quot;}
   {if $_REQUEST.dispatch == &#39;products.view&#39;}
    {if $smarty.foreach.bkt.first}{$i.title|unescape|strip_tags|escape:&quot;html&quot;}{/if}
   {else}
    {if !$smarty.foreach.bkt.last}{$i.title$i.title|unescape|strip_tags|escape:&quot;html&quot;}{if $breadcrumbs_reverse_count -1 &amp;gt; $smarty.foreach.bkt.iteration} :: {/if}{/if}
   {/if}
  {/foreach}
{if !$skip_page_title}{if $breadcrumbs_reverse|count &amp;gt; 1} | {/if}{$location_data.page_title}{/if}
{/if}
&amp;lt;/title&amp;gt;&lt;/pre&gt;
これでカテゴリページは、小カテゴリ :: 大カテゴリ | サイト名&lt;br /&gt;商品ページは、商品名 | サイト名となる。</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/4503602480718477240/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/4503602480718477240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/4503602480718477240'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart.html' title='CS-Cartのタイトルを変更する'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-3408399405629886503</id><published>2012-01-08T16:42:00.001+09:00</published><updated>2012-01-08T16:46:44.117+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><title type='text'>CS-Cart HTMLエディタ「CKEditor」の出力フォーマットを変更する</title><content type='html'>CKEditorの出力ソースをカスタマイズする方法&lt;br /&gt;
CKEditorはデフォルトだとソースを勝手にインデントしたり改行を入れるので、それを制御する。&lt;br /&gt;
/js/editors/ckeditor.editor.js の&amp;nbsp;CKEDITOR.replace(elm.attr(&#39;id&#39;), {}); の次あたり(26行目付近)に&lt;br /&gt;
&lt;pre&gt;CKEDITOR.on(&#39;instanceReady&#39;, function(ev) {
    ev.editor.dataProcessor.writer.indentationChars = &#39;&#39;;
    var tags = [&#39;div&#39;,&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &#39;h1&#39;,&#39;h2&#39;,&#39;h3&#39;,&#39;h4&#39;,&#39;h5&#39;,&#39;h6&#39;,&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;p&#39;,&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;ul&#39;, &#39;ol&#39;, &#39;li&#39;, &#39;dl&#39;, &#39;dt&#39;, &#39;dd&#39;,&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&#39;table&#39;, &#39;tbody&#39;, &#39;tr&#39;, &#39;th&#39;, &#39;td&#39;, &#39;pre&#39;, &#39;address&#39;];
&amp;nbsp; &amp;nbsp;&amp;nbsp;for (var key in tags) {
        ev.editor.dataProcessor.writer.setRules(tags[key], {
            breakAfterOpen : false
        });
    }
});&lt;/pre&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;blockquote&gt;
&lt;/blockquote&gt;
editor.dataProcessor.writer.indentationChars でインデント文字を指定する。タブの場合は\t、スペースの場合は&#39; &#39;、インデントさせない場合は空白。&lt;br /&gt;
editor.dataProcessor.writer.setRules で指定タグで改行させないを指定する。&lt;br /&gt;&lt;a href=&quot;http://cksource.com/forums/viewtopic.php?t=14493&quot;&gt;http://cksource.com/forums/viewtopic.php?t=14493&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/3408399405629886503/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart-htmlckeditor.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/3408399405629886503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/3408399405629886503'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2012/01/cs-cart-htmlckeditor.html' title='CS-Cart HTMLエディタ「CKEditor」の出力フォーマットを変更する'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-3245528452243198060</id><published>2011-11-21T15:14:00.001+09:00</published><updated>2011-11-21T15:26:26.081+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="eccube"/><category scheme="http://www.blogger.com/atom/ns#" term="facebox"/><title type='text'>EC-CUBE 2.11、Google Chromeでfaceboxがズレるのを直す</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaAGkxgvClRhd5p_fUxm_ajNlNgcKgpShHUC7Sneldo4tty8vPGuDipivtSTp9JXMd7U6n5wdvR2kbfnSgo3DwM8n2_97Li_7mIdwwJ-cCrye5hHDIaoUAPf7fDeDQyhtvZhajLBbsXXNp/s1600/facebox-before.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaAGkxgvClRhd5p_fUxm_ajNlNgcKgpShHUC7Sneldo4tty8vPGuDipivtSTp9JXMd7U6n5wdvR2kbfnSgo3DwM8n2_97Li_7mIdwwJ-cCrye5hHDIaoUAPf7fDeDQyhtvZhajLBbsXXNp/s200/facebox-before.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
EC-CUBE 2.11の商品画像を拡大するとGoogle Chrome(Mac)だとfaceboxが右にズレてしまう。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
facebox.cssの#facebox .popupにmin-width:を追加して拡大画像の幅を指定してやると直る。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-3L8My4XSs-k2_wB_86vQWt6zUgnAmI8JavpJf9MN0e7Yh3YiPtPFPp3lUXzd6-dZJuw_7G8terMc0Mp0KKh9kitGGL49M_MGEJwT6AD_fO38Y7oYVlAewQHljCGFITZ9Uml3w2ZuXTAG/s1600/facebox-after.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-3L8My4XSs-k2_wB_86vQWt6zUgnAmI8JavpJf9MN0e7Yh3YiPtPFPp3lUXzd6-dZJuw_7G8terMc0Mp0KKh9kitGGL49M_MGEJwT6AD_fO38Y7oYVlAewQHljCGFITZ9Uml3w2ZuXTAG/s200/facebox-after.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
拡大画像の横幅が500pxであれば、&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
#facebox .popup{&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; position:relative;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; border:3px solid rgba(0,0,0,0);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; -webkit-border-radius:5px;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; -moz-border-radius:5px;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; border-radius:5px;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; -webkit-box-shadow:0 0 18px rgba(0,0,0,0.4);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; -moz-box-shadow:0 0 18px rgba(0,0,0,0.4);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; box-shadow:0 0 18px rgba(0,0,0,0.4);&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp; &lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: yellow; color: red;&quot;&gt;min-width: 500px;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
}&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/3245528452243198060/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2011/11/ec-cube-211google-chromefacebox.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/3245528452243198060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/3245528452243198060'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2011/11/ec-cube-211google-chromefacebox.html' title='EC-CUBE 2.11、Google Chromeでfaceboxがズレるのを直す'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaAGkxgvClRhd5p_fUxm_ajNlNgcKgpShHUC7Sneldo4tty8vPGuDipivtSTp9JXMd7U6n5wdvR2kbfnSgo3DwM8n2_97Li_7mIdwwJ-cCrye5hHDIaoUAPf7fDeDQyhtvZhajLBbsXXNp/s72-c/facebox-before.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-6042526668761933612</id><published>2011-03-21T19:46:00.000+09:00</published><updated>2011-03-21T19:46:08.559+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="monit"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="nginx"/><title type='text'>モニタリングツールの minit をインストールして nginx、MySQL、PHP-FPMを監視する</title><content type='html'>&lt;div&gt;EPEL レポジトリを追加している場合は&lt;/div&gt;&lt;div&gt;# yum install monit&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;EPEL レポジトリの追加は下記。&lt;/div&gt;&lt;div&gt;# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5.5/x86_64/epel-release-1-1.ius.el5.noarch.rpm&lt;/div&gt;&lt;div&gt;# rpm -ivh epel-release-1-1.ius.el5.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
monit の設定ファイル&lt;br /&gt;
# vi /etc/monit.conf&lt;br /&gt;
&lt;br /&gt;
set daemon 60&lt;br /&gt;
set logfile syslog facility log_daemon&lt;br /&gt;
set alert mailaddress&lt;br /&gt;
&lt;br /&gt;
# アラートメールはGmail経由で送信&lt;br /&gt;
set mailserver smtp.gmail.com port 587&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;username &quot;gmail_address&quot; password &quot;gmail_password&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;using tlsv1&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;with timeout 30 seconds&lt;br /&gt;
&lt;br /&gt;
# Include all files from /etc/monit.d/&lt;br /&gt;
include /etc/monit.d/*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MySQL 設定ファイル&lt;br /&gt;
# vi /etc/monit.d/mysqld&lt;br /&gt;
&lt;br /&gt;
check process mysql with pidfile /var/run/mysqld/mysqld.pid&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;start program = &quot;/etc/init.d/mysqld start&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stop program &amp;nbsp;= &quot;/etc/init.d/mysqld stop&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if failed port 3306 protocol mysql&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then restart&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group mysql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
nginx 設定ファイル&lt;br /&gt;
# vi /etc/monit.d/nginx&lt;br /&gt;
&lt;br /&gt;
check process nginx with pidfile /var/run/nginx.pid&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;start program = &quot;/etc/init.d/nginx start&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stop program &amp;nbsp;= &quot;/etc/init.d/nginx stop&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group nginx&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;PHP-FPM 設定ファイル&lt;/div&gt;&lt;div&gt;# vi /etc/monit.d/php-fpm&lt;/div&gt;&lt;div&gt;&lt;div&gt;check process php-fpm with pidfile /var/run/php-fpm/php-fpm.pid&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group nginx&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;start program &quot;/etc/init.d/php-fpm start&quot;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stop program &quot;/etc/init.d/php-fpm stop&quot;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if failed host 127.0.0.1 port 9000&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then restart&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if 5 restarts within 5 cycles&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then timeout&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
# chkconfig monit on&lt;br /&gt;
# /etc/init.d/monit start&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/6042526668761933612/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2011/03/minit-nginxmysqlphp-fpm.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/6042526668761933612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/6042526668761933612'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2011/03/minit-nginxmysqlphp-fpm.html' title='モニタリングツールの minit をインストールして nginx、MySQL、PHP-FPMを監視する'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-6324373653754065486</id><published>2011-03-18T11:10:00.002+09:00</published><updated>2011-03-18T11:11:26.691+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="addon"/><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><title type='text'>CS-Cart ウォーターマーク アドオン</title><content type='html'>商品画像にウォータマークをつけることができるアドオン&lt;br /&gt;
&lt;a href=&quot;http://forum.cs-cart.com/showthread.php?t=23793&quot;&gt;New addon &quot;Watermarks&quot; is available for testing - CS-Cart Community Forums&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
ウォータマークにテキスト、画像を指定することができます。</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/6324373653754065486/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2011/03/cs-cart_18.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/6324373653754065486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/6324373653754065486'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2011/03/cs-cart_18.html' title='CS-Cart ウォーターマーク アドオン'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-8716747061297077432</id><published>2011-03-11T12:56:00.001+09:00</published><updated>2011-03-11T12:56:44.404+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><category scheme="http://www.blogger.com/atom/ns#" term="phpThumb"/><title type='text'>CS-Cart で商品画像にウォーターマークを入れる</title><content type='html'>既に uservoice で&amp;nbsp;&lt;a href=&quot;http://cscart.uservoice.com/forums/40782-professional/suggestions/504485-image-watermark&quot;&gt;image watermark&lt;/a&gt;&amp;nbsp;があるのでそのうち対応してくれそうだけど、&lt;br /&gt;
&lt;a href=&quot;http://phpthumb.sourceforge.net/&quot;&gt;phpThumb&lt;/a&gt; を使えば簡単にできるのでご紹介。&lt;br /&gt;
&lt;br /&gt;
phpThumbを設定、ウォーターマーク画像を用意する。&lt;br /&gt;
拡大画像にウォーターマークを入れたいなら .htaccess に&lt;br /&gt;
RewriteRule ^(.*)images/detailed/(.*) $1phpThumb/phpThumb.php?q=100&amp;amp;src=../images/detailed/$2&amp;amp;&amp;amp;fltr[]=wmi|images/watermark_LRG.png|C|100 [L]&lt;br /&gt;
&lt;br /&gt;
初回のみキャッシュ作成のため、読み込みに時間がかかるというのと&lt;br /&gt;
GD2よりも ImageMagick を使った方が画像が若干綺麗。</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/8716747061297077432/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2011/03/cs-cart.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/8716747061297077432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/8716747061297077432'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2011/03/cs-cart.html' title='CS-Cart で商品画像にウォーターマークを入れる'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-7958470611848577299</id><published>2011-03-01T14:28:00.001+09:00</published><updated>2011-03-01T14:34:24.973+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><category scheme="http://www.blogger.com/atom/ns#" term="nginx"/><title type='text'>CS-Cart on nginx</title><content type='html'>nginx.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;location / {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;root &amp;nbsp; /var/www/html;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;index &amp;nbsp;index.php;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (-f $request_filename) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try_files $uri $uri/ /index.php&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;?sef_rewrite=1&lt;/b&gt;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
nginx は RewriteRule の QSAフラグ と違って何もしなくてもそのまま引数を渡せるみたい。</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/7958470611848577299/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2011/03/cs-cart-on-nginx.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/7958470611848577299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/7958470611848577299'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2011/03/cs-cart-on-nginx.html' title='CS-Cart on nginx'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-820998858593074958</id><published>2011-03-01T11:45:00.000+09:00</published><updated>2011-03-01T11:45:09.366+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cs-cart"/><category scheme="http://www.blogger.com/atom/ns#" term="nginx"/><title type='text'>CS-Cart で Warning: The secure connection check has failed. Check HTTPS settings in config.php file and make sure that SSL certificate is installed on your server. エラーが出たときの対処法</title><content type='html'>&lt;a href=&quot;http://kb2.cs-cart.com/secure-connection-failed&quot; target=&quot;_blank&quot;&gt;Secure connection fails&lt;/a&gt;&amp;nbsp;より&lt;br /&gt;
nginx上のCS-Cart で&lt;br /&gt;
&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #141414; font-family: arial, georgia, arial, verdana, helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 19px;&quot;&gt;Warning: The secure connection check has failed. Check HTTPS settings in config.php file and make sure that SSL certificate is installed on your server.&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;というエラーが出たときは、prepare.php の&lt;br /&gt;
&lt;br /&gt;
if (isset($_SERVER[&#39;HTTPS&#39;]) &amp;amp;&amp;amp; ($_SERVER[&#39;HTTPS&#39;] == &#39;on&#39; || $_SERVER[&#39;HTTPS&#39;] == &#39;1&#39;)) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define(&#39;HTTPS&#39;, true);&lt;br /&gt;
の後に&lt;br /&gt;
&lt;br /&gt;
} elseif ($_SERVER[&#39;SERVER_PORT&#39;]==&#39;443&#39;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;define(&#39;HTTPS&#39;, true);&lt;br /&gt;
を追加する</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/820998858593074958/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2011/03/cs-cart-warning-secure-connection-check.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/820998858593074958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/820998858593074958'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2011/03/cs-cart-warning-secure-connection-check.html' title='CS-Cart で Warning: The secure connection check has failed. Check HTTPS settings in config.php file and make sure that SSL certificate is installed on your server. エラーが出たときの対処法'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1304394367188228288.post-2673683281403201078</id><published>2011-03-01T01:03:00.000+09:00</published><updated>2011-03-01T01:03:40.665+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="nginx"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="sakura"/><title type='text'>さくらのVPSにnginx+PHP 5.3.3+MySQL+PHP-FPM+APCをyumを使ってインストール</title><content type='html'>&lt;a href=&quot;http://rob.olmos.name/2010/08/centos-5-5-php-5-3-3-php-fpm-nginx-rpms/&quot; target=&quot;_blank&quot;&gt;CentOS 5.5 + PHP 5.3.3 + PHP-FPM + APC + nginx (yum RPMs)&lt;/a&gt;を参考に&lt;br /&gt;
&lt;br /&gt;
EPEL、IUS-Communityレポジトリを追加&lt;br /&gt;
# wget&amp;nbsp;http://dl.iuscommunity.org/pub/ius/stable/Redhat/5.5/x86_64/epel-release-1-1.ius.el5.noarch.rpm&lt;br /&gt;
# wget&amp;nbsp;http://dl.iuscommunity.org/pub/ius/stable/Redhat/5.5/x86_64/ius-release-1.0-6.ius.el5.noarch.rpm&lt;br /&gt;
# rpm -ivh&amp;nbsp;epel-release-1-1.ius.el5.noarch.rpm&amp;nbsp;ius-release-1.0-6.ius.el5.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
IUS-Communityレポジトリのバーションが5なので5.5に変更&lt;br /&gt;
#&amp;nbsp;vi /etc/yum.repos.d/ius.repo&lt;br /&gt;
mirrorlist=http://dmirr.iuscommunity.org/mirrorlist?repo=ius-el5&amp;amp;arch=$basearch をコメントアウトして、&lt;br /&gt;
baseurl=http://dl.iuscommunity.org/pub/ius/stable/Redhat/5.5/$basearch を追加&lt;br /&gt;
&lt;br /&gt;
MySQLのインストール&lt;br /&gt;
5.1系&lt;br /&gt;
# yum install&amp;nbsp;mysql51.x86_64&amp;nbsp;mysql51-devel.x86_64&amp;nbsp;mysql51-server.x86_64&lt;br /&gt;
5.5系&lt;br /&gt;
# yum install&amp;nbsp;mysql55.x86_64&amp;nbsp;mysql55-devel.x86_64&amp;nbsp;mysql55-server.x86_64&lt;br /&gt;
&lt;br /&gt;
PHP 5.3とPHP-FPMとAPCのインストール&lt;br /&gt;
# yum install&amp;nbsp;php53u.x86_64 php53u-devel.x86_64 php53u-gd.x86_64 php53u-mbstring.x86_64 php53u-mcrypt.x86_64 php53u-mysql.x86_64 php53u-pdo.x86_64 php53u-pecl-imagick.x86_64&amp;nbsp;php53u-fpm.x86_64&amp;nbsp;php53u-pecl-apc.x86_64&lt;br /&gt;
その他のエクステンションは yum search php53u で&lt;br /&gt;
&lt;br /&gt;
nginxのインストール&lt;br /&gt;
インストールされるバージョンは 0.8.53、0.7系をインストールしたい時は&amp;nbsp;nginx07.x86_64 を指定&lt;br /&gt;
# yum install&amp;nbsp;nginx.x86_64&lt;br /&gt;
&lt;br /&gt;
nginxの設定ファイルを編集&lt;br /&gt;
# vi /etc/nginx/nginx.conf&lt;br /&gt;
&lt;br /&gt;
#location ~ \.php$ { ブロックのコメントアウトを解除&lt;br /&gt;
さらに&lt;br /&gt;
fastcgi_param &amp;nbsp;SCRIPT_FILENAME &amp;nbsp;/scripts$fastcgi_script_name; を&lt;br /&gt;
fastcgi_param &amp;nbsp;SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name; に変更&lt;br /&gt;
&lt;br /&gt;
自動起動の設定&lt;br /&gt;
# chkconfig mysqld on&lt;br /&gt;
#&amp;nbsp;chkconfig php-fpm on&lt;br /&gt;
#&amp;nbsp;chkconfig nginx on&lt;br /&gt;
&lt;br /&gt;
MySQL、PHP-FPM、nginxを起動&lt;br /&gt;
# service mysqld start&lt;br /&gt;
# service&amp;nbsp;php-fpm start&lt;br /&gt;
# service nginx start</content><link rel='replies' type='application/atom+xml' href='http://mepmemo.blogspot.com/feeds/2673683281403201078/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://mepmemo.blogspot.com/2011/03/vpsnginxphp-533mysqlphp-fpmapcyum.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/2673683281403201078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1304394367188228288/posts/default/2673683281403201078'/><link rel='alternate' type='text/html' href='http://mepmemo.blogspot.com/2011/03/vpsnginxphp-533mysqlphp-fpmapcyum.html' title='さくらのVPSにnginx+PHP 5.3.3+MySQL+PHP-FPM+APCをyumを使ってインストール'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>