(1) 先安装MySQL
perl-DBI-1.52-1.fc6.i386.rpm
mysql-5.0.45-7.el5.i386.rpm
perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
mysql-server-5.0.45-7.el5.i386.rpm
(2) 安装PHP
php-common-5.1.6-20.el5.i386.rpm
php-cli-5.1.6-20.el5.i386.rpm
php-5.1.6-20.el5.i386.rpm
php-pdo-5.1.6-20.el5.i386.rpm
php-mysql-5.1.6-20.el5.i386.rpm
配置php,让它支持老版本的php,需要修改/etc/httpd/conf.d/php.conf :
AddType text/html .php .php3 create database bblog; grant all privileges on bblog.* to bblogadmin@localhost
identified by '1qaz2wsx' ;
Query OK, 0 rows affected (0.00 sec)
mysql> show databases;
+----------+
| Database |
+----------+
| bblog | connect bblog ; //测试用户bblogadmin连接到数据库bblog
OK! //有OK表示成功;
mysql>show tables; //查看bblog数据库中的表,应该为空;
mysql> exit //退出mysql
(5)安装bBlog站点:
http://你的IP地址/bblog/install.php
按步骤安装;
bBlog need to be able to write to disk to store it's cache of templates, and if you want to use the blo.gs favorites functionality.
We will now check the permissions of the 'cache' folder, the 'compiled_templates' folder, and the 'cache/favorites.xml' file. They all need to be writable by the webserver. This will involve chmodding the folders and files with your ftp client ( if you're not using ftp you probally know what do do here ). Permissions should either be 775. If that doesn't work, 777 will.
Additionally, ./config.php should be writable during the install. At the end of the install when the config file is written to disk, you should change the permissions back so it is not writable by the webserver.
./cache is NOT writable
./compiled_templates is NOT writable
./cache/favorites.xml is NOT writable
./config.php is NOT writable
改变上述文件权限为可写:
配置数据库:
安装完成:还需要删除站点目录下的安装目录 bblog/install,并把站点主目录下的bblog/config.php文件的可写权限去掉;
显示你的个人blog:
http://你的IP地址/
管理你的个人blog,加新日志等;
http://你的IP地址/bblog
|