Okay, ik ben lam

grootste gedeelte staat toch al in een van mijn scripts:
code:
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
| # Zlib:
sources: http://www.zlib.org/
gunzip -c zlib-1.1.3.tar.gz | tar xf -
mv zlib-1.1.3/ zlib
cd zlib; \
./configure --static
make
cd ..
# libpng:
sources: http://libpng.sourceforge.net/
gunzip -c libpng-*.tar.gz |tar xf -
rm libpng-*.tar.gz
mv libpng-* libpng
cd libpng; \
make -f scripts/makefile.std CC=gcc ZLIBLIB=../zlib ZLIBINC=../zlib
cd ..
# jpeg:
sources: http://www.ijg.org/
tar -zxvf jpegsrc.v6b.tar.gz
mv jpeg-6b/ jpeg
cd jpeg
./configure
make
make test
cd ..
# gd:
sources: http://www.boutell.com/gd/
tar -zxvf gd-1.8.4.tar.gz
mv gd-1.8.4 gd
cd gd
make INCLUDEDIRS="-I. -I../zlib -I../libpng -I../jpeg" \
LIBDIRS="-L../zlib -L. -L../libpng -L../jpeg"
LIBS="-lgd -lpng -lz -lm"
cd ..
#IMAP
sources: ftp://ftp.cac.washington.edu/imap/
tar -Zxvf imap.tar.Z
mv imap-2001.RELEASE-CANDIDATE.1 imap
cd imap
make slx
cp c-client/c-client.a /usr/local/lib/libc-client.a
cp c-client/rfc822.h c-client/mail.h c-client/linkage.h \
/usr/local/include
#MySQL
Sources: http://www.mysql.com
tar -zxvf mysql*.tar.gz
rm mysql*.tar.gz
mv mysql* /usr/local/mysql
#starts/install the dbase
#/usr/local/mysql/configure
# Apache
Sources: http://httpd.apache.org
tar -zxvf apache*.tar.gz
mv apache_* apache
cd apache
./configure
cd ..
#PHP
Sources: http://nl.php.net
tar -zxvf php.tar.gz
rm php.tar.gz
mv php-4.0.6/ php
cd php
./configure \
--with-apache=/usr/src/apache \
--enable-track-vars \
--enable-magic-quotes \
--with-gd=/usr \
--with-mysql=/usr/src/mysql \
--with-zlib=/usr/local \
--with-jpeg-dir=/usr/src/jpeg \
--with-png-dir=/usr/src/libpng \
--with-imap
make
make install
cd apache
./configure \
--prefix=/www/ \
--enable-module=so \
--enable-module=status \
--enable-shared=status \
--activate-module=src/modules/php4/libphp4.a
make
make install
cd /www/bin
./apachectl start |
Dat is heel snel, je maakt:
Apache met static linked PHP
PHP met gd, imap, zlib, mysql
zie php/configure --help voor meer info over welke opties je aan wil zetten in php en
apache/configure --help voor opties die je in apache extra wil configgen
Het geheel is bedoeld voor een linuxsysteem, onder freebsd zal het ook
wel draaien met enkele aanpassingen aan de IMAP compilatie en Apache compilatie.
"Een serveradmin, voluit een serveradministrator, is dan weer een slavenbeheerder oftewel een slavendrijver" - Rataplan