Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How should WinXP install the Apache+MySQL+PHP environment

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "WinXP should install Apache+MySQL+PHP environment". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to handle these situations! I hope you can read carefully and learn something!

Installation steps:

In the whole wamp environment setup, the essential work is as follows:

1. Configure the system to call dll files in php by default.

Under windos, there are two ways to invoke the dll file system by default.

The first is to copy the dll file that needs to be called to the C:windows system32 (C:WINNT system32 if it is Windows 2000) directory.

The second is: add the address of the folder where the.dll suffix file is located to the path variable of the system. In this way, when the system starts, the dll file will be automatically loaded into memory by default.

The third is: put php.ini; extension_dir = "./ "Modified to extension_dir = "D:/php5/ext"

Note that Apacche server needs to be restarted to take effect.

2, apache configuration, the essence is to let apache server software, able to parse.php files.

Configured in httpd.conf and php.ini respectively.

httpd.conf:

2-1, configure root directory

The code is as follows:

DocumentRoot D:/wwwroot----This is the first place, the red-letter part, modified to the local apache website code home folder, that is, the main folder where the project code is stored.

Directory "D:/wwwroot"-this is the second place, ibid.

2-2, configure directory index

The code is as follows:

DirectoryIndex index.html index.html.var index.php index.html

2-3 PHP and Apache2

The code is as follows:

LoadModule php5_module D:/php5/php5apache2.dll-------Load php as module

PHPINIDir "D:/php"------------------Specify php configuration file php.ini location

AddType application/x-httpd-php .php

AddType application/x-httpd-php .html-----------Add file types that can execute php

DirectoryIndex index.php index.html index.html. var----Configure index directory default file

php.ini modified:

1. Set how PHP passes parameters

The code is as follows:

register_globals=Off/On

Off means that arguments can only be passed with $_post ('variable name'),$_GET ('variable name')

Set to On, you can use the $variable name directly to get the passed parameter value

2. Set the dll module that needs to be loaded. The following must be configured.

The code is as follows:

;extension=php_gd2.dll-----GD library extension file, user processing images, such as generating images, image clipping compression, watermarking images, etc.

;extension=php_mbstring.dll------Large character set, supports conversion between multiple character sets

;extension=php_mcrypt.dll

;extension= php_mysql.dll

;extension=php_mysqli.dll

Remove the semicolon and set up the dll module to load. The above are basically removed.

The difference between wamp and lamp environment is the way the system loads dll files in php.

The combination of apahce and php, under window and linux/unix, is basically the same, are modified httpd.conf and php.ini to achieve.

Therefore, in practice, the quickest way to manually configure a server is:

1, manually install apache server, manually install configuration php.

2. On the basis of the previously configured php.ini and httpd.conf files, the two files are copied directly to the relevant directory.

The key directories that need to be modified for httpd.conf are mainly:

Configure Root Directory

The code is as follows:

DocumentRoot D:/wwwroot----This is the first place, the red-letter part, modified to the local apache website code home folder, that is, the main folder where the project code is stored.

Directory "D:/wwwroot"-this is the second place, ibid.

These two changes are basically done.

"WinXP should be how to install Apache+MySQL+PHP environment" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report