Hetzner - DokuWiki
LAMPP unter Debian
Inhaltsverzeichnis |
Installation Webserver
Standarmäßig sind ja die LAMP Server installiert. Wenn man jedoch eine Minimalsystem hat installieren lassen muß das von Hand geschehen.
Hier eine kurze Zusammenfassung für Apache2, PHP5 und Mysql5.
Quellen installieren
Zuerst sollte man die sources.list updaten (/etc/apt/sources.list):
pico /etc/apt/sources.list
deb ftp://ftp.uni-erlangen.de/mirrors/ubuntu/ dapper main restricted deb ftp://ftp.uni-erlangen.de/mirrors/ubuntu/ dapper-updates main restricted deb http://security.ubuntu.com/ubuntu dapper-security main restricted deb http://ubuntu.geole.info/ edgy universe multiverse deb http://archive.ubuntu.com/ubuntu/ hoary main restricted universe multiverse deb http://security.ubuntu.com/ubuntu/ hoary-security main restricted universe multiverse deb http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu/ hoary main restricted universe multiverse deb http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu/ hoary-security main restricted universe multiverse deb http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu/ warty-updates main restricted universe multiverse ### Hier PHP 5 tidy!!! deb http://packages.dotdeb.org stable all ######### ENde ###########
In pico Datei schreiben mit STRG-o, schließen mit STRG-x
Note: 2007-02-07: simon3: On a DS7000 with Ubuntu 6.06 then these sources didn't work for me :-( For example, when trying to install phpmyadmin then it wanted to uninstall PHP5 and install PHP4 instead. Things went a lot better with these source I found when Googling around:
deb http://de.archive.ubuntu.com/ubuntu edgy main restricted universe multiverse #deb-src http://de.archive.ubuntu.com/ubuntu edgy main restricted universe multiverse deb http://de.archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse #deb-src http://de.archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse deb http://de.archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse #deb-src http://de.archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse deb http://de.archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse #deb-src http://de.archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse deb http://archive.canonical.com/ edgy-commercial main
Dann
apt-get update
Damit wir die Liste eingebunden.
Installation
Apache installieren
apt-get install apache2
===PHP als Modul, Mysql und tidy installieren
apt-get install libapache2-mod-php5 php5-mysql php5-tidy
Damit PHP auf der Kommandozeile läuft cli
apt-get install php5-cli
Mysql Server installieren
apt-get install mysql-server-5.0
PHPmyadmin installieren
apt-get install phpmyadmin
Dann den Server neu starten, so das alle läuft.
/etc/init-d/apache2 restart
Mysql mit Passwort versehen
mysqladmin -u root password PASSWORT
Fertig, alles läuft.

