Phpmyadmin cannot log on after php upgrade

Source: Internet
Author: User

 

Generally, it is a PHP. ini configuration problem. Set it again based on the following configuration items, and then restart the server. Try again!

 

(1) set the extension path

 

Find the row in extension_dir

 

; Extension_dir = "./"

 

Add a line after this line (note that adding a line is not followed)

 

Extension_dir = "d: \ php \ ext"

 

D: \ php is the path for installing php. Dll cannot be loaded if the path is incorrect.

 

(2) Search for extension

 

Extension = php_mbstring.dll

 

Extension = php_gd2.dll

 

Extension = php_mysql.dl

 

Remove the semicolon before the preceding three items so that these dll files can be loaded when IIS is started.

 

(3) set the session storage path

 

Find the row in session. save_path.

 

; Session. save_path = "N;/path"

 

Add a line after this line

 

Session. save_path = "C: \ Windows \ Temp"

 

Save it to your temporary directory, which can be saved to the Windows temporary directory Temp.

 

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

 

That is to say, php cannot use short tags, as shown in <? ?> Required <? Php?>

 

Short tags are easy to use, and many programs use short tags for writing, such as discuz.

 

If you do not change short_open_tag to On, it will be difficult to determine the cause. We recommend that you modify it here.

 

Search

 

Short_open_tag = Off

 

Change

 

Short_open_tag = On

 

(5) Whether the error display_errors is displayed

 

For security reasons, display_errors is also Off by default.

 

That is to say, when debugging, if the php code is incorrect, only one blank page is displayed. The error cause and number of lines are not displayed.

 

Therefore, debugging is inconvenient. You are advised to modify it as needed.

 

Search

 

ReGISter_globals = Off

 

Change

 

Register_globals = On

 

(6) register_globals

 

It is also Off by default for security reasons.

 

When register_globals = Off, $ _ POST ['user _ name'] and $ _ POST ['user _ pass'] should be used for receiving the next program.

 

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.