What this article describes is built on Windows 2003, and the software versions are Apache2.2.6 (Win32), PHP5.2.4, MySQL5.0.45, and phpMyAdmin2.11.1. Apache and MySQL need to be installed, and PHP and phpmyadmin are decompressed and configured for use.
I won’t go into the detailed installation process. I searched a lot on the Internet. Here I just talk about a few problems I encountered during the installation process so that everyone can have a reference when encountering the same problem.
1. Copy php5ts.dll and libmysql.dll in the PHP directory to the system32 directory of the system.
2. Whether php.ini is copied to the windows directory is not clear from the previous version, but I did not copy php.ini to the windows directory. I directly renamed php.ini-dist and placed it in the php directory. Of course, you need to add a line of PHPINIDir c:/php/php.ini to Apache's httpd.conf configuration file (my PHP is installed in the PHP directory on drive C).
3. Apache has a 403 access denied error. In the httpd.conf file, modify DocumentRoot "I:/blog" according to the directory of your website.
4. How to make the .htaccess file work. By default, .htaccess does not work in Apache. If you want .htaccess to work, you need to modify the httpd.conf file. Find a single line of allowOverride none in the file and change it to AllowOverride All or AllowOverride. fileinfo.
5. Before using phpmyadmin, remember to modify $cfg['blowfish_secret'] = '' in config.inc.php (this file is renamed from config.sample.inc.php), and fill in the '' at will. Characters, such as dfdf877ddff.
6. A 1045 error occurred in phpmyadmin. The search results from the Internet all said that it was due to a password problem. What I encountered was not a password problem, but that I used a domain name to access it on the server, such as http://blog.tryboy.org /phpadmin, if you use http://localhost/phpmyadmin or http://127.0.0.1/phpmyadmin to access it, everything will be normal. It may be because MYSQL has set "remote hosts are not allowed to access through ROOT permissions", so use http://blog Accessing .tryboy.org/phpadmin is regarded as remote host access.
7. phpmyadmin displays the prompt "Unable to load the mcrypt extension, please check the PHP configuration." Although this prompt appears, it has no impact on general use. If you want to solve it, first remove the ";" in front of php_mcrypt.dll in PHP's php.ini configuration. 2. Copy libmcrypt.dll from php5 to the system system32 directory.
8. If you want to enable apache's Rewrite Mod, you must modify #LoadModule rewrite_module modules/mod_rewrite.so in the httpd.conf file and remove the #.
9. Modifications to the httpd.conf file must be restarted to take effect.