Quick guide to install plog under FC4 (plog version: 1.01)_PHP tutorial

WBOY
Release: 2016-07-13 17:31:53
Original
1001 people have browsed it

Author: hellwolf(hellwolf@seu.edu.cn)
From: LinuxSir.org
Abstract: Install the plog program in FC4

++++++++++ +
Text
+++++++++++

1. Introduction


Blog can be said to be the upstart on the Internet nowadays, and you should probably have one too A lot of blog space, right? Have you ever thought about providing blog services on your own machine? We highly recommend plog here. plog is a powerful blog system based on php(as the current mainstream development language), designed with maximum customizability and execution efficiency in mind. As an open source project (GPL agreement), it is necessary to obtain it For community support you can visit http://www.plogworld.net/.


2. Preparation

1. Download plog 1.01


Please go to http://sourceforge.net/projects /plogDownload plog1.01.
Then unzip plog-1.0.1.tar.gz to the html_doc directory of your apache (the most popular WEB server platform on Unix platform) (the default is /var/www/html)


2. Configure apache (the most popular WEB server platform on 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.

It should be noted that the default apache (the most popular WEB server platform on the Unix platform) turns off the global AllowOverride, but there is a .htaccess in the plog directory (small website (favorite) file, so in order to avoid hidden security issues, you need to turn on the AllowOverride attribute at least in the plog directory.

3. Configure php(as the current mainstream development language), and solve php(as the current mainstream development language)5 compatibility issues

Modify /etc/php(as the current mainstream development language).ini:
1. Change memory_limit to a value greater than 16M
2. Modify: register_long_arrays = On
Otherwise there will be problems with the session.

2. Configuration plog


Start your apache (the most popular WEB server platform on Unix platform) and MySQL (The best combination with PHP)


#/sbin/service httpd start
#/sbin/service MySQL(The best combination with PHP)d start

Create MySQL for plog(The best combination with PHP) User

#MySQL(The best combination with PHP) -u -p
password:
MySQL(The best combination with PHP)>create database plog
MySQL(The best combination with PHP)>grant all on plog.* to plog@localhost
MySQL(The best combination with PHP)> set password for plog@localhost=password("");

Open your favorite browser and enter:
http://localhost/plog-1.01/
Okay Now, follow the wizard mode step by step to configure your blog!

3. Templates and plug-ins


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


1. Install the theme

First download a theme file, such as mars-spirit.zip. There are two ways to install the theme:
1. Unzip the zip file to the templates directory under the plog directory. Then click Scan Template on the management page, and the new template will be scanned and installed correctly.
2. Upload the zip file in the management page and install it directly.


2. Install the plug-in

Download the plug-in guestbook.zip and extract it to the plugins directory. Activate guestbook in Control Center -> Plug-in Settings on the management page. Then add {$guestbook->pluginTemplatePage()} to the appropriate location of your template file to see the guestbook interface on the
page. (In fact, {$guestbook->pluginTemplatePage()} just gets an address, similar to http://host/plog/index.php(as the current mainstream development language)?op=Guestbook&blogId= 1)

Note: A problem with the current guestbook is that problems may occur when the guestbook table is empty. The solution is to just insert a row of data into the {prefix}_guestbook table.


4. Personalization

The default css of plog displays Chinese too small. You can modify the files in templates/ and styles/. Regarding how to modify it, if you know CSS, I don’t need to say more. Don’t you understand? Then take a look at this information:)


Happy plogging!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508911.htmlTechArticleAuthor: hellwolf(hellwolf@seu.edu.cn) From: LinuxSir.org Summary: Install plog in FC4 Program +++++++++++ Text +++++++++++ 1. Introduction Blog can be said to be the upstart of the Internet nowadays. It must be...
Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!