FC4下安装plog快速指南(plog版本:1.01)
作者:hellwolf(hellwolf@seu.edu.cn)
来自:LinuxSir.org
提要: 在FC4中安装plog程序
+++++++++++
正文
+++++++++++
一、简介
blog可谓是时下网络的新贵,想必你也应该有好多blog的空间吧?那你有没有想过在自己的机器上提供blog服务呢?我们在这里强烈推荐 plog。plog是一个强大的基于php(做为现在的主流开发语言)的blog系统, 设计时考虑的最大的可定制性和执行效率. 作为一个开源项目(GPL协议)要获得他的社区支持 你可以访问http://www.plogworld.net/。
二、准备工作
1、下载plog 1.01
请到http://sourceforge.net/projects/plog下载plog1.01。
然后解压缩plog-1.0.1.tar.gz到你的apache(Unix平台最流行的WEB服务器平台)的html_doc目录下面(默认是/var/www/html)
2、配置好apache(Unix平台最流行的WEB服务器平台)和MySQL(和PHP搭配之最佳组合)
这并不是本文的重点,你可以参考社区的其他文章。
需要注意的是:默认apache(Unix平台最流行的WEB服务器平台)是关闭全局的AllowOverride的,但plog目录下有个.htaccess(小型网站之最爱)文件,所以为了避免隐藏的安全问题,你需要至少在plog的目录下面打开AllowOverride属性。
3、配置好php(做为现在的主流开发语言),并解决php(做为现在的主流开发语言)5的兼容性问题
修改/etc/php(做为现在的主流开发语言).ini:
1、将memory_limit 改成大于16M的值
2、修改:register_long_arrays = On
否则session方面会出问题。
二、配置plog
启动你的apache(Unix平台最流行的WEB服务器平台)和MySQL(和PHP搭配之最佳组合)
#/sbin/service httpd start
#/sbin/service MySQL(和PHP搭配之最佳组合)d start
为plog创建MySQL(和PHP搭配之最佳组合) 用户
#MySQL(和PHP搭配之最佳组合) -u -p
password:
MySQL(和PHP搭配之最佳组合)>create database plog
MySQL(和PHP搭配之最佳组合)>grant all on plog.* to plog@localhost
MySQL(和PHP搭配之最佳组合)>set password for plog@localhost=password("
打开你喜欢的浏览器,输入:
http://localhost/plog-1.01/
好了,按照向导模式一步一步配置你的blog吧!
三、模板和插件
http://sourceforge.net/projects/plog上有很多模板和插件。这里举两个例子来说明如何安装模板和插件。
1、安装主题
首先下载一个主题的文件,比如mars-spirit.zip。有两种方法安装主题:
1、将zip文件解压到plog目录下的templates目录下。然后在管理页面中点击扫描模板,新的模板就扫描并正确安装了。
2、在管理页面中上传zip文件直接安装。
2、安装插件
下载插件guestbook.zip,解压到plugins目录下面。在管理页面的 控制中心—>插件设置中激活guestbook。然后在你的模板文件的适当位置加上{$guestbook->pluginTemplatePage()}就可以在
页面看到留言版的界面了。(其实{$guestbook->pluginTemplatePage()}就是得到一个地址,类似于http://host/plog/index.php(做为现在的主流开发语言)?op=Guestbook&blogId=1)
注意:目前的留言版有个问题就是,当留言版的表为空时可能会出现问题,解决办法就是随便在{prefix}_guestbook表中插入一行数据就好了。
四、个性化
plog默认的css显示的中文太小了,你可以修改templates/、styles/里面的文件。关于如何修改,如果你懂css就不用我多说了,不懂?那找本资料看看吧:)
plog快乐!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

VSCode Setup in Chinese: A Complete Guide In software development, Visual Studio Code (VSCode for short) is a commonly used integrated development environment. For developers who use Chinese, setting VSCode to the Chinese interface can improve work efficiency. This article will provide you with a complete guide, detailing how to set VSCode to a Chinese interface and providing specific code examples. Step 1: Download and install the language pack. After opening VSCode, click on the left

Regarding Llama3, new test results have been released - the large model evaluation community LMSYS released a large model ranking list. Llama3 ranked fifth, and tied for first place with GPT-4 in the English category. The picture is different from other benchmarks. This list is based on one-on-one battles between models, and the evaluators from all over the network make their own propositions and scores. In the end, Llama3 ranked fifth on the list, followed by three different versions of GPT-4 and Claude3 Super Cup Opus. In the English single list, Llama3 overtook Claude and tied with GPT-4. Regarding this result, Meta’s chief scientist LeCun was very happy and forwarded the tweet and

Installing Android applications on Linux has always been a concern for many users. Especially for Linux users who like to use Android applications, it is very important to master how to install Android applications on Linux systems. Although running Android applications directly on Linux is not as simple as on the Android platform, by using emulators or third-party tools, we can still happily enjoy Android applications on Linux. The following will introduce how to install Android applications on Linux systems.

If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu24. To update the system, we first need to update the system and open the Terminal shell of Ubuntu24. During both installation and upgrade processes, we need to use the command line. a simple

The meaning and difference of PHP version NTS PHP is a popular server-side scripting language that is widely used in the field of web development. There are two main versions of PHP: ThreadSafe(TS) and Non-ThreadSafe(NTS). On the official website of PHP, we can see two different PHP download versions, namely PHPNTS and PHPTS. So, what does PHP version NTS mean? What is the difference between it and the TS version? Next,

While studying in high school, some students take very clear and accurate notes, taking more notes than others in the same class. For some, note-taking is a hobby, while for others, it is a necessity when they easily forget small information about anything important. Microsoft's NTFS application is particularly useful for students who wish to save important notes beyond regular lectures. In this article, we will describe the installation of Ubuntu applications on Ubuntu24. Updating the Ubuntu System Before installing the Ubuntu installer, on Ubuntu24 we need to ensure that the newly configured system has been updated. We can use the most famous "a" in Ubuntu system

Detailed steps to install Go language on Win7 computer Go (also known as Golang) is an open source programming language developed by Google. It is simple, efficient and has excellent concurrency performance. It is suitable for the development of cloud services, network applications and back-end systems. . Installing the Go language on a Win7 computer allows you to quickly get started with the language and start writing Go programs. The following will introduce in detail the steps to install the Go language on a Win7 computer, and attach specific code examples. Step 1: Download the Go language installation package and visit the Go official website

Installing Go language under Win7 system is a relatively simple operation. Just follow the following steps to successfully install it. The following will introduce in detail how to install Go language under Win7 system. Step 1: Download the Go language installation package. First, open the Go language official website (https://golang.org/) and enter the download page. On the download page, select the installation package version compatible with Win7 system to download. Click the Download button and wait for the installation package to download. Step 2: Install Go language
