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

Source: Internet
Author: User
Author: hellwolf (hellwolf@seu.edu.cn) from: LinuxSir.org abstract: install plog program in FC4 body I. introduction blog can be described as the current network of the new expensive, presumably you should also have a lot of blog space? Have you ever thought about providing the blog service on your machine? Plog is strongly recommended here. Plog is a powerful PHP-based author: hellwolf (hellwolf@seu.edu.cn)
From: LinuxSir.org
Abstract: install the plog program in FC4


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 with the highest customization and execution efficiency. as an open-source project (GPL protocol), you can access http://www.plogworld.net/for community support /.


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 other articles in the community.

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 <管理员帐号> -P
Password:
Mysql> create database plog
Mysql> grant all on plog. * to plog @ localhost
Mysql> set password for plog @ localhost = 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!

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.