In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to simply configure APACHE+PHP5+MYSQL4+PHPMYADMIN under Win2003". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
First download APACHE2.050, PHP5, MYSQL4.0.20 and PHPMYADMIN2.57 from various official websites
Apache_2.0.50-win32-x86-no_ssl.msi
Php-5.0.0-Win32.zip
Mysql-4.0.20d-win.zip
PhpMyAdmin-2.5.7.zip
Operating system win2003 system disk is: d disk
Step 1: install apache and configure to support PHP
Click to install the file apache_2.0.50-win32-x86-no_ssl.msi
Install apache in the D:\ apache2 directory (as you like)
Extract the contents of php-5.0.0-Win32.zip into D:\ php
Find the php.ini-dist in the php directory and rename it to php.ini and copy it to the windows directory (winnt in win2k)
For example, my php.ini is copied to D:\ windows directory
Then copy the php5ts.dll,libmysql.dll in the php directory to the system directory (system/system32) if mine is D:\ windows\ system
Configure httpd.conf in apache
Open the file D:\ Apache2\ conf\ httpd.conf
Find AddDefaultCharset ISO-8859-1 and change it to AddDefaultCharset GB2312 (let the default language be encoded in simplified Chinese)
Find DocumentRoot "D:/Apache2/htdocs" and change it to your WEB directory (but do not change it) if mine is DocumentRoot "D:/website"
Find DirectoryIndex index.html index.html.var and add index.htm index.php after that.
Select installation mode: modular mode installation or CGI mode installation (choose one)
-modular installation configuration--
Find the line # LoadModule ssl_module modules/mod_ssl.so and add a line after this line
LoadModule php5_module d:/php/php5apache2.dll
Where d:/php/php5apache2.dll is the location of php5apache2.dll in your php directory
Find the line AddType application/x-gzip .gz .tgz and add a line after this line
AddType application/x-httpd-php .php
-CGI installation configuration--
Find the AddType application/x-gzip .gz .tgz line and add the following
ScriptAlias / php/ "d:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/ php/php-cgi.exe"
At this time, the PHP environment has basically been configured successfully.
Create a file called test.php in the WEB root directory (such as my D:\ website) as follows
Restart the apache service
Open http://localhost/test.php with a browser
If you can see the php configuration output, it will OK.
Step 2 install mysql
Install mysql to the specified directory, for example, mine is d:/mysql. If you download a non-installed mysql package, you can extract it directly to the specified directory.
Then click the file D:\ mysql\ bin\ winmysqladmin.exe, where D:\ mysql is your mysql installation directory
Enter the initial user and password of winmysqladmin (note: this is not the user and password in mysql). Don't worry about it.
After confirming, a traffic light icon appears in the launch bar of your task in the lower right corner. The red light indicates that the service is stopped, and the green light indicates that the service is normal. Left-click this icon-> winnt- > install the service to install this service.
Then left-click the icon-> winnt- > start the service to start the mysql service
Modify the root password of the mysql database
Enter the following command in cmd mode: (note: d:\ mysql is the mysql installation directory)
Cd d:\ mysql\ bin
Mysqladmin-u root-p password 123456
Enter appears
Enter password: (note: this is to ask you to enter the original password. The password is empty at the beginning of installation, so you can enter directly)
At this point, the password of the account root in mysql is changed to 123456 and installed.
Configure php.ini and test mysql (php.ini is php.ini under d:\ windows)
Find extension_dir = ". /" and change it to extension_dir = "d:/php/ext"
find
; extension=php_mysql.dll
Replace'; 'with
Extension=php_mysql.dll
find
; session.save_path = "/ tmp"
Remove the directory where you saved the session, such as
Session.save_path = "D:/php/session_temp"
Restart the apache service
Create a testdb.php file under the Web root directory (such as D:\ website) as follows:
Open http://localhost/testdb.php with a browser. If you output success, you will OK.
IV. Installation and configuration of phpmyadmin
Extract phpMyAdmin-2.5.7.zip into the WEB root directory and rename the folder to phpmyadmin or other
Open config.inc.php in the phpmyadmin directory
find
$cfg ['Servers'] [$I] [' user'] = 'root'
$cfg ['Servers'] [$I] [' password'] = '123456'
Just fill in your mysql user and password respectively.
If it is not used locally, it is best to add verification.
This is the end of the content of "how to simply configure APACHE+PHP5+MYSQL4+PHPMYADMIN under Win2003". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.