Home Database Mysql Tutorial 实战经验:PHP+MySQL数据库论坛简易通_MySQL

实战经验:PHP+MySQL数据库论坛简易通_MySQL

Jun 01, 2016 pm 02:03 PM
mysql p Install Actual combat database server experience forum

 

校园论坛是校园网中不可缺少的部分之一。虽然基于ASP+ACCESS的论坛使用简洁,安装方便,但MySQL数据库以它短小、方便、速度快、免费等优点成为很多站点目前首选数据库,加上PHP语言也具有可跨平台、移植性高,安全可靠,快速高效的优点,因此目前很多流行论坛程序都采用了PHP+MySQL相结合来开发。不过对于我等菜鸟们来说在服务器上安装PHP+MySQL论坛可不像ASP+ACCESS那么简单,只需要直接放到站点目录下即可运行。因为大多数PHP+MySQL论坛在使用前都需要安装。

 

如果你打算购买虚拟空间来运行PHP+MySQL论坛程序,那么你首先得购买一个支持PHP+MySQL的空间,一般的适合运行小型论坛(200人左右同时在线)程序的虚拟空间每年最低费用一般300元左右。除此而外,还得建立MySQL数据库、创建用户名和密码才能顺利安装PHP+MySQL论坛。有的虚拟空间商直接提供这些信息给你,无需自己动手设置。例如:上海E动网的K300虚拟主机,在后台建立了名称为itlm的数据库后,就自动创建了itlm_f、itlm_r、itlm_w三个用户(密码都是自己设定的)。这样安装时就可以直接使用了。

 

如果学校有自己的服务器(Windows系统),那么就按照下面的步骤一先设置好服务器的运行环境,让服务器支持PHP+MySQL。

 

服务器端软件安装

 

PHP+MySQL论坛程序在大多数情况下都是运行在Linux、UNIX等系统下,但是安装Linux、UNIX系统再配置PHP+MySQL对于我等菜鸟们来说可不是想玩就可以玩起来的!这里笔者向大家推荐一款Win32平台下的一款Web服务器软件:EasyAPM-Server。EasyAPM-Server是 Win2000/XP/。

 

2003 系统下的Apache+PHP+MySQL 运行环境快速集成安装套件。只要一次安装,就自动包含以下程序,Apache v2.0.54(Win32)、PHP v4.4.0(Win32)、Zend Optimizer v2.5.10a(Win32)、MySQL v4.0.25(Win32)、phpMyAdmin v2.6.3-pl1,用户无须修改任何配置文件,对初学者来说是安装最方便、最快速的一款WEB服务器平台!

 

第1步:从以下地址下载EasyAPM-Server2:

 

http://www.byshell.net/Software/Catalog143/4075.html

 

第2步:将下载的文件解压到服务器d:\usr;

 

第3步:在服务器上运行d:\usr\install.bat安装Apache+PHP+MySQL 集成套件;这样,几分钟之内,就让你的服务器(或个人电脑)立刻变成了一台支持PHP+MySQL的服务器。

 

第4步,建立MySQL数据库。在服务器IE地址栏输入:http://localhost/phpmyadmin/,使用phpMyAdmin来建立一个名为itlm的数据库;

 

注意:

 

(1)如果服务器原来已经安装IIS服务,请在安装EasyAPM-Server前停止服务,或改变默认端口,否则会无法正常安装;

 

(2)EasyAPM-Server安装后,默认登录用户名: root ;密码: micronsky.net ,进入后台后可以使用“权限”项来更MySQL数据库的默认密码、添加新的MySQL用户、设置用户权限等操作,这里我们新增了一个用户:itlm_f;

(3)更多操作请查看EasyAPM-Server内的说明文档。

 

安装phpwind3.0.1

 

免费个人版论坛程序

 

第1步:下载解压phpwind安装包。从http://www.phpwind.com/download.php?action=do&&p= PWForums&&v=4.3&&n=PHPWind_GBK_4.3.2.zip下载PHPWind 4.3.2 正式版(PHP+MySQL)高速论坛程序。

 

第2步:上传phpwind程序文件。如果使用的是虚拟主机,只要用FTP软件将解压后的所有文件上传到网站根目录下,确保在根目录下能看到install.php就可以了!

 

如果是自己的服务器安装的EasyAPM-Server,只要先删除D:\usr\www下除phpmyadmin文件夹(在线管理数据库用)外的所有文件,然后将phpwind.zip内的所有文件解压到D:\usr\www下,确保D:\usr\www下能看到install.php文件,这些就是phpwind的论坛的安装程序文件;

 

第3步:设置相关目录和文件的属性(服务器如果是Windows平台的,此步可省略,直接将相关文件或文件夹设置为可写即可)。先确认以下目录或文件属性为(777)可写模式:

 

