在VPS上安装Cherokee+PHP+MySQL
系统是Ubuntu 9.04,用root登录,然后操作如下;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
apt-get remove apahce2 //因为VPS预安装了Apache,所以我先把Apache删了; apt-get update //然后更新下系统; apt-get install mysql-server-5.1 //安装MySQL,会提示设置root用户密码; apt-get install php5-cgi php5-mysql php5-gd //安装PHP apt-get install cpp gcc g++ make //编译Cherokee所必要的软件; cd /tmp wget http://www.cherokee-project.com/cherokee-latest-tarball -O -| tar zxvf - //下载Cherokee到tmp目录 mv cherokee-0.99.31 cherokee //懒的总是打版本号,所以重命名下; cd cherokee ./configure –localstatedir=/var –prefix=/usr –sysconfdir=/etc –with-wwwroot=/var/www //基本配置 make //编译; make install //安装; cp contrib/cherokee /etc/init.d/cherokee //复制启动脚本; chmod 755 /etc/init.d/cherokee //更改权限; /etc/init.d/cherokee start //然后启动Cherokee; update-rc.d cherokee defaults |
启动,停止,重启命令;
1 2 3 |
/etc/init.d/cherokee start /etc/init.d/cherokee stop /etc/init.d/cherokee restart |
启动Cherokee的管理面板;
1 |
cherokee-admin -b
|
然后用显示的密码登录http://IP:9090
快速安装cherokee
apt-get install cherokee