Ubuntu 9.04 安装Cherokee Web 服务器(PHP 5+MySQL 5)

基于ubntu9.04[g++/gcc]

1.安装MySQL
  #apt-get install mysql-server-5.0 mysql-client

2.设置MySQL’s root 用户密码.

3.安装PHP
  #apt-get install php5-cgi
  #apt-get install php5-mysql

4.安装一些需要的安装包.
  #apt-get install cpp gcc g++ make

5.安装.Cherokee web 服务器.
   # apt-get install cherokee
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
  libcherokee-base0 libcherokee-client0 libcherokee-config0
  libcherokee-server0
The following NEW packages will be installed:
  cherokee libcherokee-base0 libcherokee-client0 libcherokee-config0
  libcherokee-server0
0 upgraded, 5 newly installed, 0 to remove and 242 not upgraded.
Need to get 3052kB of archives.
After this operation, 6808kB of additional disk space will be used.
Do you want to continue [Y/n]? y

6.查看系统启动进端口
  # netstat -atl
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 localhost:mysql         *:*                     LISTEN
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 localhost:ipp           *:*                     LISTEN
tcp        0      0 ptubuntu.ptubuntu.c:ssh 192.168.0.103:4840      ESTABLISHED
tcp        0    132 ptubuntu.ptubuntu.c:ssh 192.168.0.103:1754      ESTABLISHED
tcp        0      1 ptubuntu.ptubuntu:34387 lithium.canonical.c:www FIN_WAIT1
tcp        0      0 ptubuntu.ptubuntu.c:ssh 202.131.68.91:49913     ESTABLISHED
tcp6       0      0 [::]:www                [::]:*                  LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN

7.输入你的服务器的IP地址.可以显示如下.

8.WEB管理cherokee 服务器.要启动cherokee

# cherokee-admin -b

Login:
  User:              admin
  One-time Password: xusWEshjBPoFC0Gl

Cherokee Web Server 0.10.1 (Nov  5 2008): Listening on port 9090, TLS disabled,
IPv6 disabled, using epoll, 1024 fds system limit, max. 505 connections,
single thread

接着打开网页.端口:http://192.168.0.4:9090

A:进入cherokee-admin管理介面.

 

B:这个主要配置端口号和用户.

C:这里添加虚拟主机.

D:下面这个是设置虚拟主机的配置文件.

E:配置PHP环境变量.点进入PHP里还可以有很多设置.

F:配置网页支持的图片格式.

I:这个设置支持显示类型.

里面有很多配置文档.如果你想要了解的更多.那你也去安装一个吧.很简的.

转载请注明来自:http://www.ptubuntu.com

原创文章,转载请注明: 转载自PT Ubuntu Blog

本文链接地址: http://www.ptubuntu.com/2008/12/624.html

  • Share/Bookmark

Leave a Reply


Verify Code   If you cannot see the CheckCode image,please refresh the page again!

Powered by WordPress | Buy free cell phones from at&t. | Thanks to PalmPreBlog.com, MMO Games and Conveyancing