Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Factory has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/widgets.php on line 405

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_Generic has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-generic.php on line 10

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_AdSense has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-adsense.php on line 26

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_AdSense_Classic has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-adsense-classic.php on line 19

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_AdSense_Ad has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-adsense-ad.php on line 19

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_AdSense_Link has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-adsense-link.php on line 19

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_AdSense_Referral has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-adsense-referral.php on line 19

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_AdBrite has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-adbrite.php on line 20

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_AdGridWork has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-adgridwork.php on line 20

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_Adpinion has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-adpinion.php on line 21

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_AdRoll has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-adroll.php on line 21

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_CJ has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-cj.php on line 20

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_Code has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-code.php on line 19

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_CrispAds has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-crispads.php on line 20

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_ShoppingAds has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-shoppingads.php on line 20

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_YPN has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-ypn.php on line 20

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Ad_WidgetBucks has a deprecated constructor in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/class-widgetbucks.php on line 20

Notice: Undefined index: adsensem-show-ad in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 280

Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/araki/blog.ceed.jp/wp-includes/functions.php on line 3361

Deprecated: Non-static method adsensem::init() should not be called statically in /home/araki/blog.ceed.jp/wp-includes/plugin.php on line 470

Deprecated: Non-static method adsensem::setup_is_valid() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 110

Deprecated: Function create_function() is deprecated in /home/araki/blog.ceed.jp/wp-includes/pomo/translations.php on line 171

Deprecated: Non-static method adsensem::init_widgets() should not be called statically in /home/araki/blog.ceed.jp/wp-includes/plugin.php on line 470

Deprecated: Non-static method adsensem::register_widget() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 145

Notice: Undefined variable: args in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 145

Notice: Undefined variable: _adsensem in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 162

Deprecated: Non-static method adsensem::register_widget() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 151

Notice: Undefined variable: args in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 151

Notice: Undefined variable: _adsensem in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 162

Deprecated: Non-static method adsensem::register_widget() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 151

Notice: Undefined variable: args in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 151

Notice: Undefined variable: _adsensem in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 162

Deprecated: Non-static method adsensem::register_widget() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 151

Notice: Undefined variable: args in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 151

Notice: Undefined variable: _adsensem in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 162

Deprecated: Non-static method adsensem::register_widget() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 151

Notice: Undefined variable: args in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 151

Notice: Undefined variable: _adsensem in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 162

Deprecated: Non-static method adsensem::register_widget() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 151

Notice: Undefined variable: args in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 151

Notice: Undefined variable: _adsensem in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 162
Apache | CEED
Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/araki/blog.ceed.jp/wp-content/plugins/ultimate_ga_1.6.0/ultimate_ga_1.6.0.php on line 524

Category Archives: Apache

開発用SSL環境の構築


Notice: get_settings の使用はバージョン 2.1 から非推奨になっています! 代わりに get_option() を使ってください。 in /home/araki/blog.ceed.jp/wp-includes/functions.php on line 3194

Deprecated: Non-static method adsensem::filter_ads() should not be called statically in /home/araki/blog.ceed.jp/wp-includes/plugin.php on line 192

Deprecated: Non-static method adsensem::filter_ad_callback() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 198

Deprecated: Non-static method adsensem::filter_ad_callback() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 201

Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/araki/blog.ceed.jp/wp-content/plugins/ultimate_ga_1.6.0/ultimate_ga_1.6.0.php on line 524

Notice: Array to string conversion in /home/araki/blog.ceed.jp/wp-content/plugins/ultimate_ga_1.6.0/ultimate_ga_1.6.0.php on line 701

開発用にSSL環境を作る必要にせまられ、オレオレ証明書でテスト環境を作ってみました。
Apache 2.0.63 + OpenSSL (2.2あたりとはconfファイルの配置に違いがあるようですが)

こちらのサイトを参考にさせていただきました。

まずは、OpenSSLを使ってオレオレ証明書を作ります。
今回はOpenSSL付属のApacheが入っていたのでそれを使います。(ない場合別途落としてきます)
OpenSSLはApacheディレクトリのなかのbinにあります。