<ccid_code></ccid_code>data 

data/sql_config.php 

attachment 

data/bbscache 

data/groupdb 

data/style 

htm_data 

template 

template/wind 

template/admin 

image/upload 

image/attach
Copy after login

设置方法:在ftp软件里右击相应的目录和文件,然后选择属性(CHMOD),在弹出的“属性”窗口中,选择所有的复选框,或直接在文本框中输入“777”,最后点一下确定(ok)如图1所示。

 

 

第4步:运行install.php安装论坛。在ie里输入http://你的域名(本机就填:localhost)/install.php,进入安装界面。阅读程序安装条款,点击“同意”按钮继续安装论坛,接着就会出现论坛安装最重要的一步,如图2所示。如果此处有红色的错误提示,说明你的属性设置有问题,请按照提示重新设置!这里填写的数据库用户名、数据库密码和数据库名一定要按照前面建立的名称密码来填写!如果是第一次安装,表分区符号项就不要修改了。创始人资料如实填写,登录论坛后台,管理论坛等都需要输入这个账号和密码!填写完后,点击“开始安装”按钮,进入下面的页面按照屏幕上的提示就可以顺利完成论坛的安装了!完成论坛安装后,可以直接进入后台设置论坛参数。

 

设置论坛

 

论坛刚刚安装完毕,只有一个默认板块,用管理员账号登录论坛后台程序,添加合适的论坛版面!再申请一个域名,解析到服务器上,就可以让网上的朋友们访问了!

 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1665
14
PHP Tutorial
1269
29
C# Tutorial
1249
24
MySQL and phpMyAdmin: Core Features and Functions MySQL and phpMyAdmin: Core Features and Functions Apr 22, 2025 am 12:12 AM

MySQL and phpMyAdmin are powerful database management tools. 1) MySQL is used to create databases and tables, and to execute DML and SQL queries. 2) phpMyAdmin provides an intuitive interface for database management, table structure management, data operations and user permission management.

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

Explain the purpose of foreign keys in MySQL. Explain the purpose of foreign keys in MySQL. Apr 25, 2025 am 12:17 AM

In MySQL, the function of foreign keys is to establish the relationship between tables and ensure the consistency and integrity of the data. Foreign keys maintain the effectiveness of data through reference integrity checks and cascading operations. Pay attention to performance optimization and avoid common errors when using them.

Compare and contrast MySQL and MariaDB. Compare and contrast MySQL and MariaDB. Apr 26, 2025 am 12:08 AM

The main difference between MySQL and MariaDB is performance, functionality and license: 1. MySQL is developed by Oracle, and MariaDB is its fork. 2. MariaDB may perform better in high load environments. 3.MariaDB provides more storage engines and functions. 4.MySQL adopts a dual license, and MariaDB is completely open source. The existing infrastructure, performance requirements, functional requirements and license costs should be taken into account when choosing.

SQL vs. MySQL: Clarifying the Relationship Between the Two SQL vs. MySQL: Clarifying the Relationship Between the Two Apr 24, 2025 am 12:02 AM

SQL is a standard language for managing relational databases, while MySQL is a database management system that uses SQL. SQL defines ways to interact with a database, including CRUD operations, while MySQL implements the SQL standard and provides additional features such as stored procedures and triggers.

Redis: Understanding Its Architecture and Purpose Redis: Understanding Its Architecture and Purpose Apr 26, 2025 am 12:11 AM

Redis is a memory data structure storage system, mainly used as a database, cache and message broker. Its core features include single-threaded model, I/O multiplexing, persistence mechanism, replication and clustering functions. Redis is commonly used in practical applications for caching, session storage, and message queues. It can significantly improve its performance by selecting the right data structure, using pipelines and transactions, and monitoring and tuning.

How to safely store JavaScript objects containing functions and regular expressions to a database and restore? How to safely store JavaScript objects containing functions and regular expressions to a database and restore? Apr 19, 2025 pm 11:09 PM

Safely handle functions and regular expressions in JSON In front-end development, JavaScript is often required...

MySQL: The Database, phpMyAdmin: The Management Interface MySQL: The Database, phpMyAdmin: The Management Interface Apr 29, 2025 am 12:44 AM

MySQL and phpMyAdmin can be effectively managed through the following steps: 1. Create and delete database: Just click in phpMyAdmin to complete. 2. Manage tables: You can create tables, modify structures, and add indexes. 3. Data operation: Supports inserting, updating, deleting data and executing SQL queries. 4. Import and export data: Supports SQL, CSV, XML and other formats. 5. Optimization and monitoring: Use the OPTIMIZETABLE command to optimize tables and use query analyzers and monitoring tools to solve performance problems.

See all articles