Phpmyadmin cannot log in after php upgrade _ PHP Tutorial

Source: Internet
Author: User
Phpmyadmin cannot log on after php upgrade. 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 to look for a line with extension_dir. extensi is generally due to a PHP. ini configuration problem. set it again according to 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 such Required

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.

Success! (1) set the extension path to search for a row in extension_dir; extensi...

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.