Show Menu

LAMP from source Cheat Sheet by

nvs

General

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

sources ändern: vi /etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse

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

MySQL5

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
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
bin/mysql
connect to mysql
 

Apache2

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
make
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

PHP 5

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
compile
make install
install
cp php.in­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
//media.cheatography.com/storage/thumb/matttias_lamp-from-source.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

Comments

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