首先你要配置好你的环境

请参照上一篇

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

  1. Download and unzip the gelato package, if you haven't already.(下载解压缩)
  2. Create a database for gelato on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.(最好准备好你的数据库的账户和密码)
  3. Rename the config-sample.php file to config.php.(重命名)
  4. Open config.php in your favorite text editor and fill in your database details.(写不写都行,因为下面install还会自动配置)
  5. Place the gelato files in the desired location on your web server.
  6. 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(填上该填的)
  7. Set CHMOD / permission ( Chmod 777 ) to the folder 'uploads'
  8. 记住把文件copy到www下因为有的路径有问题
  9. 打开localhost看看。不懂的留言。