WordPressのcocoonテーマで、下記のエラーが表示される。
/wp-content/themes/cocoon-master/lib/open-graph.php(356)
調べると、curlを使った処理でエラーになっていた。PHPのモジュールでcurlが入っているかみたところ、インストールされていなかった。FreeBSDのパッケージからcurlのモジュールをインストールして、apacheを再起動した。これで、解決した。
pkg install php73-curl
WordPressのcocoonテーマで、下記のエラーが表示される。
/wp-content/themes/cocoon-master/lib/open-graph.php(356)
調べると、curlを使った処理でエラーになっていた。PHPのモジュールでcurlが入っているかみたところ、インストールされていなかった。FreeBSDのパッケージからcurlのモジュールをインストールして、apacheを再起動した。これで、解決した。
pkg install php73-curl
PHPをPHP5.6からPHP7.3に上げたところ、Wordpressで以下のエラーが発生した。
Fatal error: Uncaught Error: Call to undefined function xml_parser_create()
PHPのオプションで、xmlに関するモジュールがインストールされていないことが原因だった。FreeBSDでパッケージからインストールしているので、下記のようにpkgコマンドでインストール。その後、Apacheを再起動し、無事にエラーは解消。
pkg install php73-xml-7.3.8
PHP5.6からPHP7.3にアップデートしたところ、pukiwikiでエラーが発生。このエラーの前に、pukiwikiはPHP7対応版の1.5.2にバージョンアップした。アップグレード用のパッチを当てたが、それでも下記のエラーが発生した。
Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/xxxxxx/xxxxxx/wiki/plugin/rssreader.inc.php on line 56
エラーを調べてみると、PHP7では「NEWで生成されたオブジェクトは参照として代入できない」ので、エラーになっていることが判明。とりあえず、動作するようにしたかったので、参照渡しをやめるようにコードを変更した。
変更した記述は、下記。
//変更前 //$r =& new XML_RSS($rdf); //変更後 =& を = に変更。エラー原因の参照渡しをやめている。 $r = new XML_RSS($rdf);
参考
https://www.shirokuma-systems.com/seisaku/wordpress/284.html
https://www.slideshare.net/yohgaki/php56php70
AWSで、SSL通信を行う設定をすることになったので、ELB(Elastic Load Balancer)+ACM(Amazon Certificate Manager)でSSLを通信を行うときのメリット・デメリットを考えてみた。癖はあったけれど、驚くほど設定が簡単。
デメリット
メリット
ubuntu 18.04.02で、Nginx-fullをインストールしたときにインストールされているオプション。
“–with-http_ssl_module” と “–with-http_v2_module” がついているので、SSL化もHTTP/2化もすんなりとできる。
zen:/var/log$ nginx -V nginx version: nginx/1.14.0 (Ubuntu) built with OpenSSL 1.1.0g 2 Nov 2017 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-FIJPpj/nginx-1.14.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/build/nginx-FIJPpj/nginx-1.14.0/debian/modules/http-auth-pam --add-dynamic-module=/build/nginx-FIJPpj/nginx-1.14.0/debian/modules/http-dav-ext --add-dynamic-module=/build/nginx-FIJPpj/nginx-1.14.0/debian/modules/http-echo --add-dynamic-module=/build/nginx-FIJPpj/nginx-1.14.0/debian/modules/http-upstream-fair --add-dynamic-module=/build/nginx-FIJPpj/nginx-1.14.0/debian/modules/http-subs-filter
Mac OS X 10.4で検証済み。10.3は異なるので、使えない。
10.5は、まだ検証していない。
-1)terminalを開く
terminalは、アプリケーションの中のユーティリティの中にある。
-2)/etc/ntp.confがあるかどうか確認する。
# ls /etc/ntp.conf
ntp.confが無い場合は、なにも表示されない。
-3)上で、ntp.confが無かった場合、下記のコマンドを実行する
# sudo echo ‘server time.asia.apple.com minpoll 5 maxpoll 11’ > /etc/ntp.conf
-4)NTPDの再起動を行う。再起動コマンドは、下記。
# sudo /System/Library/StartupItems/NetworkTime/NetworkTime restart
-5)NTPDが正常に動作しているか確認する。
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
time.asia.apple 17.254.0.49 2 u 1 64 1 250.625 -5.987 0.756
-6)上のようになっていれば、OK。ちゃんと、同期されているかは、定期的に確認する。
-7)設定しても、時間合わせがうまくいかない場合には、ntp.confの内容を下記に変更する
server time.apple.com iburst