##パスを通します
> cd C:\Program Files (x86)\Apache Group\Apache2\conf
> path %PATH%; C:\Program Files (x86)\Apache Group\Apache2\bin

## キーファイルの作成
> openssl genrsa -rand charset.conv -out server.key 1024

## CSRの作成
> openssl req -new -key server.key -out server.csr -config ..\openssl.cnf

## 以下コマンドラインの対話
Country Name (2 letter code) [AU]:JP
State or Province Name (full name) [Some-State]:kanagawa
Locality Name (eg, city) []:kamakura
Organization Name (eg, company) [Internet Widgits Pty Ltd]:ceed
Organizational Unit Name (eg, section) []:ceed
Common Name (eg, YOUR name) []:localhost
Email Address []:test@localhost

Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

## CRTファイルの作成
openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 3650

##以上で、server.csr, server.crt, server.key が作成される

httpd.conf の編集

#モジュールの読み込み
LoadModule ssl_module modules/mod_ssl.so

ssl.conf の編集

#SSLCertificateFile conf/ssl.crt/server-dsa.crt
SSLCertificateFile conf/server.crt

#SSLCertificateKeyFile conf/ssl.key/server-dsa.key
SSLCertificateKeyFile conf/server.key

DocumentRoot "/path/to/root"

<Directory "/path/to/root">
    SSLOptions +StdEnvVars
</Directory>

レジストリの設定
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Apache2

“C:\Program Files (x86)\Apache Group\Apache2\bin\Apache.exe” -k runservice
    ↓
“C:\Program Files (x86)\Apache Group\Apache2\bin\Apache.exe” -D SSL -k runservice

以上で設定は完了です。
サービスからApacheの再起動を行えばSSLが使えるようになるはずです。
もし正常に起動できない場合は、ポート443が塞がっていないか確認しましょう。(VPN ServerやSkypeなどが使用している場合があります)
コマンドラインから
netstat -ano
で確認できます。
0.0.0.0:443 になんらかの接続がある場合、そのPIDを調べて、該当するプロセスを終了します。
正常に起動すれば、SSLによって上記ポートがListenされます。

phpでssiを使う設定


Deprecated: Non-static method adsensem::filter_ads() should not be called statically in /home/araki/blog.ceed.jp/wp-includes/plugin.php on line 192

Deprecated: Non-static method adsensem::filter_ad_callback() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 198

Deprecated: Non-static method adsensem::filter_ad_callback() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 201

Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/araki/blog.ceed.jp/wp-content/plugins/ultimate_ga_1.6.0/ultimate_ga_1.6.0.php on line 524

最近phpでssiを使うことがあったのだが、httpd.confの書き方で挙動が違うことを経験したので覚書。
通常、SSIを通場合、AddType text/html .shtml などと書くが、この記述がPHPのAddTypeより後に書かれているとPHPとして実行されない(PHPコードがそのまま出力される)ということがおきるようです。ちょっと悩んだ結果試しに記述位置を入れ替えてみたら、SSI、PHPともに実行されたので一旦OK。
どうしてそうなるのか、細かく調べたいところだけど、一旦OKとしましょう(汗)

AddType text/html .shtml .html .php
AddOutputFilter INCLUDES .shtml .html .php

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/araki/blog.ceed.jp/wp-content/plugins/ultimate_ga_1.6.0/ultimate_ga_1.6.0.php on line 524

Deprecated: Non-static method adsensem::footer() should not be called statically in /home/araki/blog.ceed.jp/wp-includes/plugin.php on line 470
getting health insurance in new york buy clomid online UK major health insurance companies buy levitra uk online what are wells fargo hours buy finasteride affordable health insurance for children accutane no prescription medical center of trinity viagra online uten resept midwestern university wellness center dapoxetine top individual health insurance companies viagra ireland

Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/araki/blog.ceed.jp/wp-content/plugins/ultimate_ga_1.6.0/ultimate_ga_1.6.0.php on line 524