How To Install And Configure Cherokee Web Server With PHP 5 And MySQL 5 Support On Ubuntu 8.10 Server (Intrepid Ibex)
How To Install And Configure Cherokee Web Server With PHP 5 And MySQL 5 Support On Ubuntu 8.10 Server (Intrepid Ibex)From http://www.cherokee-project.com/:
1) Preliminary noteI'm using a Ubuntu 8.10 server system installed according to steps 1-3, 5, 7 and 8 described in that howto: http://www.howtoforge.com/perfect-server-ubuntu-8.10. I also use the expression "serveripaddress" for server's ip address. You should replace it with your own. You should take every step of this howto logged in as root.
2) Install MySQLYou need a database server to run PHP scripts that use MySQL to manage data stored in user's databases. You can install it (and the client) by entering: apt-get install mysql-server-5.0 mysql-client
3) Set MySQL's root user passwordBefore using MySQL a password should be set for the root user. You will be prompted for it after the server gets installed. Remember that without setting root's password everyone can access every database on your MySQL server.
4) Install PHPPHP is a scripting language used to run scripts that can do lots of different things on the server side. You can install it like this: apt-get install php5-cgi PHP has an interface to MySQL server that can be installed by entering the following: apt-get install php5-mysql
5) Install some needed packagesWe will compile Cherokee from sources so we'll need a C++ compiler and some other usefull packages: apt-get install cpp gcc g++ make
6) Download, compile and install Cherokee web serverDownload Cherokee to /tmp: cd /tmp When I wrote this text Cherokee 0.11.0b2449 was the latest snapshot version which means it's in beta state so there still might be some errors. You could download and use a stable version from http://www.cherokee-project.com/download/ instead as well. Unpack the downloaded archive: tar -zxvf cherokee-latest-svn.tar.gz and enter the new directory: cd cherokee-0.11.0b2449 Now it has to be configured the way we need. This is the recommended way: ./configure --localstatedir=/var \ Compile Cherokee: make and install it: make install An error like "configure:error:no acceptable c compiler found in $path" most likely means that there is no C compiler installed or it's not in the system path. You should then make sure to install everything described in step 5 and everything will work fine.
|




print: 
Recent comments
9 hours 23 min ago
10 hours 21 min ago
10 hours 33 min ago
16 hours 38 min ago
19 hours 7 min ago
20 hours 18 min ago
23 hours 31 min ago
1 day 37 min ago
1 day 1 hour ago
1 day 4 hours ago