2014年12月23日 / kirito / 0 Comments
find files in folder which has "fonts.googleapis" recusively
find /usr/share/nginx/html/ -name "*" | xargs rgrep "fonts.googleapis"
replace files in folder which has "fonts.googleapis" recusively
find /usr/share/nginx/html/ -name "*" | xargs perl -pi -e 's|fonts.googleapis|fonts.useso|g'
Categories Ubuntu
2014年12月19日 / kirito / 0 Comments
After installed certs on nginx, type the command:
openssl s_client -connect yourdomain:443
If showed like: Verify return code: 19 (self signed certificate in certificate chain)
It means your certificate is installed successfully.
Categories Ubuntu
2014年12月17日 / kirito / 0 Comments
Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
/etc/hhvm/php.ini
Disbale theses lines:
; php options
;session.save_handler = files
;session.save_path = /var/lib/php5
;session.gc_maxlifetime = 1440
Categories Ubuntu