
Question: After the new server is configured, the php website is deployed. The website opens and displays normally, but the user is always prompted with a verification code error when logging in. (Correct verification code entered)
Cause analysis:
1. Session problem
In session I didn’t remember the verification code. It should be a permission issue with the session folder of PHP.
Processing method:
php-fpm mode
Modify the startup user of php-fpm
session folder is /var/lib/php/ session
vi /etc/php-fpm.d/www.conf
Change the user and user group to apache
user =apache
group =apache
or change Permission to modify the session file according to the user of php-fpm
2. Time zone setting problem
php does not set the correct time zone, resulting in abnormal time judgment.
Processing method:
a. Add the time zone setting date_default_timezone_set('PRC');
b. Modify the php.ini setting in the php code Default time zone date.timezone = PRC;
The above content is for reference only!
Recommended tutorial: PHP video tutorial
The above is the detailed content of php verification code prompt error. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version
Chinese version, very easy to use

Dreamweaver CS6
Visual web development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.





