haojianyun

welcom to my haojianyun.com

ossfs centos 8.x 安装报错 error

error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory

或者 or

ossfs: /lib64/libcrypto.so.10: version `libcrypto.so.10' not found (required by ossfs)

解决办法,安装老的 ssl 10 或者对应的数字

yum install compat-openssl10

ok

1月 20th, 2021

Posted In: PHP开发笔记

Leave a Comment

Linux系统用nginx+ thinkphp 跳转老是报错,rewrite 规则改写后也是报错,找了半天终于解决了
  • pathinfo的问题:nginx的配置文件nginx.conf中的 include enable-php.conf 修改为 include enable-php-pathinfo.conf

  • php.ini 问题: 把php配置文件php.ini中的 cgi.fix_pathinfo=0 修改为 cgi.fix_pathinfo=1

  • nginx rewrite 问题 : 改为 rewrite ^(.*)$ /index.php?s=$1 last;

12月 3rd, 2017

Posted In: PHP开发笔记

Leave a Comment

其他php程序都能访问,就是YIi 带有framework的程序不能访问,找了半天终于找到原因了,如果你的也不能用可以按照如下设置一下

  • vi /usr/local/nginx/conf/fastcgi.conf
  • 修改下面内容
  • fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/:/var/www/";
  • 其中 open_basedir 里面的目录就是你网站的根目录的父目录,就是yii framwork 的跟目录

10月 11th, 2017

Posted In: PHP开发笔记

Leave a Comment

9月 13th, 2017

Posted In: PHP开发笔记

Leave a Comment