Home > Backend Development > PHP Tutorial > phpmyadmin cannot log in after upgrading php_PHP tutorial

phpmyadmin cannot log in after upgrading php_PHP tutorial

WBOY
Release: 2016-07-13 17:44:43
Original
1212 people have browsed it

Generally, it is a problem with PHP.ini configuration. Set it again according to the following configuration items, then restart the server and try it!

(1) Set extension path

Find extension_dir and there is such a line

;extension_dir = "./"

Add a line after this line (note that you are adding a line, not adding it to the end)

extension_dir = "d:phpext"

Where d:php is the path where you installed php. Incorrect path will not load the dll

(2) Find extension

extension=php_mbstring.dll

extension=php_gd2.dll

extension=php_mysql.dl

Remove the semicolons in front of the above three items so that these dlls can be loaded when IIS starts

(3) Set session save path

Find session.save_path and there is such a line

; session.save_path = "N;/path"

Add a line after this line

session.save_path = "C:WindowsTemp"

Save it to your temporary directory. You can save it to the Windows temporary directory Temp

(4) It is also worth noting that short_open_tag is Off by default

In other words, PHP cannot use short tags such as and must use

Because short tags are easy to use, and many programs are also written in short tags, such as discuz, etc.

If the short_open_tag is not changed to On, it will be difficult to determine whether the symptoms are due to the above reasons. It is recommended to modify it here

Find

short_open_tag = Off

Change to

short_open_tag = On

(5) Whether to display errors display_errors

For security reasons, display_errors also defaults to Off

This means that during debugging, if there is an error in the PHP code, only a blank page will appear. The cause of the error and the number of error lines will not be displayed.

This will be very inconvenient to debug. It is recommended to modify it according to your needs

Find

reGISter_globals = Off

Change to

register_globals = On

(6) register_globals

For security reasons, it is also Off by default

When register_globals=Off, the next program should use $_POST['user_name'] and $_POST['user_pass'])

When register_globals=On, the next program can directly use $user_name and $user_pass to accept values.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478714.htmlTechArticleGenerally, it is a PHP.ini configuration problem. Set it again according to the following configuration items, then restart the server and try ! (1) Set the extension path and look for the line extension_dir; extensi...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template