Installing Cherokee With PHP5 And MySQL Support On Mandriva 2009.1
Installing Cherokee With PHP5 And MySQL Support On Mandriva 2009.1Version 1.0 Cherokee is a very fast, flexible and easy to configure Web Server. It supports the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL encrypted connections, virtual hosts, authentication, on the fly encoding, load balancing, Apache compatible log files, and much more. This tutorial shows how you can install Cherokee on a Mandriva 2009.1 server with PHP5 support (through FastCGI) and MySQL support. I do not issue any guarantee that this will work for you!
1 Preliminary NoteIn this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.
2 Installing MySQL 5First we update our package database: urpmi.update -a To install MySQL 5, we simply run: urpmi MySQL MySQL-client By default, networking is not enabled in Mandriva 2009.1's MySQL package. We can change this by commenting out the line skip-networking in /etc/my.cnf. vi /etc/my.cnf
Afterwards, we create the system startup links for MySQL... chkconfig mysqld on ... and start it: /etc/init.d/mysqld start Next, run mysqladmin -u root password yourrootsqlpassword to set a password for the user root (otherwise anybody can access your MySQL database!).
3 Installing Cherokee And php-fcgiCherokee is available as a Mandriva package, therefore we can install it like this (together with the php-fcgi package): urpmi cherokee php-cgi php-fcgi Next we create the system startup links for Cherokee and start it: chkconfig cherokee on Now direct your browser to http://192.168.0.100, and you should see the Cherokee placeholder page: Cherokee can be configured through a web-based control panel which we can start as follows: cherokee-admin -b (By default cherokee-admin binds only to 127.0.0.1 (localhost), which means you can only connect to it from the same system. With the -b parameter you can specify the network address to listen to. If no IP is provided, it will bind to all interfaces.) Output should be similar to this one: [root@server1 ~]# cherokee-admin -b You need the username and password to log into the web interface which can be found on http://192.168.0.100:9090/: This is how the web interface looks: To stop cherokee-admin, type CTRL+C on the shell.
4 Configuring PHP5We must modify /etc/php.ini and add the line cgi.fix_pathinfo = 1 right at the end of the file: vi /etc/php.ini
Then we restart Cherokee: /etc/init.d/cherokee restart
|







Recent comments
23 hours 41 min ago
1 day 4 hours ago
1 day 6 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 13 hours ago
1 day 13 hours ago
1 day 16 hours ago
2 days 5 hours ago
2 days 6 hours ago