Apache + MySQL + PHP5.0 + Bugfree configuration process

xiaoxiao2021-03-06  15

1.

Install Apache

a)

Download Apache latest version and install

b)

Modify httpd.conf file: listen 8081, listening to 8081 port

2.

Modify WIN Server configuration

a)

Open TCP 8081 port

3.

Install mysql

a)

Download the latest mysql and install

b)

Change your password through MySQL Control Center after installation

c)

Cover the Data folder of Bugfree's Data folder

d)

Restart the MySQL service update data

4.

Install PHP

a)

Download the latest PHP and install

b)

After installing, change the php.ini.dist under the PHP directory to php.ini and put it in the Winnt directory.

c)

Write extension_dir = ??? to write the path of Extensions in the PHP directory

5.

Connect PHP and MySQL

a)

Copy the libmysql.dll under the PHP directory to the system directory

b)

Remove the # 号 = php_mysql.dll's extension = php_mysql.dll

6.

Connect PHP and Apache

a)

Join LoadModule PHP5_Module C: /PHP/php5apache2.dll

b)

Add AddType Application / X-httpd-PHP .php

c)

Add INDEX.PHP at the end of DirectoryIndex

d)

Restart Apache

7.

Install Bugfree (ZT)

a)

Unzip Bugfree to C: / Web

b)

In the httpd.conf configuration file, add Bugfree virtual directory, virtual script directory

Alias ​​/ Bugfree "C: / Web / Bugfree"

Options Indexes MultiViews

ALLOWOVERRIDE NONE

ORDER ALOW, DENY

ALLOW FROM ALL

Scriptalias / bugfree / "c: / web / bugfree /"

ALLOWOVERRIDE NONE

Options none

ORDER ALOW, DENY

ALLOW FROM ALL

c)

Modify c: /web/bugfree/include/configbug.inc.php, change the two passwords to the above root

$ Bugconfig ["bugdb"] ["password"] = "123456";

$ Bugconfig ["userdb"] ["password"] = "123456";

# 123456 is the rouotWord in MySQL, if it is another password, the corresponding modification

d)

Generate Bugfree database

Generate bugfree data, in the command line state:

C:> mysql -h 127.0.0.1 -u root -p,: Then enter the root password 123456

MySQL> Create Database Bugfree;: Building a database

Establish a bugfree form:

Mysql -u root -p bugfree

e)

Modify php.ini

PHP.INI is located in C: / PHP, modified:

Allow_call_time_pass_reference = on

Error_Reporting = E_ALL

Register_globals = on

# In order to check the error, ERROR_REPORTING is set to e_all, indicating that all information will display f)

Modify the path because the web root directory is not in the default installation directory

Browse Bugfree, find path errors, modify httpd.conf

#Documentroot "h: / program files / apache group / apache2 / htdocs"

DocumentRoot "C: / Web"

g)

Generate AdoDB-Iterator.inc.php files

Browse Bugfree,

I found that "AdoDb-Iterator.Inc.php" file is not found (this file will be used when running PHP5),

Find the adodb-iterator.inc.php file from the Internet, save to C: / Web / Bugfree / include / Class / ADO.

h)

Modify ERROR REPORT attribute

Browse Bugfree, you can see the login interface, but find information with Notice, modify php.ini

# RROR_REPORTING = E_ALL

ERROR_REPORTING = E_ALL & ~ E_NOTICE & ~ E_STRICT

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

New Post(0)