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 to build the environment of Apache+MySQL+PHP

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article focuses on "how to build an Apache+MySQL+PHP environment", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to build an Apache+MySQL+PHP environment.

1. Installation settings: you can customize the storage location of the WWW root directory. It is strongly recommended to put it in secure partitions such as D disk to avoid data loss in case the system crashes.

2. For Chinese users, after the installation, the first thing to set is to change the database default code of MySQL to UTF-8, which can eliminate a lot of Chinese garbled problems: select Open my (wamp) .ini from the WAMP5 menu, set default-character-set=utf8, and then restart WAMP5.

3. The default password for the database is empty. You can set the password for the root account to 123456 in phpMyAdmin. Of course, after you modify it, you must modify the configuration file config.inc.php of phpMyAdmin, otherwise phpMyAdmin cannot enter the database:

$cfg ['Servers'] [$I] [' user'] = 'root'

$cfg ['Servers'] [$I] [' password'] = '123456'

4. If you need mysql4.x + php4.x, you can choose WAMP5 version 1.44 and the plug-in PHP4.3.11.

5. Because the method of password verification has been changed in the later version of MySQL4.1, if you use php4.x in WAMP5, you need to enable the old password function of MySQL, otherwise you can't log in to phpMyAdmin. Select MySQL/Mysql console from the WAMP5 menu and enter the following command:

Mysql > SET PASSWORD FOR

-> 'root'@'localhost' = OLD_PASSWORD (' 123456')

6. Time zone issues of concern to XOOPS users: the default time zone of WAMP5 is Greenwich mean time (GMT), which means that the default server time zone of WAMP5 is GMT, but we can change the default time zone of the server to correspond to Beijing time. Open php.ini in the WAMP5 menu and add the following code at the end of the document:

[Date]

; Defines the default timezone used by the date functions

Date.timezone = "Asia/Shanghai"

If you are not in Beijing, you can change the above settings. For more information, please see http://us2.php.net/manual/en/timezones.php.

After setting the above WAMP5, we can set the time zone in XOOPS like this: the server time zone, the default time zone, and the personal account time zone are all set to the above time zone, for example: Beijing time (GMT+8)

OK, this is the secret of all AMP settings!

At this point, I believe you have a deeper understanding of "how to build an Apache+MySQL+PHP environment". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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

Database

Wechat

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

12
Report