Show Menu
Cheatography

LAMP Cheat Sheet by [deleted]

Basics

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 multiverse
text scrollt langsam => /etc/m­odp­rob­e.d­/bl­ack­lis­tfr­ame­buf­fer.conf ---- zeile
blacklist vga16f­b" hinzufügen
sources ändern: vi /etc/a pt/ sou rce s.list

MySQL

$ mkdir /usr/s­rc/­mysql
$ cp mysql-­VER­SIO­N.t­ar.gz /usr/s­rc/­mysql
$ cd /usr/s­rc/­mysql
$ gunzip < mysql-­VER­SIO­N.t­ar.gz | tar -xvf -
$ cd mysql-­VERSION
$ groupadd mysql
$ useradd -g mysql mysql
$ ./conf­igure --pref­ix=­/us­r/l­oca­l/mysql [add the necessary extra options here]
$ make
$ 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
$ chgrp -R mysql .
$ bin/my­sql­d_safe --user­=mysql &
$ mysql
SHOW DATABASES;
cd /usr/l­oca­l/mysql ; bin/my­sql­d_safe --user­=mysql &
 

Apache2

$ mkdir /usr/s­rc/­httpd
$ cp httpd-­VER­SIO­N.t­ar.gz /usr/s­rc/­httpd
$ cd /usr/s­rc/­httpd
$ gunzip < httpd-­VER­SIO­N.t­ar.gz | tar -xvf -
$ cd httpd-­VERSION
$ ./conf­igure --pref­ix=­/us­r/l­oca­l/a­pache2 [add extra options here]
$ make
$ make install

PHP5

$ mkdir /usr/s­rc/php5
$ cp php-VE­RSI­ON.t­ar.gz /usr/s­rc/php5
$ cd /usr/s­rc/php5
$ gunzip < php-VE­RSI­ON.t­ar.gz | tar -xvf -
$ cd php-VE­RSION
$ ./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 [add your options here]
$ make
$ make install
cp php.in­i-dist /usr/l­oca­l/p­hp5/lib

Config­uring Apache

Docume­ntRoot "­/us­r/l­oca­l/a­pac­he2­/ht­doc­s"
Docume­ntRoot "­/va­r/w­ww/­htd­ocs­"
<Di­rectory "­/us­r/l­oca­l/a­pac­he2­/ht­doc­s">
<Di­rectory "­/va­r/w­ww/­htd­ocs­">
AllowO­verride None
AllowO­verride All
Direct­ory­Index index.php index.html index.h­tm­l.var
/usr/l­oca­l/a­pac­he2­/bi­n/a­pac­hectl start
 

Comments

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Mobile Application Cheat Sheet
          Single Area OSPF Cheat Sheet
          Push Notifications Cheat Sheet