Quick Guide for plog installation under FC4 (plog version: 1.01)

Source: Internet
Author: User
Tags php source code

Introduction: This is a detailed page of The plog Quick Guide for installing plog in FC4 (plog version: 1.01). It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 323732 'rolling = 'no'>

By hellwolf (hellwolf@seu.edu.cn)
From: linuxsir.org
Abstract: Install plog in FC4Program

Body

I. Introduction

Blog is a new and expensive network nowadays. You should also have a lot of blog space, right? Have you ever thought about providing the blog service on your machine? Plog is strongly recommended here. Plog is a powerful PHP-based Blog system. It is designed with the highest customization and execution efficiency. As an open-source project (GPL Protocol ),CommunityYou can access http://www.plogworld.net /.

2. Preparations

1. Download plog 1.01

Go to http://sourceforge.net/projects/plogto download plog1.01.
Uncompress plog-1.0.1.tar.gz to your Apache html_doc directory (/var/www/html by default)

2. Configure Apache and MySQL

This is not the focus of this article. You can refer to otherArticle.

Note that by default, Apache disables global AllowOverride, but the plog directory contains. htaccess file. To avoid hidden security problems, you must open the AllowOverride attribute at least under the plog directory.

3. Configure PHP and solve PhP5 compatibility problems

Modify/etc/PHP. ini:
1. Change memory_limit to a value greater than 16 m.
2. Modify: register_long_arrays = on
Otherwise, session problems may occur.

Ii. Configure plog

Start your Apache and MySQL

#/Sbin/service httpd start
#/Sbin/service mysqld start

Create a MySQL user for plog

# Mysql-u <Administrator Account>-P
Password: <your input>
Mysql> Create Database plog
Mysql> grant all on plog. * To plog @ localhost
Mysql> set password for plog @ localhost = PASSWORD ("<your password> ");

Open your favorite browser and enter:
Http: // localhost/plog-1.01/
Now, configure your blog step by step in wizard mode!

Iii. templates and plug-ins

There are many templates and plug-ins on http://sourceforge.net/projects/plog. Here are two examples to illustrate how to install templates and plug-ins.

1. Install theme

First download a topic file, such as mars-spirit.zip. There are two ways to install theme:
1. decompress the ZIP file to the templates directory under the plog directory. Click scan template on the Management page. The new template is scanned and installed correctly.
2. Upload a zip file on the Management page for installation.

2. Install the plug-in

Download the plug-in guestbook.zip and decompress it to the Plugins directory. Go to control center> plug-in settings on the Management page to activate guestbook. Add {$ guestbook-> plugintemplatepage ()} to the appropriate location of your template file.
The message board page is displayed. (In fact, {$ guestbook-> plugintemplatepage ()} is to get an address, similar to http: // host/plog/index. php? OP = guestbook & blogid = 1)

Note: A problem with the message board is that when the table of the message board is empty, the problem may occur. The solution is to insert a row of data in the {prefix} _ guestbook table.

Iv. personalization

The default CSS of plog is too small to display Chinese characters. You can modify the files in templates/and styles. I don't need to talk about how to modify CSS? Check this document :)

Happy plog!

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/323732.html pageno: 16.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.