Show Menu
Cheatography

LAMP Cheat Sheet by [deleted]

Prereq­uisites

rm -rf /etc/a­pt/­sou­rce­s.conf
sources entfernen
echo "deb http:/ /ol d-r ele ase s.u bun tu.c om /ub untu/ lucid main restricted universe multiverse deb http:/ /ol d-r ele ase s.u bun tu.c om /ub untu/ lucid- ‐updates main restricted universe multiverse deb http:/ /ol d-r ele ase s.u bun tu.c om /ub untu/ lucid- ‐sec urity main restricted universe multiv­ers­e" > /etc/a­pt/­sou­rce.conf
neue sources hinzufügen
echo "­bla­cklist vga16f­b" >> /etc/m­odp­rob­e.d­/bl­ack­lis­t-f­ram­ebu­ffe­r.conf
gegen langsames scrollen
shutdown -fr now
neustarten
apt-get update && apt-get install gcc g++ make libncu­rse­s-dev
compil­etools laden
wget –user=­ano­nymous ftp://­FTP­_SE­RVER/
files from ftp laden
 

Installing MySQL5

mkdir /usr/s­rc/­mysql
directory erstellen
cp mysql-­VER­SIO­N.t­ar.gz /usr/s­rc/­mysql
archive hinkop­ieren
cd /usr/s­rc/­mysql
directory changen
groupadd mysql
usergroup adden
gunzip < mysql-­VER­SIO­N.t­ar.gz | tar -xvf -
archive entpacken
cd mysql-­VERSION
directory changen
useradd -g mysql mysql
user adden
./conf­igure --pref­ix=­/us­r/l­oca­l/mysql
mysql compile config­urieren
make -j4 (WICHTIG!)
builden
make install
instal­lieren
cp suppor­t-f­ile­s/m­y-m­edi­um.cnf /etc/m­y.cnf
config kopieren
cd /usr/l­oca­l/mysql
directory changen
chown -R mysql lib
mysql zum ordner­inhaber machen
chown -R mysql var
mysql zum ordner­inhaber machen
chown -R root .
root zum ordner­inhaber machen
chown -R mysql lib
mysql zum ordner­inhaber machen
bin/my­sql­_in­sta­ll_db --user­=mysql
mysql instal­lieren
bin/my­sql­d_safe --user­=mysql &
mysql starten
 

Installing Apache 2

mkdir /usr/s­rc/­httpd
directory erstellen
cp httpd-­VER­SIO­N.t­ar.gz /usr/s­rc/­httpd
archive kopieren
cd /usr/s­rc/­httpd
directory changen
gunzip < httpd-­VER­SIO­N.t­ar.gz | tar -xvf -
archive entpacken
cd httpd-­VERSION
directory changen
./conf­igure --pref­ix=­/us­r/l­oca­l/a­pache2 --enab­le-­mim­e-magic --enab­le-­expires \ --enab­le-­headers --enab­le-ssl --enab­le-http --enab­le-info --enab­le-dir \ --enab­le-­rewrite --enab­le-so
build konfig­urieren
make -j4
builden
make install
instal­lieren
 

Installing PHP 5

mkdir /usr/s­rc/php5
dir erstellen
cp php-VE­RSI­ON.t­ar.gz /usr/s­rc/php5
archiv kopieren
cd /usr/s­rc/php5
directory changen
gunzip < php-VE­RSI­ON.t­ar.gz | tar -xvjf
archive entpacken
cd php-VE­RSION
directory changen
apt-get install libxml­2-dev
depend­encies instal­lieren
./conf­igure --pref­ix=­/us­r/l­oca­l/php5 --with­-ap­xs2­=/u­sr/­loc­al/­apa­che­2/b­in/apxs \ --with­-my­sql­=sh­are­d,/­usr­/lo­cal­/mysql --with­-zlib --with­-ge­ttext --with­-gdbm --with­-sqlite
build konfig­urieren
make -j4
builden
make install
instal­lieren
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Single-Area OSPF Cheat Sheet
          Single Area OSPF Cheat Sheet
          Mobile Application Cheat Sheet

          More Cheat Sheets by [deleted]