Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
fortgeschrittene:apache-phprojekt [2010/10/12 08:52] 127.0.0.1 Externe Bearbeitung |
— (aktuell) | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | //diese Anleitung ist veraltet// | ||
| - | |||
| - | ====== Benötigte Pakete ====== | ||
| - | Fedora: | ||
| - | php-pgsql postgresql-server | ||
| - | |||
| - | Debian 4.0: | ||
| - | apache2 libapache2-mod-php4 php4-pgsql postgresql-8.1 | ||
| - | | ||
| - | ====== Konfiguration Datenbank ====== | ||
| - | Postgresql starten, damit default-Konfigurationsdateien im Postgres Datenverzeichnis erzeugt werden. | ||
| - | |||
| - | ''/var/lib/pgsql/data/postgresql.conf'' : ( Fedora ) | ||
| - | |||
| - | ''/etc/postgresql/8.1/main/postgresql.conf'' : ( Debian 4.0 ) | ||
| - | |||
| - | <file> | ||
| - | listen_addresses = 'localhost' | ||
| - | </file> | ||
| - | |||
| - | ''/var/lib/pgsql/data/pg_hba.conf'' : ( Fedora ) | ||
| - | |||
| - | ''/etc/postgresql/8.1/main/pg_hba.conf'' : ( Debian ) | ||
| - | |||
| - | <file> | ||
| - | local all all trust | ||
| - | host all all 127.0.0.1/32 trust | ||
| - | </file> | ||
| - | |||
| - | Hinweis: diese Lösung ist unter Sicherheitsaspekten nicht zu empfehlen. Konsultieren Sie die Postgres Dokumentation für eine adäquatere Lösung. | ||
| - | |||
| - | Datenbank und Datenbankbenutzer anlegen: | ||
| - | su - postgres | ||
| - | createuser --no-createdb --no-adduser phprojekt | ||
| - | createdb --owner phprojekt phprojekt | ||
| - | exit | ||
| - | |||
| - | ====== phprojekt einfach ====== | ||
| - | |||
| - | phprojekt Paket von http://www.phprojekt.de herunterladen. | ||
| - | |||
| - | auspacken: | ||
| - | cd /var/www | ||
| - | tar xzf /tmp/phprojekt.tgz | ||
| - | einfacheren Namen wählen: | ||
| - | mv phprojekt* phprojekt | ||
| - | Rechte anpassen: | ||
| - | chown -R root:root phprojekt | ||
| - | Config-Datei anlegen: | ||
| - | touch phprojekt/config.inc.php | ||
| - | Rechte anpassen: ( Debian ) | ||
| - | chown www-data phprojekt/config.inc.php | ||
| - | Rechte anpassen: ( Fedora ) | ||
| - | chown apache phprojekt/config.inc.php | ||
| - | |||
| - | http://localhost/phprojekt/setup.php in Browser ansteuern und den Anweisungen folgen | ||
| - | |||
| - | ====== Phprojekt als virtuelle Domain ====== | ||
| - | |||
| - | verschieben: | ||
| - | cd /var/www | ||
| - | mkdir -p phprojekt/html | ||
| - | mv phprojekt/* phprojekt/html | ||
| - | rmdir phprojekt/ | ||
| - | |||
| - | ''/etc/httpd/conf.d/phprojekt.conf'' : ( Fedora ) | ||
| - | |||
| - | <file> | ||
| - | <VirtualHost 192.168.1.214> | ||
| - | DocumentRoot /var/www/phprojekt/html | ||
| - | ServerName phprojekt.linuxhotel.de | ||
| - | </VirtualHost> | ||
| - | </file> | ||
| - | |||
| - | DNS Zone anpassen: | ||
| - | nsupdate <<EOF | ||
| - | <file> | ||
| - | update add phprojekt.linuxhotel.de 7200 IN CNAME notebook14.linuxhotel.de | ||
| - | </file> | ||
| - | EOF | ||
| - | |||
| - | Apache neu starten und auf http://phprojekt.linuxhotel.de/setup.php zugreifen. | ||
| - | |||
| - | |||