44 lines
2.1 KiB
TeX
44 lines
2.1 KiB
TeX
|
% master: apache2.tex
|
||
|
% Apache2 v0.1
|
||
|
% 2011-06-01 (Rx)
|
||
|
|
||
|
\subsection{Apache2}
|
||
|
%-------------------
|
||
|
|
||
|
\begin{verbatim}
|
||
|
cd /usr/local/src Verzeichnis wechseln
|
||
|
tar xvfz httpd-2.0.51.tar.gz Quelldateien entpacken
|
||
|
cd httpd-2.0.51 in das Quelldatei-Verzeichnis wechseln
|
||
|
./configure --help Hilfe zu den möglichen Optionen
|
||
|
./configure --prefix=/usr/local/apache2/2.0.51
|
||
|
--with-ssl=../openssl-0.9.7d
|
||
|
--datadir=/srv/www2
|
||
|
--enable-module=most
|
||
|
--enable-shared=max
|
||
|
--enable-module=ssl
|
||
|
--with-port=81 da auf 80 schon der Apache 1.3 läuft
|
||
|
make Programm herstellen
|
||
|
su als root anmelden
|
||
|
make install Programm installieren (als root!)
|
||
|
groupadd wwwadmin Gruppe wwwadmin anlegen
|
||
|
chown -R nobody:wwwadmin /srv/www2 Rechte für das www-Verzeichnis setzen
|
||
|
ln -s /usr/local/apache2/2.0.51 /usr/local/apache2/current
|
||
|
Link zu Apache 2
|
||
|
ln -s /usr/local/apache2/current/conf /etc/apache2
|
||
|
Link zu den Konfigurationen
|
||
|
ln -s /usr/local/apache2/current/logs /var/log/apache2
|
||
|
Link zu den Logdateien
|
||
|
ln -s /usr/local/apache2/current/bin/apachectl /usr/local/bin/apachectl2
|
||
|
Link zu apachectl
|
||
|
ln -s /usr/local/apache2/current/bin/apachectl /etc/init.d/apache2
|
||
|
Link zu den Startdateien
|
||
|
cd /etc/rc5.d in den Start-Runlevel wechseln
|
||
|
ln -s ../init.d/apache2 S20apache2 Link zum automatischen Starten
|
||
|
cd ../rc0.d in den Stopp-Runlevel wechseln
|
||
|
ln -s ../init.d/apache2 K20apache2 Link zum automatischen Beenden
|
||
|
cd ../rc6.d in den Start-Runlevel wechseln
|
||
|
ln -s ../init.d/apache2 K20apache2 Link zum automatischen Beenden
|
||
|
exit root abmelden
|
||
|
\end{verbatim}
|
||
|
|