Quantcast
Channel: Linux tutorials Archives | Unixmen
Viewing all articles
Browse latest Browse all 1264

Cherokee – An Open source light weight cross-platform Webserver

$
0
0

Cherokee is an Open Source, cross-platform, fast and light weight web server. It supports all major web features such as FastCGI, SCGI, PHP, uWSGI, SSI, CGI, LDAP, TLS/SSL, HTTP proxying, video streaming, content caching, traffic shaping, etc. All the configurations are done through a cool web interface called Cherokee-Admin . It will run on Linux, Mac, Solaris and BSD systems.

Install Cherokee webserver in Ubuntu / Debian distros

Add the following PPA to install cherokee webserver.

unixmen@server:~$ sudo add-apt-repository ppa:cherokee-webserver

Now install cherokee webserver.

unixmen@server:~$ sudo apt-get install cherokee

Next start the Cherokee web server admin called ‘cherokee-admin’. The cherokee-admin will display the administration user name, One-time Password and administration web interface. Note down your One-Time password. It will use when you login to Cherokee admin wen interface.

unixmen@server:~$ sudo cherokee-admin
 [28/04/2013 21:47:40.979] (warning) rrd_tools.c:121 - Could not find the
 rrdtool binary. | A custom rrdtool binary has not been defined, and the
 server could not find one in the $PATH.

Cherokee Web Server 1.2.101 (Oct 25 2012): Listening on port 127.0.0.1:9090,
 TLS disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041
 connections, caching I/O, single thread

Login:
 User:              admin
 One-time Password: O6Q5czb7K733oW4k

Web Interface:
 URL:               http://127.0.0.1:9090/,

By default, cherokee-admin will connect from localhost(127.0.0.1) only. That is you can connect to cherokee-admin from the same system only. You need to specify the network address using the parameter ‘-b’. If you doesn’t mention any ip address, it will automatically listen to all network interfaces. Then you can connect to cherokee-admin from other systems.

unixmen@server:~$ sudo cherokee-admin -b 192.168.1.200
 [28/04/2013 22:02:39.934] (warning) rrd_tools.c:121 - Could not find the
 rrdtool binary. | A custom rrdtool binary has not been defined, and the
 server could not find one in the $PATH.

Cherokee Web Server 1.2.101 (Oct 25 2012): Listening on port
 192.168.1.200:9090, TLS disabled, IPv6 enabled, using epoll, 4096 fds system
 limit, max. 2041 connections, caching I/O, single thread

Login:
 User:              admin
 One-time Password: mXkWABhGdyjyf4bi

Web Interface:
 URL:               http://192.168.1.200:9090/

Note down the One-time Password. You have to enter this password when you login to Cherokee admin web interface.

Now fire up your web browser and type the URL “http://localhost:9090/” or “http://ip-address:9090/”. Enter the username as ‘admin’ and the ‘One-time Password’ to login.

Mozilla Firefox_017

Now you will get the Cherokee admin console. From here you can configure websites, virtual domains, security options and so on.

Welcome to Cherokee Admin - Cherokee Admin - Mozilla Firefox_018

Start/Stop/Restart Cherokee web server

unixmen@server:~$ sudo /etc/init.d/cherokee start
unixmen@server:~$ sudo /etc/init.d/cherokee restart
unixmen@server:~$ sudo /etc/init.d/cherokee stop

Changing default port of Cherokee web server

The default port of Cherokee is 9090. You can change the port using the parameter ‘-p’ as shown below. command.

unixmen@server:~$ sudo cherokee-admin -b 192.168.1.200 -p 1234
[29/04/2013 08:50:35.742] (warning) rrd_tools.c:121 - Could not find the
    rrdtool binary. | A custom rrdtool binary has not been defined, and the
    server could not find one in the $PATH.

Cherokee Web Server 1.2.101 (Oct 25 2012): Listening on port
192.168.1.200:1234, TLS disabled, IPv6 enabled, using epoll, 4096 fds system
limit, max. 2041 connections, caching I/O, single thread

Login:
  User:              admin
  One-time Password: 1tQsVRzBFhlZo92T

Web Interface:
  URL:               http://192.168.1.200:1234/

Verify this new port by navigating to your web browser using the URL “http://192.168.1.200:1234″. Enter the username as ‘admin’ and the ‘One-time Password’. Now you will be able to connect to Cherokee admin panel using the new port number.

Welcome to Cherokee Admin - Cherokee Admin - Mozilla Firefox_020

Thats it. Read the official documentation page for more information about Cherokee configuration and administration.

--------------------------------------------------------------------- Cherokee – An Open source light weight cross-platform Webserver


Viewing all articles
Browse latest Browse all 1264

Trending Articles