PHP's GD support and load MySQL feature

Source: Internet
Author: User

When the machine was installed, Dedecms found that

GD Support On [x] OFF (not supported will cause most features associated with the picture to be unusable or cause a warning)
MySQL Support On [x] Off (does not support the inability to use the system)

Error, the original is the environment error, then g down, found the solution:


1: Add Configuration

Rename the Php.ini-dist file in the installation directory to php.ini and copy it to the Windows directory on the system disk C drive.


Open C:\windows\php.ini File
Found: Extension_dir = "./"
Instead: Extension_dir = "D:\php\ext" (which is your PHP installation directory path)


Found in:; Extension=php_mbstring.dll
Instead: Extension=php_mbstring.dll


Found in:; Extension=php_gd2.dll
Instead: Extension=php_gd2.dll


Found in:; Extension=php_mysql.dll
Instead: Extension=php_mysql.dll


Found in:; Extension=php_mcrypt.dll
Instead: Extension=php_mcrypt.dll

In fact, it is to remove the semicolon in front of them, and then save, if in the Vista system, you have to save to other places, and then cut over


Then the PHP (installation directory) directory under the Php5ts.dll, Libmysql.dll copy to the directory C:\Windows\System32.
The Php_gd2.dll, Php_mysql.dll, php_mbstring.dll files under the Php\ext directory are also copied to C:\Windows\System32.

Without loading Php_gd2.dll PHP will not be able to process images.

No load Php_mysql.dll PHP will not support MySQL library, Php_mbstring.dll support wide character when using phpMyAdmin later

1. For php.ini files
Go to C:\PHP, copy Php.ini-dist to C:\WINNT (C:\Windows under Windows xp/2003), change to php.ini, then open with Notepad and search Extension_ using Notepad's find function DIR = "./" and refer its path to the extensions directory in your PHP directory, for example: Extension_dir = "C:\PHP\ext", then search register_globals = off, change off to on;
to look for; Extension=php_mysql.dll, remove the preceding quotation marks ";".
2, the Manual on the configuration of IIS instructions, the "Php\sapi\php4isapi.dll" in the PHP directory to change "Php5isapi.dll"
3. Important: Copy the Libmysql.dll file under PHP directory to system32.

Restart IIS (or Apache will reboot):
At the command prompt, execute the command individually:
net stop w3svc
net stop IISAdmin
net start w3svc

PHP's GD support and load MySQL feature

Related Article

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.