Win2003 4 Dali installation configuration · [Collection]

xiaoxiao2021-03-06  49

Recently, I bored my PHP environment, and I wrote the process, I hope there is no mistake :)

First, from Official websites, apache2.050, php5, mysql4.0.20, phpmyadmin2.57

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

Operating system Win2003 system disk is: D disk

Step 1: Install Apache and configure support for PHP

Click the installation file Apache_2.0.50-win32-x86-no_ssl.msi

Install Apache in D: / Apache2 directory (with yourself)

Unzip the contents of php-5.0.0-win32.zip to D: / PHP

Find the php.ini-dist of the php.ini-dist of the php.ini and copy it to the Windows directory (Win2k is WinNT)

As my php.ini is copy to D: / windows directory

Copy PHP5Ts.dll, libmysql.dll in the PHP catalog (System / System32), if you are D: / Windows / System, configure httpd.conf in Apache

Open d: /apache2/conf/httpd.conf this file

Find AddDefaultCharset ISO-8859-1 to change it to AddDefaultCharset GB2312 (let the default language to encode Simplified Chinese)

Find DocumentRoot "D: / Apache2 / HTDOCS" to change it to your web directory (can not change) as my DocumentRoot "D: / Website"

Find DirectoryIndex index.html index.html.var Add index.htm index.php

Select Installation Mode: Modular mode installation or CGI mode installation (optionally)

-------------- Modular installation configuration ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----

Find #LoadModule SSL_Module Modules / Mod_ssl.so, join the 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

Locate AddType Application / X-gzip .gz .tgz, join a line after this line

AddType Application / X-httpd-php .php

-------------- CGI installation configuration -------------------------------- -----

Locate AddType Application / X-gzip .gz .tgz, join as follows

Scriptalias / PHP / "D: / PHP /"

AddType Application / X-httpd-php .php

Action Application / X-httpd-php "/php/php-cgi.exe"

-------------------------------------------------- -------------

At this point, the PHP environment is basically configured.

Built a file content called Test.php in the web root directory (such as my D: / Website) as follows

Restart Apache service

Open http://localhost/test.php with your browser

If you can see the PHP configuration output information, you can install MySQL on the second step to install mysql to the specified directory.

Then click D: /Mysql/bin/winmysqladmin.exe in which D: / MySQL is your MySQL installation directory

Enter the initial user and password of Winmysqladmin (Note: This is not the user, password in MySQL, no need to pay

After determining, your lower right corner task will appear a traffic light icon. The red light is on behalf of the service stop, the green light is on behalf of the service, the left click this icon -> WinNT-> Install the service Install this service

Click this icon again -> Winnt-> Start The Service Launches MySQL Service

Modify the root password of the mysql database

Enter the life with CMD to enter the following command: (Note: D: / mysql is mysql installation directory)

CD D: / mysql / bin

mysqladmin -u root -p password 123456

Enter the cargo

ENTER Password: (Note: This is called you to enter the original password. The password is empty when you just install it, so you can use it directly to enter!

At this time, the password of the account root in mysql is changed to 123456 installation.

Third, configure php.ini and test mysql (php.ini is pHP.ini under Windows)

Find extension_dir = "./" changed to extension_dir = "d: / php / ext"

turn up

EXTENSION = php_mysql.dll

Will ';' go to change

EXTENSION = php_mysql.dll

turn up

; session.save_path = "/ tmp"

Will ';' Remove Settings You Save Session Directory, such as

Session.save_path = "d: / php / session_temp";

Restart Apache Services

Establishing TestDb.php files in the web root directory (such as D: / Website) as follows:

$ link = mysql_connect ('localhost', 'root', '123456');

IF (! $ link) echo "fail";

Else Echo "Success";

MySQL_Close ();

?>

Open http://localhost/testdb.php if the output Success is OK.

Fourth, PHPMYADMIN installation configuration

Unzip phpMyadmin-2.5.7.zip to the web root directory, rename the folder to phpmyadmin or other

Open config.inc.php in the phpMyadmin directory

turn up

$ cfg ['Servers'] [$ I] ['User'] = 'root';

$ CFG ['Servers'] [$ I] ['Password'] = '123456';

Fill in your MySQL user and password, you can

If it is not used locally, it is best to add verification

I don't know if I write is right! However, I am basically worthy! It should be almost the same as learning.

转载请注明原文地址:https://www.9cbs.com/read-115679.html

New Post(0)