High score! Configuration of php, apache, and mysql on win7

Source: Internet
Author: User
High score !! Php, apache, and mysql configuration problems in win7 are explained first. I have installed these three, and I have tried phpinfo (). but when I connect to the database, running on the browser has a high Fatalerror: Calltoundefinedfunctionm !! Php, apache, and mysql configuration problems in win7
First, I have installed all three of them, and I have tried it with phpinfo (), but when I connect to the database, I will run it on the browser, fatal error: Call to undefined function mysql_connect () is in urgent use,

------ Solution --------------------
Can I find mysql or mysqli in phpinfo?
------ Solution --------------------
In a hurry, install an xampp.
------ Solution --------------------
Paste all the error messages ..
------ Solution --------------------
I should describe more
------ Solution --------------------
Integration Environment
Xampp
Appserv can also be used.

You need to use this to check if php. ini does not comment on mysql.
Extension = php_mysql.dll
Extension = php_mysqli.dll mainly includes the following two items:

Is mysql output by phpinfo?

If not, try again. I think this is the most possible.
Set 1, x: \ php \ ext \ php_mysql.dll 2, x: \ php \ libmysql. dll
These two files are copied to the c: \ windows folder.
------ Solution --------------------
You can directly install XAMPP. this is integrated and does not need to be manually configured. it is very convenient and will not cause such a problem. I am using this, and on win7, contact me if necessary.
------ Solution --------------------
Open the php. ini file and enable these two items:
Extension = php_mysql.dll
Extension = php_mysqli.dll
If not, install XAMPP directly. this is integrated and does not need to be manually configured.
------ Solution --------------------
You said that phpinfo () is normal. at least the block description of php apache and mysql should be provided above. it is normal if there is data.
Mysql_connect () is not defined, that is, mysql is not associated. do you have to unbind the extended extension as mentioned above, or restart apache?
Check whether Port netstat-an 3306 is enabled. if Port netstat-an is not enabled, mysql is not started.

The integration package is fast and convenient. I also recommend the integration package.
Install xampp, phpNow, and configure the environment within three minutes
The premise is: you have to unmount your installed items because the ports may conflict and may even fail to run.



------ Solution --------------------
This error indicates that the mysql_connect function is not found in php, but you need to use this function now, so an error is returned.
Are you sure there are mysql module extensions in phpinfo? If no, open the php. ini file and set the following two items:
; Extension = php_mysql.dll
; Extension = php_mysqli.dll
To:
Extension = php_mysql.dll
Extension = php_mysqli.dll
In addition
Extension_dir = "C: \ Program Files \ ApacheDir \ phpdir \ ext \";
Make sure that your extension_dir path is correct,
Restart apache and check that mysql extensions are available in phpinfo.
------ Solution --------------------
Upstairs !!!!!!! 1

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.