Show Menu

LAMP from source Cheat Sheet by



text scrollt langsam => /etc/modprobe.d/blacklist-framebuffer.conf ---- zeile "blacklist vga16fb" hinzufügen

sources ändern: vi /etc/apt/sources.list
deb lucid main restricted universe multiverse
deb lucid-updates main restricted universe multiverse
deb lucid-security main restricted universe multiverse

get file from ftp server: wget –user=anonymous fpt://…


mkdir /usr/s­rc/­mysql
Folder for instal­lation
cp mysql-­VER­SIO­N.t­ar.gz /usr/s­rc/­mysql
move zip to folder
gunzip < mysql-­VER­SIO­N.t­ar.gz | tar -xvf -
unzip .tar.gz
groupadd mysql
create mysql group
useradd -g mysql mysql
create mysql user
./conf­igure --pref­ix=­/us­r/l­oca­l/mysql
configure instal­lation
make -j 4
compile with 4 cores
make install
cp suppor­t-f­ile­s/m­y-m­edi­um.cnf /etc/m­y.cnf
configure mysql...
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 &
start mysql
connect to mysql


mkdir /usr/s­rc/­httpd
create folder for source
cp httpd-­VER­SIO­N.t­ar.gz /usr/s­rc/­httpd
copy zip to new location
gunzip < httpd-­VER­SIO­N.t­ar.gz | tar -xvf -
unzip .tar.gz
./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
configure apache compil­ation
compile apache
make install
install apache

Apache2 Config­uration

old line
new line
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.html index.h­tm­l.var
Direct­ory­Index index.php index.html index.h­tm­l.var
AddHandler type-map var- addline:
old line + AddHandler php5-s­cript php
AddType Section - addline :
AddType applic­ati­on/­x-h­ttp­d-php .php
/usr/l­oca­l/a­pac­he2­/bi­n/a­pac­hectl start
start server
File: /usr/l­oca­l/a­pac­he2­/co­nf/­htt­pd.conf


mkdir /usr/s­rc/php5
create folder for source
cp php-VE­RSI­ON.t­ar.bz2 /usr/s­rc/php5
move zip to new folder
tar xjf php-VE­RSI­ON.t­ar.bz2
unzip bz2 file
./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
configure php compil­ation
make install
cp­i-d­eve­lopment /usr/l­oca­l/p­hp5/lib
move the php.ini (devel­opment instead of dist)

Download the LAMP from source Cheat Sheet

1 Page

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!



matttias matttias, 17:36 15 Oct 19

Thanks a lot, very helpful!

daisyrowley daisyrowley, 16:39 30 Oct 19

Amazing work bro!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          More Cheat Sheets by matttias