Files
siarp.de/public/comment/2/index.html
T
Martin Stadler 1c6e73937f cleanup project
* remove httrack meta files
* rename site dir to "public"
2019-12-08 14:00:25 +01:00

442 lines
29 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" version="XHTML+RDFa 1.0" dir="ltr">
<!-- Mirrored from siarp.de/comment/2 by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 08 Dec 2019 12:05:00 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head profile="http://www.w3.org/1999/xhtml/vocab">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Generator" content="Drupal 7 (http://drupal.org)" />
<link rel="canonical" href="../../node/23/" />
<link rel="shortlink" href="../../node/23/" />
<title>Apache 2.2.2, MySQL 5.0.21, PHP 5.1.4 und Subversion 1.3.1 | siarp.de</title>
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_xE-rWrJf-fncB6ztZfd2huxqgxu4WO-qwma6Xer30m4.css" media="all" />
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_NdVgz6YKifxQUEsW5xls_zI7Pn2F7E5U5Wb29zcu3vo.css" media="all" />
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_OAqUol8y_hmU_lCucLyaRX-a1G627sWWbvG_VG1GKnE.css" media="all" />
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_xPIRNNJGw8EiKyuE5b-xAtWWTQ8U1_huTr4xL09Dq2A.css" media="all" />
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_k3snrbsthqot7V7ccRZHS9OkCZkwBv4adtNieIVlbEU.css" media="print" />
<!--[if lt IE 7]>
<link type="text/css" rel="stylesheet" href="http://siarp.de/themes/garland/fix-ie.css?q26w7t" media="all" />
<![endif]-->
<script type="text/javascript" src="../../sites/siarp.de/files/js/js_qikmINIYTWe4jcTUn8cKiMr8bmSDiZB9LQqvceZ6wlM.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"garland","theme_token":"s_zS41wSun4Yc8A1RRh2mwIOBTcbktpudK-ktuUBHYs","js":{"misc\/jquery.js":1,"misc\/jquery-extend-3.4.0.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"modules\/comment\/comment.css":1,"modules\/field\/theme\/field.css":1,"modules\/node\/node.css":1,"modules\/user\/user.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"public:\/\/geshi\/geshifilter-languages.css":1,"sites\/siarp.de\/modules\/geshifilter\/geshifilter.css":1,"themes\/garland\/style.css":1,"themes\/garland\/print.css":1,"themes\/garland\/fix-ie.css":1}}});
//--><!]]>
</script>
</head>
<body class="html not-front not-logged-in one-sidebar sidebar-second page-node page-node- page-node-23 node-type-story fluid-width" >
<div id="skip-link">
<a href="#main-content" class="element-invisible element-focusable">Skip to main content</a>
</div>
<div id="wrapper">
<div id="container" class="clearfix">
<div id="header">
<div id="logo-floater">
<div id="branding"><strong><a href="../../">
<span>siarp.de</span> </a></strong></div>
</div>
</div> <!-- /#header -->
<div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
<h2 class="element-invisible">You are here</h2><div class="breadcrumb"><a href="../../">Home</a></div> <a id="main-content"></a>
<div id="tabs-wrapper" class="clearfix"> <h1 class="with-tabs">Apache 2.2.2, MySQL 5.0.21, PHP 5.1.4 und Subversion 1.3.1</h1>
</div> <div class="clearfix">
<div class="region region-content">
<div id="block-system-main" class="block block-system clearfix">
<div class="content">
<div id="node-23" class="node node-story node-promoted">
<span class="submitted">27. May 2006 - 1:47 — <span class="username">Tilman</span></span>
<div class="content clearfix">
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>Anmerkung: Dieses Protokoll ist mit besserer Formatierung unter <a href="http://www.siarp.de/installation-log.html">http://www.siarp.de/installation-log.html</a> abgelegt.</p>
<div style="font-size: small; text-align: center;">- Ziel: Apache, MySQL, PHP und Subversion auf den Hosteurope vServer unter SuSE 9.1 separat installieren -</div>
<h1>siarp Neuinstallation (Kofler/Subversion-Mischung plus ein paar Extras)</h1>
<!--break--><h2>MySQL, Apache, PHP 5</h2>
<ul><li>
Nach Empfehlung von <a href="http://www.kofler.cc/forum/forumthread.php?rootID=3538">http://www.kofler.cc/forum/forumthread.php?rootID=3538</a> deinstalliere ich Apache, PHP und MySQL über yast.<br />
Dabei ignoriere ich sämtliche Abhängigkeiten mit irgendwelchen installierten 'frontpage extensions', 'mambo' und vor allem dem Paket 'psa' → Plesk wird kastriert.
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ rcapache2 stop<br />
$ yast<br /><em>→ nach 'mysql', 'php' und 'apache' suchen, alles raushauen und neu starten</em>
</div>
</li>
<li>
Ich lege im Home-Verzeichnis von root ein Verzeichnis <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">siarp</span> an, in dem ich herunterladen und entpacken kann. Dahin lade ich die Apache-Quellen, MySQL, PHP und Subversion.
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ cd ~<br /><br />
$ md siarp<br />
$ cd siarp<br />
$ wget http://ftp.wayne.edu/apache/httpd/httpd-2.2.2.tar.gz<br />
$ wget http://dev.mysql.com/get/Downloads/MySQL-5.0/MySQL-server-5.0.21-0.glibc23.i386.rpm/from/ftp://ftp.fu-berlin.de/unix/databases/mysql/<br />
$ wget http://dev.mysql.com/get/Downloads/MySQL-5.0/MySQL-client-5.0.21-0.glibc23.i386.rpm/from/ftp://ftp.fu-berlin.de/unix/databases/mysql/<br />
$ wget http://dev.mysql.com/get/Downloads/MySQL-5.0/MySQL-devel-5.0.21-0.glibc23.i386.rpm/from/ftp://ftp.fu-berlin.de/unix/databases/mysql/<br />
$ wget http://dev.mysql.com/get/Downloads/MySQL-5.0/MySQL-shared-5.0.21-0.glibc23.i386.rpm/from/ftp://ftp.fu-berlin.de/unix/databases/mysql/<br />
$ wget http://de2.php.net/get/php-5.1.4.tar.gz/from/de3.php.net/mirror
</div>
</li>
<li>
Dann noch entpacken:
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ gunzip httpd-2.2.2.tar.gz<br />
$ gunzip php-5.1.4.tar.gz<br />
$ tar -xvf httpd-2.2.2.tar<br />
$ tar -xvf php-5.1.4.tar
</div>
</li>
<li>
MySQL installieren
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ cd ~/siarp<br />
$ rpm -i MySQL*.rpm
</div>
</li>
<li>
Weiter nach der <a href="http://www.kofler.cc/forum/forumthread.php?rootID=3538">Kofler-Anleitung</a>:
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ wget http://kent.dl.sourceforge.net/sourceforge/libpng/zlib-1.2.3.tar.gz<br />
$ wget ftp://xmlsoft.org/libxml2/libxml2-2.6.24.tar.gz<br />
$ gunzip zlib-1.2.3.tar.gz<br />
$ gunzip libxml2-2.6.24.tar.gz<br />
$ tar -xvf zlib-1.2.3.tar<br />
$ tar -xvf libxml2-2.6.24.tar
</div>
</li>
<li>
Installation der Libraries
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ cd zlib-1.2.3/<br />
$ ./configure<br />
$ make<br />
$ make install<br />
$ cd ..<br />
$ cd libxml2-2.6.24/<br />
$ ./configure<br />
$ make<br />
$ make install<br />
$ cd ..
</div>
</li>
<li>
Apache2 in <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/usr/local/apache2</span> installieren. Ich habe hier noch ein paar zusätzliche Module aktiviert, WebDAV wird von Subversion benötigt.
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ cd httpd-2.2.2/<br />
$ ./configure --prefix=/usr/local/apache2 --enable-so --enable-dav --enable-ssl --enable-alias --enable-dir --enable-deflate<br />
$ make<br />
$ make install<br />
$ cd ..
</div>
</li>
<li>
PHP installieren
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ cd php-5.1.4/<br />
$ ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local/lib --with-zlib --with-zlib-dir=/usr/local/lib --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-gd --enable-soap --enable-sockets<br />
$ make<br />
$ make install
</div>
</li>
<li>
In die <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/usr/local/apache2/conf/httpd.conf</span> füge ich in Zeile 55 ein:
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
#siarp (manuell eingefuegt nach php-Installation)<br />
AddType application/x-httpd-php .php
</div>
</li>
<li>
Testlauf
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ /usr/local/apache2/bin/apachectl start<br />
$ touch /usr/local/apache2/htdocs/phptest.php
</div>
<p> Dann in die Datei <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">phptest.php</span> die Zeile <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">&lt;?php phpinfo(); ?&gt;</span> einfügen und speichern. Und siehe: Die PHP-Konfiguration ist <a href="http://www.siarp.de/phptest.php">einsehbar</a>.
</p></li>
<li>
<span style="font-weight: bold;">Aber: Schon verhält er sich komisch!</span> HTML-Seiten, in denen auf ein Bild verwiesen wird, werden nicht ausgeliefert. (Wieder das Dateigrößen-Problem?)<br /><span style="font-weight: bold;">Nach etwas Suchen dann die Lösung:</span> In der <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">httpd.conf</span> muss die Zeile "<span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">EnableSendfile off</span>" aktiviert werden (Z. 360). → Die Sendfile-Unterstützung wurde beim Kompilieren wohl nicht richtig erkannt; ein Klassiker.<br /><span style="font-weight: bold;">Frage:</span> Sollte auch MMAP (Zeile darüber) deaktiviert werden? (Das war der Standard-Trick beim XAMPP.) Da MMAP und Sendfile aber wohl für Performanceverbesserungen stehen (größerer Adressraum, glaube ich), lasse ich zumindest MMAP bis auf Weiteres drin.
</li>
<li>
Weil's bis hierher so schön lief, logge ich mich in Virtuzzo ein, und erstelle vor der Subversion-Installation noch ein Backup.:<br />
"May 27, 2006 01:48:45 PM, 580.83 Mb" (SuSE-Apache, -PHP und -MySQL deinstalliert und separat installiert)
</li>
</ul><h2>Subversion: Installation</h2>
<ul><li>
Erst mal zurück nach Hause und Subversion herunterladen und entpacken
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ cd ~/siarp<br />
$ wget http://subversion.tigris.org/downloads/subversion-1.3.1.tar.gz<br />
$ gunzip subversion-1.3.1.tar.gz<br />
$ tar -xvf subversion-1.3.1.tar
</div>
</li>
<li>
Jetzt mit den magischen Parametern installieren. (Im Wesentlichen nach <a href="http://svn.collab.net/repos/svn/trunk/INSTALL">http://svn.collab.net/repos/svn/trunk/INSTALL</a> mit Hilfe von <a href="http://iedb.org/blog/howtos/svn_install_de/">http://iedb.org/blog/howtos/svn_install_de/</a>.)
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ cd subversion-1.3.1/<br />
$ ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2 --with-ssl --with-zlib
</div>
<p> Am Schluss heult <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">configure</span> noch rum, dass keine BerkeleyDB installiert ist. Wunderbar, FSFS ist sowieso moderner. (→ <a href="http://svnbook.red-bean.com/en/1.1/ch05.html#svn-ch-5-sect-1.3.2">http://svnbook.red-bean.com/en/1.1/ch05.html#svn-ch-5-sect-1.3.2</a> und Vergleich unter <a href="http://svnbook.red-bean.com/en/1.2/svn.reposadmin.html#svn.reposadmin.basics.backends">http://svnbook.red-bean.com/en/1.2/svn.reposadmin.html#svn.reposadmin.basics.backends</a>)<br />
Und weiter:</p>
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ make<br />
$ make install
</div>
</li>
<li>
Leider will Apache jetzt nicht mehr starten und meldet<br /><span style="color:#707070; font-style: italic;"><br />
httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_dav_svn.so into server: libsvn_repos-1.so.0: cannot open shared object file: No such file or directory<br /></span><br />
Aber das kenne ich schon vom XAMPP - Google hilft. Unter <a href="http://svn.haxx.se/users/archive-2004-11/0390.shtml">http://svn.haxx.se/users/archive-2004-11/0390.shtml</a> wird mir empfohlen, in der Datei <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/etc/ld.so.conf</span> die Zeile <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/usr/local/lib</span> einzufügen. Da die bereits vorhanden ist und ich ja auf die Libraries vom separat installierten Apache verweisen möchte, versuche ich es mit <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/usr/local/apache2/lib</span> (weil <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">make install</span> am Schluss ausgiebt, dass die Libraries dorthin installiert wurden). Danach muss die Konfiguration erneuert werden:
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ /sbin/ldconfig
</div>
<p> Und schon will er wieder.
</p></li>
</ul><h2>Subversion: Konfiguration</h2>
<ul><li>
Erste Frage: Wohin mit dem Repository? (Ich habe diese UNIX-Verzeichnisstruktur nie so wirklich verinnerlicht.) Nach einem Blick in <a href="http://de.wikibooks.org/wiki/Linux-Kompendium:_Verzeichnisse_unter_Linux">http://de.wikibooks.org/wiki/Linux-Kompendium:_Verzeichnisse_unter_Linux</a> bin ich nur unwesentlich schlauer und entscheide ich mich für <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/home/svn-repos</span>.
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ cd /home<br />
$ md svn-repos
</div>
</li>
<li>
Die zweite Frage ist, wofür und wieviele Repositories angelegt werden sollten. Ich beginne mal mit <a href="http://www.siarp.de/svn/siarp">siarp</a>. Subversion arbeitet dabei als Benutzer <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">svn</span>.
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ cd /home/svn-repos<br />
$ md siarp<br />
$ svnadmin create /home/svn-repos/siarp<br />
$ chown -R svn.svn /home/svn-repos/siarp<br />
$ chmod -R ug+w /home/svn-repos/siarp<br />
$ chmod ug+s /home/svn-repos/siarp /home/svn-repos/siarp/*
</div>
</li>
<li>
Damit die Repositories etwas schöner gelistet werden, bringt Subversion noch ein Stylesheet für Apache mit, das in die <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">htdocs</span> muss.
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ cd ~/siarp/subversion-1.3.1/tools/xslt/<br />
$ md /usr/local/apache2/htdocs/subversion-xslt<br />
$ cp * /usr/local/apache2/htdocs/subversion-xslt<br />
$ chmod 644 /usr/local/apache2/htdocs/subversion-xslt/*
</div>
</li>
<li>
Apache muss auf die Repositories zugreifen können. In der Subversion-Installationsanleitung heißt es dazu lapidar:
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
NOTE: Make sure that the user 'nobody' (or whatever UID the httpd process runs as) has permission to read and write the Berkeley DB files! This is a very common problem.
</div>
<p> Davon weiß ich allerdings nicht, wie man das am sinnvollsten regelt. Auch im <a href="http://svnbook.red-bean.com/en/1.2/svn.serverconfig.httpd.html#svn.serverconfig.httpd.basic">Subversion Handbuch</a> steht nur was von <cite>"There is no single correct way to set up your permissions"</cite>.<br />
Die Repositories einfach allgemein freigben? In der schönen (und häufig zitierten) <a href="http://iedb.org/blog/howtos/svn_install_de/">Deadbeef-Anleitung für Apache+Subversion</a> wird einfach der gesamte Apache mit dem svn-User gestartet. Allerdings geht das nur, wenn man den Server <a href="http://svn.haxx.se/users/archive-2004-10/1024.shtml">nicht auf den Standard-Ports betreibt</a>. Meine Lösung wird im Subversion Handbuch zwar nur angedeutet, sollte aber korrekt sein: Dem Apache über die <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">httpd.conf</span> mitteilen, dass er als Nutzer <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">svn</span> agieren soll. Also die Zeilen 70 und 71 ändern auf. (Davor lief Apache als <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">daemon</span>.)</p>
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
User svn<br />
Group svn
</div>
</li>
<li>
Jetzt muss noch Apache das neue Repository in der <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">https.conf</span> bekannt gegeben werden:
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
# siarp Subversion-Anhang<br />
&lt;Location /svn/siarp&gt;<br />
  DAV svn<br />
  SVNPath /home/svn-repos/siarp<br />
   SVNIndexXSLT "/subversion-xslt/svnindex.xsl"<br />
  AuthType Basic<br />
  AuthName "siarp.de repository"<br />
  AuthUserFile /home/svn-repos/svn-auth-file<br />
  Require user martin tilman<br />
&lt;/Location&gt;
</div>
</li>
<li>
Für die Nutzerverwaltung braucht Subversion ein Userfile, das ich unter <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/home/svn-repos/svn-auth-file</span> anlegen will. Dafür muss ich das htpasswd-Tool vom Apache benutzen:
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ /usr/local/apache2/bin/htpasswd -cm /home/svn-repos/svn-auth-file tilman<br /><span style="color:#707070; font-style: italic;"><br />
New password:<br />
Re-type new password:<br />
Adding password for user tilman<br /></span>
</div>
<p> <span style="font-weight: bold;">Neue Benutzer</span> fügt man mit dem Befehl <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/usr/local/apache2/bin/htpasswd -m /home/svn-repos/svn-auth-file <em>benutzername</em></span> hinzu.
</p></li>
<li>
Das war's. Subversion ist unter <a href="http://www.siarp.de/svn/siarp/">http://www.siarp.de/svn/siarp/</a> erreichbar, sobald Apache gestartet ist.
<div style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">
$ /usr/local/apache2/bin/apachectl start
</div>
</li>
<li>
Als krönenden Abschluss kopiere ich mein Protokoll in <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">htdocs</span>, so dass es unter <a href="http://www.siarp.de/installation-log.html">http://www.siarp.de/installation-log.html</a> erreichbar ist und mache mit Virtuzzo ein Backup ("May 27, 2006 05:41:32 PM, 707.27 Mb").
</li>
</ul><p><a id="zusammenfassung"></a></p>
<h2>Zusammenfassung, To-Do und Fragen</h2>
<p>
So weit, so gut. Wir haben jetzt Apache mit MySQL und PHP und außerdem ein funktionierendes Subversion. Was muss jetzt noch kommen?
</p>
<ul><li>Subversion mit SSL nutzen. Dafür habe ich Apache mit --enable-ssl kompiliert, aber noch nix probiert.</li>
<li>MySQL testen. Noch nicht gemacht.</li>
<li>Eventuell noch etwas Sicherheits-Tuning. MySQL ist noch unkonfiguriert (Passwort) und der Subversion-User ist auch noch ohne Passwort.</li>
<li>Noch mal eine schöne "Wie legt man ein Repository an"-Anleitung, die man dann nur noch abarbeiten muss</li>
<li>Automatisiertes Backup für Repositories und htdocs. Was noch?</li>
<li>Vielleicht sollte Apache nach einem Reboot automatisch starten. Wie das geht steht in der <a href="http://www.kofler.cc/forum/forumthread.php?rootID=3538">Kofler-Anleitung</a>.</li>
<li>Noch mal die Frage: Brauchen wir System-Nutzer-Accounts? Oder müssen wir sowieso als root arbeiten, bei dem, was wir tun?</li>
</ul><p>
Allgemeine Bemerkungen zur Konfiguration
</p>
<ul><li>Apache wird gestartet mit <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/usr/local/apache2/bin/apachectl start</span></li>
<li>Die Webseite liegt unter <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/usr/local/apache2/htdocs/</span>, die Repositories unter <span style="font-family: 'Courier New', monospace; margin-top: 0.5ex; margin-bottom: 0.5ex;">/home/svn-repos/</span></li>
<li>Wir sollten wohl doch für jedes Projekt ein extra Repository anlegen, da sonst das System der Gesamt-Versionsnummer von Subversion keinen Sinn macht</li>
</ul><p><a id="backup"></a></p>
<h2>Further reading: Backup und Vorsorge</h2>
<ul><li>
Noch ein paar Überlegungen zum Thema Backup: Virtuzzo geht relativ fix (ca. 20 Min), allerdings sind nur zwei Backups möglich. Also am besten später mal durch ein Backup des komplett eingerichteten Systems ersetzen. Dann hat man immer noch ein Backup für akutes übrig.
</li>
<li>
Im Hosteurope-Hilfesystem wird außerdem <a href="http://reoback.sourceforge.net/">ReoBack</a> empfohlen. Vielleicht bei Gelegenheit mal anschauen.
</li>
<li>
Noch was anderes: Anscheinend kann man (im Gegensatz zu den WebPacks) den Traffic nicht hart limitieren. Bis jetzt hatten wir beim Rumbasteln immer unter 400MB im Monat. Freivolumen ist laut KIS 250GB (die neuen Pakete haben 500GB bei gleichem Preis, das hätten sie ruhig mal rückwirkend upgraden können), das macht also ca. 8GB am Tag. Ich habe jedenfalls erst mal eine Warnbenachrichtigung bei mehr als 2GB am Tag eingerichtet.
</li>
<li>
Hab mich bei der Suche nach einer harten Traffic-Begrenzung nochmal in Plesk eingeloggt. Das ist jetzt wohl wirklich blind und taub, man bekommt keine Server-Optionen mehr angezeigt.
</li>
</ul><h2>Dank an (Linksammlung)</h2>
<ul><li><a href="../../">http://www.siarp.de/</a></li>
<!--
<li><p><a href="http://80.237.161.173/">http://80.237.161.173/</a></li>
<li><a href="https://80.237.161.173:4643/vz/cp">https://80.237.161.173:4643/vz/cp</a></li>
<li><a href="http://siarpde.standartimnetz.de/">http://siarpde.standartimnetz.de/</a></li>
<p>-->
<li><a href="http://www.kofler.cc/forum/forumthread.php?rootID=3538">http://www.kofler.cc/forum/forumthread.php?rootID=3538</a></li>
<li><a href="http://www.bananas-playground.net/index.php?p=tutorials&amp;m=svn.scratch#subversion">http://www.bananas-playground.net/index.php?p=tutorials&amp;m=svn.scratch#subversion</a></li>
<li><a href="http://svn.collab.net/repos/svn/trunk/INSTALL">http://svn.collab.net/repos/svn/trunk/INSTALL</a></li>
<li><a href="http://forum.subversionbuch.de/viewtopic.php?t=62">http://forum.subversionbuch.de/viewtopic.php?t=62</a></li>
<li><a href="http://www.apachefriends.org/f/viewtopic.php?t=17636">http://www.apachefriends.org/f/viewtopic.php?t=17636</a></li>
<li><a href="http://iedb.org/blog/?page_id=12">http://iedb.org/blog/?page_id=12</a></li>
<li><a href="http://dev.mysql.com/tech-resources/articles/4.1/unicode.html">http://dev.mysql.com/tech-resources/articles/4.1/unicode.html</a></li>
</ul></div></div></div> </div>
<div class="clearfix">
<div class="links"><ul class="links inline"><li class="comment_forbidden first last"></li>
</ul></div>
<div id="comments" class="comment-wrapper">
<h2 class="title">Comments</h2>
<a id="comment-2"></a>
<div class="comment comment-by-node-author odd">
<div class="clearfix">
<span class="submitted">27. May 2006 - 9:47 — <span class="username">Tilman</span></span>
<h3><a href="index.html#comment-2" class="permalink" rel="bookmark">Mehrere Repositories mit einem httpd.conf-Eintrag</a></h3>
<div class="content">
<div class="field field-name-comment-body field-type-text-long field-label-hidden"><div class="field-items"><div class="field-item even"><p>Wie gesagt, es muss noch ein Repositories-erstellen-HowTo folgen. Um es zu dokumentieren schon mal die Bemerkung:</p>
<p>Man muss nicht unbedingt jedes Repository einzeln in die httpd.conf eintragen, sondern kann dort auch einen SVNParentPath angeben. Alle Repositories, die in diesem Verzeichnis liegen, werden dann automatisch gelistet. Nachteil: Keine getrennte Benutzerverwaltung für die verschiedenen Repositories (soweit mir bekannt --&gt; nochmal prüfen)</p>
</div></div></div> </div>
</div>
<ul class="links inline"><li class="comment_forbidden first last"></li>
</ul></div>
<a id="comment-3"></a>
<div class="comment comment-by-node-author even">
<div class="clearfix">
<span class="submitted">27. May 2006 - 10:00 — <span class="username">Tilman</span></span>
<h3><a href="../3/#comment-3" class="permalink" rel="bookmark">Weitere Apache-Module</a></h3>
<div class="content">
<div class="field field-name-comment-body field-type-text-long field-label-hidden"><div class="field-items"><div class="field-item even"><p>Sammlung: Module, die vielleicht auch noch schön für'n Apache wären. (Lassen sich durch --enable-so ja nachträglich einbinden.)</p>
<p>- mod_deflate<br />
Dazu Zitat aus der Subversion-Installationsanleitung:<br />
If you have configured mod_deflate to be in the server, you can enable compression support for your repository by adding the following line to your Location block: <span class="geshifilter"><code class="text geshifilter-text">SetOutputFilter DEFLATE</code></span></p>
<p>- mod_mime<br />
MIME-Zuordnung nach Dateinamenerweiterung</p>
<p>- mod_dav_fs<br />
Dieses Modul bietet Zugriff auf das _lokale_ Dateisystem, falls gebraucht. So oder so ist WebDAV an sich noch mal einen Blick wert.</p>
<p>- mod_vhost_alias<br />
Wird's gebraucht? Ich hab noch nicht so die Ahnung von vHost-Konzept.</p>
<p>- mod_dir<br />
Das habe ich vergessen. Directory-Listings sind mitunter schon ganz praktisch.</p>
</div></div></div> </div>
</div>
<ul class="links inline"><li class="comment_forbidden first last"></li>
</ul></div>
<a id="comment-4"></a>
<div class="comment comment-by-node-author odd">
<div class="clearfix">
<span class="submitted">27. May 2006 - 12:51 — <span class="username">Tilman</span></span>
<h3><a href="../4/#comment-4" class="permalink" rel="bookmark">PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !</a></h3>
<div class="content">
<div class="field field-name-comment-body field-type-text-long field-label-hidden"><div class="field-items"><div class="field-item even"><p>To do so, start the server, then issue the following commands:<br />
/usr/bin/mysqladmin -u root password 'new-password'<br />
/usr/bin/mysqladmin -u root -h lvps80-237-161-173.dedicated.hosteurope.de password 'new-password'<br />
See the manual for more instructions.</p>
</div></div></div> </div>
</div>
<ul class="links inline"><li class="comment_forbidden first last"></li>
</ul></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="region region-footer">
<div id="block-block-3" class="block block-block clearfix">
<div class="content">
<p>Alle Rechte liegen bei siarp.</p>
</div>
</div>
</div>
</div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
<div id="sidebar-second" class="sidebar">
<div class="region region-sidebar-second">
<div id="block-menu-menu-autoren" class="block block-menu clearfix">
<h2 class="title">Written by</h2>
<div class="content">
<ul class="menu"><li class="first leaf"><a href="../../blog/2/">Martin</a></li>
<li class="last leaf"><a href="../../blog/3/">Tilman</a></li>
</ul> </div>
</div>
</div>
</div>
</div> <!-- /#container -->
</div> <!-- /#wrapper -->
</body>
<!-- Mirrored from siarp.de/comment/2 by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 08 Dec 2019 12:05:00 GMT -->
</html>