您的位置:首页 > 其它

如何搭建一个属于自己的轻博客。。。向网易轻博客一样

2012-12-02 16:37 429 查看
首先你要配置好你的环境

请参照上一篇

ubuntu 配置apache+php+mysql

这样配置好环境以后

去下载一个gelato的cms系统

解压缩以后放到

/var/www里

http://gelatocms.com/

然后打开浏览器输入:

localhost/gelato/

如果你把gelato的文件放到了www里就直接

localhost

发现个问题,图片缩略图不能显示

为支持更高级的图片显示功能需要安装GD图形支持
在ubuntu Server 下,装gd,命令为:
sudo apt-get install php5-gd
重启apache:
/etc/init.d/apache2 restart

这样就OK了

How to install gelato CMS

Download and unzip the gelato package, if you haven't already.(下载解压缩)

Create a database for gelato on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.(最好准备好你的数据库的账户和密码)

Rename the
config-sample.php
file to
config.php
.(重命名)

Open
config.php
in your favorite text editor and fill in your database details.(写不写都行,因为下面install还会自动配置)

Place the gelato files in the desired location on your web server.

Run the gelato installation script by accessing
install.php
in your favorite web browser.

If you installed gelato in the root directory, you should visit:
http://example.com/install.php


If you installed gelato in its own subdirectory called blog, for example, you should visit:
http://example.com/blog/install.php(填上该填的)


Set CHMOD / permission ( Chmod 777 ) to the folder '
uploads
'

记住把文件copy到www下因为有的路径有问题

打开localhost看看。不懂的留言。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: