Get the App
SLTechnology News&Howtos  ›  Database  › 

Solve the problem that the CAPTCHA cannot be displayed.

Shulou Source: shulou.com Published: 2022-06-01 06:38:50 10月01日 Update

The CAPTCHA cannot be displayed.

Rpm-Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

Yum install libmcrypt libmcrypt-devel mcrypt mhash-y

Yum install php70w php70w-bcmath php70w-cli php70w-common php70w-dba php70w-devel php70w-embedded php70w-enchant php70w-fpm php70w-gd php70w-imap php70w-interbase php70w-intl php70w-ldap php70w-mbstring php70w-mcrypt php70w-mysql php70w-mysqlnd php70w-odbc php70w-opcache php70w-pdo php70w-pdo_dblib php70w-pear php70w-pecl-apcu php70w-pecl-imagick php70w-pecl-xdebug php70w-pgsql php70w-phpdbg php70w-process php70w-pspell php70w-recode php70w-snmp php70w-soap php70w-tidy php70w-xml php70w-xmlrpc php70w-pecl-redis.x86_64-skip-broken-y

# add redis dependency if you have redis, and then restart php-fpm

/ etc/init.d/php-fpm restart

Vim / etc/php-fpm.d/www.conf

User = nginx

Group = nginx

Php_ value [session. Save _ handler] = files

Php_ value [session. Save _ path] = / var/lib/php/session

Php_ value [soap.WSDL _ cache_dir] = / var/lib/php/wsdlcache

Permissions to write to the session directory

Chmod 755-R / var/lib/php

If you want to write session to redis, you need to install php's redis expansion pack

Yum search php70w-pecl-redis.x86_64 # session of php cannot be saved to redis if the installation version is different

Vim / etc/php-fpm.d/www.conf

User = nginx

Group = nginx

Php_ value [session. Save _ handler] = Redis

Php_ value [session. Save _ path] = 'tcp://192.168.1.2:6688'

Php_ value [soap.WSDL _ cache_dir] = / var/lib/php/wsdlcache

Tags: Authentication permissions versions directories scenarios Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Technology MariaDB Docker vpn