_php tutorial for new Installation Apache2,php5,mysql5,zend under Win XP

Source: Internet
Author: User
Tags mysql functions temporary file storage phpmyadmin
See Php,mysql, all out of a new version, want to taste fresh, try to install a bit, and then put down the installation process, hoping to learn PHP novice some help, the owner can consider the refinement of Windows XP under the new installation of APACHE2,PHP5,MYSQL5, Zend Simple process One, download address: apache2.0.50:http://httpd.apache.org/download.cgi php5.0.2:http://cn2.php.net/get/ Php-5.0.2-win32.zip/from/a/mirror mysql5.0.2:http://dev.mysql.com/downloads/mysql/5.0.html zend2.5.2:http:// WWW.ZEND.COM/STORE/FREE_DOWNLOAD.PHP?PID=13] Software Installation Even don't say, which only PHP under the ZIP package, directly decompression can be. The order of installation is the order listed above, Zend I was the last to wait for all the operation is not a problem after the installed.
Second, the simple installation process: (a) Apache: Apache2.0.50 installation is very simple, I directly put him into the e-packing directory (I c disk is the system disk, D disk is the temp disk, I found in Windows alone take a partition to do temporary file storage to the system speed impact is not small, so that can improve the speed of the system, interested friends can try), installed After my Apache directory is e:apache2 (ii) PHP: I was directly extracted into the e-disk PHP directory, so it is much easier to find files. (c) Mysql: Directly installed under the E:MYSQL, its default directory is too long, is under the C drive, and even the C disk is in addition to Windows files are not put. (d) Zend: All the debugging is normal after I put Zend into the E:program fileszend the next three, the configuration process: (a) http.conf this file I changed a few places: PHP directly as a module of Apache run, I added two sentences: CODE: [Copy to Clipboard] LoadModule php5_module "E:/php/php5apache2.dll" AddType application/x-httpd-php. php I am in E: Apache2 directory set up a WWW directory for storing my site files, in http.conf changed such a sentence: the DocumentRoot "E:/apache2/htdocs" changed to DocumentRoot "e:/apache2/ www "apache2.0.x in 1.3.x compared to 2.0.x default can not directly list the directory, I feel uncomfortable, changed: DocumentRoot" e:/apache2/www "This sentence under the following statement CODE: [Copy to Clipboard] Options FollowSymLinks allowoverride None Replace: CODE: [Copy to clipboard] Options Indexes followsymlinks allowoverride None Set the Apache default character to Chinese Simplified: adddefaultcharset GB2312 Modify the default home page of the directory: DirectoryIndex the name of the file you want to set as the homepage, such as: index.html index.php, etc. There's nothing else to move. Note that to make these configurations effective, you need to restart Apache(b) PHP.ini used to php4.x when the configuration is very simple, so I used PHP5 is also directly so with, who knows the MySQL can not be used, said is unable to connect the dynamic library, I carefully examined the PHP_ Mysql.dll clearly exist, can say can't find, this let me depressed for n long, I re-decompression php5 also useless, later in the PHP install document found such a sentence: Php_mysql.dll mysql functions php >= 5.0.0, requires Libmysql.dll (bundled) so I found the reason ... Configuration php5.0.2 This is the way: the php.ini-dist copy to c:windows under the name of PHP.ini (loaded PHP has done it) and then modified a few places: Extension_dir = "E:phpext" (Specify the directory of the Dynamic Connection library , PHP5 and PHP4 different places is its dynamic connection Library directory changed, which in its document structure has a detailed description) and then the following a few sentences before the semicolon removed; extension=php_dba.dll; extension=php_dbase.dll; Extension=php_filepro.dll, Extension=php_gd2.dll, Extension=php_imap.dll, Extension=php_mysql.dll The following changes have been made to some file uploads and the maximum memory usage limit: Memory_limit = 20M Post_max_size = 20M Upload_max_filesize = 20M nothing else has changed. I have modified php.ini here to restart Apache. The next point is to copy the PHP directory Libmysql.dll and Libmysqli.dll to Windows/system32, if not, MySQL Dynamic connection library will not load properly. (c) MySQL and Zend configuration now both Apache and PHP have been configured, enter localhost in the browser to see the results, run successfully, and then enter the Localhost/phpmyadmin to see also success. Depressed, phpMyAdmin tip error message: Quote:mysql return: #1251-client does not support authentication protocol requested by Server; Consider upgrading MySQL client strange, I was loaded is the latest version of MySQL How the client version is too low, really depressed ah put a bit, after many tests still unsuccessful on the first give up a bit, play a KOF97 Then, with the help of CCF, Panda and Im286.ceo, finally found the reason: Outdated CEO: "Upgrade client new version of MySQL using the new Password authentication method to set the MySQL password when using Old_password can solve the problem" CCF. Panda: "Use old _password "Reset password is OK". Thanks to these two friends, the specific solution is as follows: Because I do not know how to upgrade the client, because under Windows Server and the client is bundled installation, I used the Old_password method: Quote:mysql> UPDATE Mysql.user SET Password = Old_password (newpwd), WHERE Host = some_host and user = Some_user; mysql> FLUSH privileges; Then browse "Http://localhost/phpmyadmin", OH yeah! Test success!

http://www.bkjia.com/PHPjc/531905.html www.bkjia.com true http://www.bkjia.com/PHPjc/531905.html techarticle See Php,mysql, all out a new version, want to taste fresh, try to install a bit, and then put down the installation process, hoping to learn PHP novice some help, the owner can consider fine ...

  • 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.