Installation FC4 Web servers plog Quick Guide (plog Version: 1.01)

Author: hellwolf ( hellwolf AT seu.edu.cn )
from: LinuxSir.org
Summary: plog installation program in FC4, plog is a powerful PHP-based blog system;
+++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++
text
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++


I. Introduction

blog nowadays can be described as upstart network, surely you should also have a lot of blog space, right? Have you ever wondered provide blog services on their own machines? Here we strongly recommend plog. plog is a powerful PHP-based blog system, the maximum customizability and efficiency considerations designed as an open source project (GPL agreement) to get his community support you can access http://www.plogworld.net /;

Second, the preparatory work


1, download plog 1.01
go http://sourceforge.net/projects/plog download plog1.01.
Then decompress plog-1.0.1.tar.gz to the html_doc below your apache directory (default is / var / the WWW / HTML)
2, configured apache and mysql

this is not the focus of this article, you can refer to other communities article.

Note: The default apache global AllowOverride is closed, but there is a .htaccess file in the directory plog, so in order to avoid hidden safety problems, you need to open at least AllowOverride property in the following directory plog.
3, configured php, php5 and resolve compatibility issues of

modifications /etc/php.ini:
1) change the memory_limit value greater than 16M of
2) Modify: register_long_arrays = On
or session that can go wrong.

Second, the configuration plog


start your apache and mysql
#/sbin/service httpd start
#/sbin/service mysqld start

Create a mysql user plog
#mysql -u <管理员帐号>  -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, enter:
HTTP: //localhost/plog-1.01/
Well, follow the wizard mode step by step to configure your blog now!

Third, templates and plug-ins

have a lot of 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 the theme

first download the file a theme, such as mars-spirit.zip. There are two ways to install theme:
1. Extract the zip file to the templates directory under plog directory. Then click on the Scan template management page, the new template is scanned and properly installed.
2, in the management page, upload zip files directly installed.
2, install the plugin

download plugin guestbook.zip, unzip the plugins directory. In the control center management page -> Plug-in settings activated guestbook. Then add {$ guestbook-> pluginTemplatePage ()} will be in place in your template file
to see the message boards of the interface page. (In fact, {$ guestbook-> pluginTemplatePage ()} is to get an address, similar to http:? //Host/plog/index.php op = Guestbook & blogId = 1)

Note: The current message boards there is a problem is that when message boards problems may occur when the table is empty, the solution is just _guestbook table insert a row like in {prefix}.

Fourth, personalized


plog default Chinese css display is too small, you can modify the templates /, styles / files inside. On how to modify, if you do not know css I say, I do not understand? That find this information to see it :)
plog happy!

Reproduced in: https: //www.cnblogs.com/licheng/archive/2008/01/23/1050092.html

Guess you like

Origin blog.csdn.net/weixin_33852020/article/details/92630935