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

Source: Internet
Author: User

By 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 blog system based on php (as the mainstream development language). It is designed 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.
Then decompress plog-1.0.1.tar.gz to the html_doc directory of your apache (the most popular WEB server platform on Unix) (/var/www/html by default)


2. Configure apache (the most popular WEB server platform on the Unix platform) and MySQL (the best combination with PHP)

This is not the focus of this article. You can refer to other articles in the community.

Note that by default, apache (the most popular WEB server platform on the Unix platform) disables global AllowOverride, but the plog directory contains. htaccess (a favorite of small websites) files. To avoid hidden security problems, you must open the AllowOverride attribute in the directory of plog at least.

 

3. Configure php (as the mainstream development language) and solve the compatibility problem of php (as the mainstream development language) 5.

Modify/etc/php (as the mainstream development language). 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 (the most popular WEB server platform on the Unix platform) and MySQL (the best combination with PHP)


#/Sbin/service httpd start
#/Sbin/service MySQL (the best combination with PHP) d start

Create a MySQL (best combination with PHP) user for plog

# MySQL (best combination with PHP)-u <Administrator Account>-p
Password: <your input>
MySQL (best combination with PHP)> create database plog
MySQL (best combination with PHP)> grant all on plog. * to plog @ localhost
MySQL (best combination with PHP)> 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 (as the mainstream development language )? 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.