php7升到php8无法使用exif等扩展
系统debian10从php7.4生到php8.0.22,发现exif和fileinfo等扩展没反应
例如打开https://xxxxx.com/exif.php 出现HTTP ERROR 500
尝试办法:卸载exif,重新安装还是这个问题
当我修改php.ini去掉exif的; 后,重启php-fpm就报一下错误
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20200930/
/root/lnmp1.9/src
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpmdone
====== PHP Exif install completed ======
PHP Exif installed successfully, enjoy it!
root@C:~/lnmp1.9# make test
make: *** No rule to make target 'test'.Stop.
root@C:~/lnmp1.9# /etc/init.d/php-fpm restart
Gracefully shutting down php-fpm . done
Starting php-fpm NOTICE: PHP message: PHP Warning:Module "exif" is already loaded in Unknown on line 0
done
./addons.sh install exif 进行安装
不要自己去改php.ini 去掉所谓的注释那都是没用的,官网上都有说明
出现Starting php-fpm NOTICE: PHP message: PHP Warning:Module "exif" is already loaded in Unknown on line 0
说明你在php.ini 里面去掉了 exif 前面的注释
500错误大概率是php代码上有问题,可以开php错误日志看哪里报错,官网常见问题里面有开启错误日志方法 本帖最后由 fzle8 于 2022-9-3 14:50 编辑
licess 发表于 2022-9-2 19:32
./addons.sh install exif 进行安装
不要自己去改php.ini 去掉所谓的注释那都是没用的,官网上都有说明
军哥,帮忙看下是哪里出问题
附上php-fpm和mysql日志记录
https://wws.lanzouv.com/iPDac0ay7qib 密码:euo2 fzle8 发表于 2022-9-3 14:44
军哥,帮忙看下是哪里出问题
附上php-fpm和mysql日志记录
如果你说的是500错误,前面帖子已经说过方法了,php-fpm和mysql的日志没任何用处 licess 发表于 2022-9-3 19:55
如果你说的是500错误,前面帖子已经说过方法了,php-fpm和mysql的日志没任何用处 ...
我重装了系统和lnmp,但是当我wordpress打开debug模式就会出现500错误,关闭就没事。 fzle8 发表于 2022-9-4 00:51
我重装了系统和lnmp,但是当我wordpress打开debug模式就会出现500错误,关闭就没事。 ...
大概率debug设置代码拼写有错误
最快解决500错误就是php错误日志 licess 发表于 2022-9-4 11:55
大概率debug设置代码拼写有错误
最快解决500错误就是php错误日志
最后发现memory_limit 128M 加到 256M就解决了困扰
页:
[1]