bin bash cd deb compiler dpkg -i deb dpkg -i libc6-i686_2 20080505-0ub

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
cd ./deb/compiler
dpkg -i *.deb
dpkg -i libc6-i686_2.8~20080505-0ubuntu9_i386.deb
cd .. && cd ./zlib
dpkg -i *.deb
cd .. && cd .. && cd ./src/zlib-1.2.3
./configure && make && make install
cd .. && cd ./termcap-1.3.1
./configure && make && make install
cd .. && cd ./mysql-5.0.77
./configure --with--unix-socket-path=/tmp/mysql.sock --with-zlib && make && make install
./scripts/mysql_install_db
/usr/local/bin/mysqld_safe --user=root &
mysql -u root -e "use mysql; update user set password=password('123456') where User='root';"
chmod u+s /tmp/mysql.sock
killall mysqld &
/usr/local/bin/mysqld_safe --user=root &
cd .. && cd ./libxml2-2.7.3
./configure --with-http --with-html --with-ftp --with-zlib && make && make install
cd .. && cd ./httpd-2.2.11
./configure --prefix=/usr/local/apache2 --with-zlib && make && make install
cd .. && cd ./php-5.2.9
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs && make && make install
cd .. && cd ./mod_perl-2.0.4
cp /usr/lib/libgdbm.so.3.0.0 /usr/lib/libgdbm.so
perl Makefile.PL --with-libgdbm=/usr/lib/libgdbm.so MP_APXS=/usr/local/apache2/bin/apxs && make && make install
cd .. && cd .. && cd ./deb/flex/
dpkg -i *.deb
cd .. && cd .. && cd ./src/httpd-2.2.11
a=`echo $PWD`
cd .. && cd ./mod_python-3.3.1/
./configure --with-apache2=$a --with-apxs=/usr/local/apache2/bin/apxs && make && make install
cd .. && cd ./openssl-0.9.8
./config no-idea no-threads -fPIC && make depend && make && make install
cd .. && cd .. && cd ./deb/openssl
dpkg -i *.deb
cd .. && cd .. && cd ./src/httpd-2.2.11
./configure --prefix=/usr/local/apache2/ --enable-modules=php5 --enable-modules=perl --enable-modules=python --with-zlib --enable-ssl
rm ./srclib/apr/libtool
cp libtool ./srclib/apr/libtool
make && make install
cd /usr/local/apache2/conf/
openssl genrsa -out server.key
openssl req -new -key server.key -out server.csr -subj /C=UA/ST=KV/L=KV/O=HO/OU=UPA/CN=localhost/emailAddress=admin@mail.ua
openssl x509 -req -days 9999 -in server.csr -signkey server.key -out server.crt
cd $a
rm /usr/local/apache2/conf/httpd.conf
cp httpd.conf /usr/local/apache2/conf/httpd.conf
chmod -R 755 /usr/local/apache2/cgi-bin
/usr/local/apache2/bin/httpd -k start
/usr/local/apache2/bin/apachectl start