Two years ago, the article took over the facade.
---------------------------------------------------------------------------------------------------------------------------------------
Win2000 PHP MYSQL installation
(Author: mikespook | Published: 2002-12-8 | Views: 1063)
Keywords: win2000, php, mysql, installation preface: This article is just a guidelines just like the same rookie like me. If you are a master, or there is no interest in this. Please don't waste time here. Taking nonsense, first look at the preparation work before installation. First, you should have a computer that has a Win2000, and IIS5 (nonsense) should be installed. Second, you need to download such software: 1.Mysql for win download address: http://www.mysql.com/downloads/mysql-3.23/mysql-3.23.51-win.zip2.php for WIN download address: http://www.php.net/do_download.php?download_file =php-4.2.2-installer.exe First, let's take a look at Mysql installation. Unzip mysql-3.23.51-win.zip and run Setup. Select the installation path, such as I am D: / MySQL. Then select the installation method, if you don't know what to do, then choose Compact. All the way is NEXT, and the entire installation process is probably 2,3. MySQL is installed, and below is configured. Create a text file for a file my.cnf in the C drive directory, the content is as follows: [MySQL] basedir = d: / mysql / where Basedir is the path you install MySQL. Then enter the D: / mysql / bin directory in the command line to run the following command: D: / mysql / bin> mysqld-nt --installd: / mysql / bin> Net start mysql This mysql will be installed into system services. If you want to stop MySQL, you can use the NET Stop MySQL command. To remove MySQL from the system service, you can use the mysqld-nt --remove command. Ok, MySQL has already run. You can use the mysql.exe in the D: / mysql / bin directory to access the database to see the effect. Install MySQL, you can install PHP below. Run PHP-4.2.1-installer.exe, select "Advanced" when selecting installation. Then select a installation path, here I still install D: D: / PHP /. Continue next, first prompt you to establish a backup file. Backup files can help you resume the original settings when you want to delete PHP, and we choose Yes here. Continue to run will prompt you to establish a temporary folder path for uploading files. Then it is prompted to save the folder of the session data. Then the SMTP server and the email settings. This setting will be used when you use PHP's mail. NEXT again, prompting your error reporting. Since it is playing, this doesn't matter, choose the first, detailed report helps you understand the mistake, easier to learn. Because of your machine specific formulation, choose the HTTP server you use, I is IIS5, then select Microsoft Iis4 or Higher. Then it is the extension file name for PHP, and if there is no special request, it is ok. Ok, then PHP starts to install when NEXT. After the installation is complete, find a php.ini file in your Windows directory. I am c: /winnt/php.ini. The comments in this file are very detailed, there are many options to be adjusted. We can use it to modify the following options.
Extension_dir = d: /php/mysql.default_port = 3306mysql.default_host = localhostmysql.default_user = root Start IIS5 from the newly started IIS5, and establish a file in the root of IIS5, such as information.php, the content is pHPINFO ();?> then Enter http://127.0.0.1/information.php in the browser? Haha About the server's details show that more than the content of the ASP probe. Now you can use PHP MySQL on your server. Since I am a rookie, maybe there is anything wrong. I may also have some details I have not considered. If you know what you want to advice. The younger brother is grateful! !