Recently, ESET add my domain name to the black-list of their database. You can’t open my site and been warned my site is not safe if your PC is running the ESS or EAV. Why Eset block my site?The answer is obvious. That is reason that you come here. I promise that my site is pure, no virus, no spyware, no Trojan, no pop ads. You can test my word through intalling Kaspersky or other Antivirus Software. If you want open my site and take latest escalation ID & Activation Code, close your ESET software(disable antivirus and antispyware protection function temporarily) or by proxy or virtual machinor. You can also feed the RSS source http://feed.loserblog.cn.
Home > Life > Win XP installed Apache2, PHP5, MYSQL5, Zend

Win XP installed Apache2, PHP5, MYSQL5, Zend

Under the new installation of Windows XP Apache2, PHP5, MYSQL5, Zend simple process

First, download the 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]

Even the installation software would not say, only PHP is under the zip package, directly to extract it.
Installation sequence is listed above to the order, Zend I was the last run, and so not all the problems before the equipment.

Second, the simple installation process:
(A) Apache:
Apache2.0.50 the installation is very simple, I will direct his loaded to the Pan-gen directory E (I-C system is set, D-temp is set, INCIDENTAL now under separate windows with districts to do the temporary files stored in The system does not affect the speed of small, it could upgrade the speed of the system is running, interested friends can give it a try), after I installed the apache directory is E: \ apache2
(B) PHP:
I zoom directly to extract the E-php directory, find this document will facilitate many.
(C) Mysql:
Directly loaded to E: \ mysql, it's default directory is too long, is in the C-, C-even the windows are in addition to the documents link all of the other.
(D) Zend:
Commissioning of all I have to normal after the Zend loaded to the E: \ program files \ zend under

Third, the configuration process:
(A) http.conf

This is a file I changed a few places:
PHP as the apache to direct the operation of a module, I added a few words inside:


LoadModule php5_module "E: / php/php5apache2.dll"
AddType application / x-httpd-php. Php

I E: \ apache2 directory www the establishment of a directory of my site for storage of documents, in http.conf changed in this sentence:
The DocumentRoot "E: / Apache2/htdocs" into the DocumentRoot "E: / Apache2/www"

Apache2.0.x at 1.3. X compared to 2.0. X default directory can not be directly out, even feeling不爽, to:
The DocumentRoot "E: / Apache2/www" this under the following statement


<Directory />
     Options FollowSymLinks
     AllowOverride None
</ Directory>

Read:


<Directory />
     Options Indexes FollowSymLinks
     AllowOverride None
</ Directory>

Apache to the default settings for Simplified Chinese characters:
AddDefaultCharset GB2312

Home to amend the default directory:
DirectoryIndex written on the back for the home you want to set up a document, such as: index.html index.php, and so on

Not to move any other place

Note that is, to make the entry into force of these profiles need to restart apache

(B) php.ini
Php4.x previously used the time to think configuration is very simple, so even with PHP5 directly with then, who knows the end mysql can not be used, said to be unable to connect the dynamic, I carefully checked the php_mysql.dll apparently existed, may That can not find this point let me depressed the N long time, even to extract the php5 also useless, and later in the install php documents found such a sentence: php_mysql.dll MySQL functions PHP> = 5.0.0, requires libmysql.dll (bundled)
So even to find the reason ……
This configuration is php5.0.2 to have:
The php.ini-dist copied to C: \ windows under the name php.ini (with the php it's all done)
And then revised several places:
extension_dir = "E: \ php \ ext" (designated dynamic link library catalogue, php5 and php4 different places it is the dynamic link library directory has changed, which in its structure, the document detailed explanation)
Below a few words in front and then remove the semicolon
; extension = php_dba.dll
; extension = php_dbase.dll
; extension = php_filepro.dll
; extension = php_gd2.dll
; extension = php_imap.dll
; extension = php_mysql.dll

Next to amend a number of documents uploaded and the use of the largest memory limitations:
memory_limit = 20M
post_max_size = 20M
upload_max_filesize = 20M
What has not changed other, here modified after php.ini to restart apache

Next is important that the directory is to php and libmysqli.dll copy the libmysql.dll to windows/system32, if not to do so, mysql dynamic link library will not be able to normal load.

(C) Mysql and Zend configuration
Now Apache and PHP have been configured, the browser type www.ajaxstu.com look at the results, run successfully, then enter www.ajaxstu.com / phpmyadmin also look at the success. Depressed, Phpmyadmin prompted an error message:

QUOTE:
MySQL returned:

# 1251 – Client does not support authentication protocol requested by server; consider upgrading MySQL client

Strange, even with the obvious is the latest version MYSQL how will the client version is too low, it is really depressing ah
In this connection put on, after numerous tests still failed to give up the first, playing a KOF97
Then in the CCF. Pandas and IM286.ceo's help, finally found the reason:
Backward ceo: "escalation of client
The new version of mysql use a new password verification method
Mysql set old_password password can be used to solve this problem "
CCF. Pandas: "Use old_password" re-set the password can. "
Thank these two friends, specific solutions are as follows:
Because even do not know how to upgrade client, because the windows of server and client installation is tied up, I spent old_password approach:


mysql> Update mysql.user SET Password = OLD_PASSWORD ( 'newpwd')
–> Where Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;

Categories: Life Tags:
  1. No comments yet.
  1. No trackbacks yet.
  • Partner links