This is a draft cheat sheet. It is a work in progress and is not finished yet.
basics
sources ändern: vi /etc/a pt/ sources.list |
text zu langsam: /etc/modprobe.d/blacklistframebuffer. conf ---- zeile "blacklist vga16fb"hinzufügen |
deb http:/ /old-releases.ubuntu.com /ubuntu/ lucid |
main restricted universe multiverse |
deb http:/ /old-release s.ubuntu.com /ubuntu/ lucid- updates main restricted universe multiverse |
deb http:/ /old-release s.u buntu.com /ubuntu/ lucid‐ security main restricted universe multiverse |
get file from ftp server: wget –user= anonymous |
fpt:// 10.1 00.10.20 0/LAMP 2010/… |
MySQL
mkdir /usr/s rc/ mysql |
cp mysql- VER SIO N.t ar.gz /usr/s rc/ mysql |
gunzip < mysql- VER SIO N.t ar.gz | tar -xvf - |
groupadd mysql |
useradd -g mysql mysql |
./conf igure --pref ix= /us r/l oca l/mysql |
make -j 4 |
make install |
cp suppor t-f ile s/m y-m edi um.cnf /etc/m y.cnf |
cd /usr/l oca l/mysql |
bin/my sql _in sta ll_db --user =mysql |
chown -R root . |
chown -R mysql lib |
chown -R mysql var |
chgrp -R mysql . |
bin/my sql d_safe --user =mysql & |
bin/mysql |
Apache2
mkdir /usr/s rc/ httpd |
cp httpd- VER SIO N.t ar.gz /usr/s rc/ httpd |
gunzip < httpd- VER SIO N.t ar.gz | tar -xvf - |
./conf igure --pref ix= /us r/l oca l/a pache2 --enab le- mim emagic --enab le- expires --enab le- headers --enab le-ssl -- enab le-http --enab le-info --enab le-dir --enab le- rewrite -- enab le-so |
make |
make install |
Apache2 Config
replace |
with |
DocumentRoot " /usr/local/apache2/htdocs" |
DocumentRoot " /var/www/ htdocs " |
<Directory " /usr/local/apache2 /htdocs"> |
<Directory " /var/www/ htdocs "> |
AllowOverride None |
AllowO verride All |
Direct ory Index index.html index.h tm l.var |
Directory Index index.php index.html index.html.var |
AddHandler type-map varaddline: |
AddHandler type-map varaddline AddHandler php5-script.php |
AddType Section - addline : |
AddType application/ x-httpd-php.php |
PHP5
mkdir /usr/s rc/php5 |
cp php-VERSION.t ar.bz2 /usr/s rc/php5 |
tar xjf php-VERSION.tar.bz2 |
./conf igure --pref ix= /us r/l oca l/php5 --with -ap ‐ xs2 =/usr/ local/ apache2/b in/apxs --with -my sql =shared/usr /local /mysql |
make |
make install |
cp php.ini-development /usr/local/php5/lib |
|
|
|