|
Installation
IntroductionYou can find detailed explanation about how to run CAMMP on your Linux box. First, in order to download CAMMP, visit: http://www.webguvenligi.org/projeler/cammp Installation Details1. "CAMMP" contains 2 parts. One of the parts contains only the destination source for apache,mysql,php and modsecurity, the other part comprises of a installation and chroot script for apache,mysql,php and modsecurity. But, you must edit the source_code file and then, you should use script named cammp.sh in order to install mysql,apache,php and modsecurity under chroot. You can find detailed explanation below. 2. First you must download cammp and extract it into the "/usr/local" directory !!!. # cd /usr/local/ # wget http://cammp.googlecode.com/files/cammp.v12.tgz --13:24:15-- http://cammp.googlecode.com/files/cammp.v12.tgz Resolving cammp.googlecode.com... 74.125.47.82 Connecting to cammp.googlecode.com|74.125.47.82|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4546 (4.4K) [application/x-gzip] Saving to: `cammp.v12.tgz' 100%[====================================================================================================================>] 4,546 --.-K/s in 0.1s 13:24:15 (30.4 KB/s) - `cammp.v12.tgz' saved [4546/4546] # tar -zxvf cammp.v12.tgz cammp/ cammp/mysqld_baslangic_betik.sh cammp/apache_baslangic_betik.sh cammp/cammp.sh cammp/source_code # cd cammp Then edit the source_code file like this. # cat source_code http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.30.tar.gz/from/ftp://ftp.itu.edu.tr/Mirror/Mysql/ http://godel.cs.bilgi.edu.tr/apache/httpd/httpd-2.2.11.tar.gz http://www.php.net/get/php-5.2.8.tar.gz/from/is.php.net/mirror http://www.modsecurity.org/download/modsecurity-apache_2.5.7.tar.gz http://www.modsecurity.org/download/modsecurity-core-rules_2.5-1.6.1.tar.gz Finaly execute the cammp.sh # chmod 755 cammp.sh # ./cammp.sh *NOTE: You must be root user in order to run these scripts.* Mysql database server is ready and running under chroot. You can see the runnig mysqld process through ps command. # ps auwx | grep "mysqld" mysql 16599 0.0 0.1 34428 4276 pts/1 Sl 15:36 0:00 /mysqld/libexec/mysqld --user=mysql Apache web server is ready and runnig under chroot. You can see the runnig apache process through ps command. # ps auwx | grep "httpd" root 16610 0.2 0.2 20976 10836 ? Ss 15:36 0:00 /apache/bin/httpd -k start apache 16612 0.0 0.2 20976 9080 ? S 15:36 0:00 /apache/bin/httpd -k start apache 16613 0.0 0.2 20976 9080 ? S 15:36 0:00 /apache/bin/httpd -k start apache 16614 0.0 0.2 20976 9080 ? S 15:36 0:00 /apache/bin/httpd -k start apache 16615 0.0 0.2 20976 9080 ? S 15:36 0:00 /apache/bin/httpd -k start apache 16616 0.0 0.2 20976 9080 ? S 15:36 0:00 /apache/bin/httpd -k start |