<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sheepdog IT &#187; YaST</title>
	<atom:link href="http://www.sheepdogit.com/category/yast/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sheepdogit.com</link>
	<description>Herding Penguins for over 5 years</description>
	<lastBuildDate>Tue, 15 Jun 2010 20:35:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>phpMyAdmin Installation, openSUSE 10.2</title>
		<link>http://www.sheepdogit.com/2008/05/01/phpmyadmin-installation-opensuse-102/</link>
		<comments>http://www.sheepdogit.com/2008/05/01/phpmyadmin-installation-opensuse-102/#comments</comments>
		<pubDate>Fri, 02 May 2008 02:02:49 +0000</pubDate>
		<dc:creator>Bozzie</dc:creator>
				<category><![CDATA[SUSE]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[YaST]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://bozziesfw.wordpress.com/?p=67</guid>
		<description><![CDATA[I installed the phpmyadmin package the other day using YaST and need to document some things:

Configuration area (config.inc.php file) ends up in /srv/www/htdocs/phpMyAdmin along with the rest of the installation.
Decided to use &#8220;cookie based authentication&#8221;; don&#8217;t think I need to remember the password.
The advanced features were turned on in config.sample.inc.php, but the YaST installer doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I installed the <em>phpmyadmin</em> package the other day using YaST and need to document some things:</p>
<ul>
<li>Configuration area (<em>config.inc.php</em> file) ends up in <em>/srv/www/htdocs/phpMyAdmin</em> along with the rest of the installation.</li>
<li>Decided to use &#8220;cookie based authentication&#8221;; don&#8217;t think I need to remember the password.</li>
<li>The advanced features were turned on in <em>config.sample.inc.php,</em> but the YaST installer doesn&#8217;t load the schema required for this into the mySQL database (maybe it&#8217;s not possible unless done during <em>mySQL</em> installation).  This resulted in endless error messages of <em>&#8220;Table &#8216;<span class="posthilit">phpmyadmin</span>.pma_bookmark&#8217; doesn&#8217;t exist&#8221;.</em></li>
<li>Learned that I needed to run <em>create_tables.sql</em>, which was not included in the openSUSE package.  I downloaded it from the phpMyAdmin site, created user &#8220;pma&#8221;, defined corresponding <em>controluser</em> and <em>controlpass</em> entries in the config file.  <em>create_tables</em> finally ran successfully and the bookmarks error messages went away.</li>
<li>Stopped annoying half-hour auto-logout with: <em>$cfg['LoginCookieValidity'] = 3600 * 8;</em></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sheepdogit.com/2008/05/01/phpmyadmin-installation-opensuse-102/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>crontab Configuration, openSUSE 10.2</title>
		<link>http://www.sheepdogit.com/2007/03/11/crontab-opensuse-102/</link>
		<comments>http://www.sheepdogit.com/2007/03/11/crontab-opensuse-102/#comments</comments>
		<pubDate>Sun, 11 Mar 2007 12:02:54 +0000</pubDate>
		<dc:creator>Bozzie</dc:creator>
				<category><![CDATA[SUSE]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[YaST]]></category>

		<guid isPermaLink="false">http://bozziesfw.wordpress.com/2007/03/11/crontab-opensuse-102/</guid>
		<description><![CDATA[At some point several years ago, SUSE and Redhat migrated to new multi-file and sub-directory approaches (search anacron)  for their system crontabs. A helpful comment posted to my 2 March entry motivated me to learn how these are set up. Here&#8217;s how openSUSE 10.2 structures its cron configuration and provides the means of controlling [...]]]></description>
			<content:encoded><![CDATA[<p>At some point several years ago, SUSE and Redhat migrated to new multi-file and sub-directory approaches (search <i>anacron)</i>  for their system crontabs. A helpful comment posted to my 2 March entry motivated me to learn how these are set up. Here&#8217;s how openSUSE 10.2 structures its <i>cron</i> configuration and provides the means of controlling it:</p>
<ul>
<li>YaST, System, sysconfig editor, cron &#8211; edits various configuration parameters stored in the <i>/etc/sysconfig/cron</i> file (this file can also be edited directly).</li>
<li>YaST, System, System Services &#8211; turn the <i>cron</i> service on/off here.</li>
<li><i>/etc/crontab, /etc/cron.d/*, /var/spool/cron/tab/&lt;userid&gt;</i> &#8211; these files all use the format described in the crontab 5 man page. My as-installed configuration has one line in <i>/etc/crontab</i> that calls <i>run-crons</i> every 15 minutes (*/15). All of the other directories were empty. Also, the one line<i> </i>starts with a dash, a special feature for root that prevents sending a message to the syslog file.</li>
<li><i>/usr/lib/cron/run-crons</i> &#8211; shell script called by the default <i>/etc/crontab</i> entry.   <i>run-crons</i> runs all pending shell scripts in the <i>/etc/cron.*</i> sub-directories.  This is an extensive script containing the logic to handle systems that don&#8217;t run 24&#215;7.</li>
<li> <i>/etc/cron.{hourly, daily, weekly, monthly}</i> &#8211; these directories contain <i>bash</i> scripts, not crontab-format files.</li>
</ul>
<p>As installed, <i>/etc/crontab</i> runs dailies within the first 15 minutes after rebooting and every 24 hours thereafter.  If one has the misfortune to get that first run during work hours, <i>cron</i> will continue to run the dailies every day at that time!  The daily tasks have a lot of system-wide finds (core files, <i>locate,</i> <i>beagle,</i> etc) that consume 100% of the cpu. This annoyed me frequently in my SUSE 10.0 days.</p>
<p>From reading the <i>run-crons</i> code, I found out about the DAILY_TIME parameter in <i>/etc/sysconfig</i>. If this is set, <i>cron</i> runs the daily tasks only during the hour specified.  The trade-off is that the computer must be running at DAILY_TIME (but if not, <i>cron</i> will run daily tasks anyway after MAX_NOT_RUN days).  The weekly and monthly tasks aren&#8217;t controlled by DAILY_TIME, so I guess if I reboot one minute after noon, weekly and monthly tasks will run at 12:15 pm thereafter.</p>
<p>To try all this out, I  set DAILY_TIME to 14:00 and changed the <i>/etc/crontab</i>  minutes parameter to 22,52, and will expect to see activity each day at 2:22 pm.</p>
<p>A nice extension would be a WORK_DAY parameter; a time span during which cron would avoid running any of the periodic tasks.  This would retain <i>cron</i>&#8217;s ability to run tasks within the first 15 minutes after a reboot, so long as it didn&#8217;t occur during work hours.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sheepdogit.com/2007/03/11/crontab-opensuse-102/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ZEN and YaST Updater Issues, openSUSE 10.2</title>
		<link>http://www.sheepdogit.com/2007/03/07/zen-yast-opensuse-102/</link>
		<comments>http://www.sheepdogit.com/2007/03/07/zen-yast-opensuse-102/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 08:43:42 +0000</pubDate>
		<dc:creator>Bozzie</dc:creator>
				<category><![CDATA[SUSE]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[YaST]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://bozziesfw.wordpress.com/2007/03/07/zen-yast-opensuse-102/</guid>
		<description><![CDATA[Update, Dec 07: Have successfully removed ZENworks/zmd, solving all problems described herein.  See post of 12-Dec-07.
My happiness with openSUSE 10.2 disappears when the Zen Updater runs. Every time it starts, does an update, restarts, etc, update-status (a compiled 64-bit executable, not a Perl or Python script) runs for 5-7 minutes with 99% cpu usage.
Others [...]]]></description>
			<content:encoded><![CDATA[<h4><b>Update, Dec 07:</b> Have successfully removed ZENworks/zmd, solving all problems described herein.  See post of <a href="http://bozziesfw.wordpress.com/2007/12/12/howto-disable-zenworks-zmd-opensuse-102/" title="How To Disable ZENworks ZMD, openSUSE 10.2">12-Dec-07</a>.</h4>
<p>My happiness with openSUSE 10.2 disappears when the Zen Updater runs. Every time it starts, does an update, restarts, etc, <i>update-status</i> (a compiled 64-bit executable, not a Perl or Python script) runs for 5-7 minutes with 99% cpu usage.</p>
<p><a href="http://www.linuxquestions.org/questions/showthread.php?t=531997" title="LinuxQuestions.org">Others</a> have complained about this problem, so it&#8217;s not just my installation. When I first wrote this, I had a couple of angry paragraphs about the ills of ZENworks and <i>zmd.</i>  Since then, I located a more <a href="http://drwetter.org/suse10.1/report.suse-10.1.html#zmd" title="I am Hungry - zmd.exe">well-reasoned critique of ZENworks</a> (complete with screen shots).  It reviews <i>openSUSE</i> <i>10.1,</i> but most everything still applies.</p>
<p>I started YaST, Software, Online Update Configuration. This turns out to be a canned task that accepts no user input and assigns you randomly to a SUSE update repository each time it runs. So I was moved from <i>utah.edu</i> to somewhere else (with a couple 6 minute <i>update-status </i>runs thrown in).</p>
<p>How shall I deal with ZENworks?  First I read an article in <a href="http://susewiki.org/index.php?title=Main_Page" title="SUSE Wiki">SUSEWiki.org</a>  on <a href="http://susewiki.org/index.php?title=Adding_YaST_Sources">Adding YaST Sources</a>.  This discussed how to use a local ISO file instead of the installation CD as the main package catalog, and pointed out a second,  YaST update configuration screen: YaST, Software, Installation Source. This is the familiar YaST interface that allows one to configure all package and update repository catalogs.</p>
<p>A log of the various steps I tried (long and tedious, scroll down to the Conclusions):</p>
<ul>
<li> YaST, Software, Installation Source.</li>
<li>Add, Media Type -&gt; Local Directory.</li>
<li>I checked the ISO image box, browsed to my new <i>/iso</i> directory where I had placed the 10.2 ISO image.</li>
<li>YaST scanned the image and a new &#8220;Configured Software Catalog&#8221; appeared.</li>
<li>To test, I turned the Status Source Setting to Off for the DVD, left the &#8220;Synchronize with ZENworks option turned on, and clicked Finish.</li>
<li>A &#8220;synchronizing with ZENworks&#8221; info box appeared, so off to the kitchen for a snack during a few minutes of <i>parse-metadata</i> followed by another 6 minutes of <i>update-status.</i></li>
<li>Started YaST, Software, Online Update (called <i>YOU</i> in SUSE 10).  It suggested an update to Firefox 1.5.0.9, which I new was wrong because openSUSE 10.2 is on 2.0.  Where did the problem come from: using YOU, or the ZEN reconfig that switched repositories?</li>
<li>Installation Source GUI confirms my ISO catalog and the <i>osuosl.org</i> update catalog are both 10.2.  Software Management GUI shows the correct version of Firefox currently installed.</li>
<li>Noticed in the ZEN Software Updater, Configure, that one of the catalogs I had deleted with YaST still appeared.  I removed it here also, and the process took only a few seconds!  Something is different with update-status.</li>
<li>Lots of changes through two separate interfaces, so let&#8217;s reboot &#8230; update-status ran less than 2 min, but both  <i>zen-updater</i> and <i>YOU</i> don&#8217;t present the correct pending updates.</li>
<li>Tar file of /var/lib/rpm, then <i>rpm &#8211;initdb; rpm &#8211;rebuilddb</i> to see if rebuilding the RPM database would fix things.  The dates on the DB files were no different upon completion.</li>
<li>Hid the files, re-ran <i>rpm,</i> no new rpm databases appeared.  Apparently <i>rebuilddb </i>is no longer functional.  Replaced the files, now YaST Software Management looks normal again.  ZEN&#8217;s database seems to be in <i>/var/lib/zypp.</i></li>
<li>Perhaps the ZEN Management Daemon (<i>zmd</i>) is responsible.  Crossing my fingers, I ran Online Update Configuration again. <i>update-status</i> completed in less than a minute.  ZEN failed, saying that it had updated YaST (ftp.ale.org this time) but could not update ZEN.  Indeed ZEN still retains the old update repository.</li>
<li>Started <i>YOU,</i> and the correct updates appear!</li>
<li>Accepted all updates, and they installed correctly, even the Nokia one that had choked ZEN, starting this problem in the first place.  Also, new dates have appeared on all of the <i>/var/lib/rpm</i> database files, so they are apparently okay.</li>
<li>Read some <a href="http://www.novell.com/coolsolutions/feature/16592.html" title="NOvell Cool Solutions">Novell instructions</a> and decided to add a third party repository <i>packman.unixheads.com/suse/10.2</i> which now appears as a YUM repository.  This triggered &#8220;synchronizing with ZENworks&#8221;; let&#8217;s see if the YUM update repository gets fixed.</li>
<li>The ZEN updater is now showing the exclamation point.  It wants to update a bunch of packages that I don&#8217;t have installed, packages from packman apparently.  I guess it thinks this is the update repository.  I turned off <i>packman </i>in the configure screen.</li>
<li><i>update-status</i> ran 3 minutes with <i>packman </i>added. So it appears that nothing was wrong with my system: ZEN is just cpu intensive.</li>
<li>YaST, Software Management now shows <i>ksensor</i>, which I know is from packman.  Installation was successful.</li>
<li>YaST Online Updater is currently working fine with one update catalog and ZEN now presents only the local ISO catalog. Bad news. <b>Options:</b>
<ul>
<li>Keep re-running YaST Online Update Configuration until ZEN installs a catalog that both it and YaST accept. But I&#8217;m worried that I&#8217;ve broken ZEN somehow and it won&#8217;t accept any catalog.</li>
<li>Switch the panel updater applet from ZEN to YaST (an earlier post describes the controlling <i>/etc/sysconfig</i> option).   Does this also turn off <i>zmd?</i></li>
<li>Make no changes.  See if the ZEN applet shows new updates.  If not, periodically run <i>YOU</i> to check.  Take further action in the event that <i>YOU</i> shows updates and ZEN does not.</li>
</ul>
</li>
<li>I don&#8217;t know what process updates the <i>rpm </i>database and since <i>rpm &#8211;rebuilddb</i> was shown to have no effect, I&#8217;d better make sure to make a copy of the database before doing anything risky.</li>
</ul>
<p>Conclusions:</p>
<ul>
<li> ZEN processes (<i>zmd, parse-metadata, update-status</i>) are cpu intensive. With <b>no progress bar or feedback of any kind</b> in <i>zen-updater</i> to show concerned users what&#8217;s happening, it&#8217;s easy to think &#8220;infinite loop&#8221; when cpu times skyrocket.  But it&#8217;s probably just a catalog that takes a long time to process.</li>
<li>ZEN&#8217;s configuration of and interaction with YUM update catalogs is fragile. Running YaST, Online Update Configuration to assign a different update catalog is a good option to solve unexplained updater failures and error messages.  Sometimes it must be run more than once. Consider it a ZEN reboot.</li>
</ul>
<p>Current Status:</p>
<ul>
<li>Both YaST and ZEN have accepted the switch from the DVD to the local ISO file that I installed.  So I won&#8217;t ever need to load the DVD again. Excellent &#8211; will add this step to my Linux  upgrade checklist.</li>
<li>I now better understand the repositories and DVDs.  The retail package DVD (which is double layer) contains <i>noarch, i586, and x86_64</i> packages for both <i>oss</i> and <i>non-oss</i>.  My downloaded ISO DVD image is missing <i>i586</i> packages.  Online repositories have all architectures, but are split between <i>oss</i> and<i> non-oss. </i>I need a source for <i>oss</i> and<i> non-oss </i><i>i586</i> packages. <b>Options:</b>
<ul>
<li>Add two online <i>i586 </i>repositories. But <i>update-status</i> run times might return to 6 minutes.</li>
<li>Download the <i>i586</i> DVD ISO image and install that locally.</li>
</ul>
</li>
<li>Re-ran  YaST Online Update Configuration, ZEN installed <i>mirrors.usc.edu</i> successfully such that both <i>zen-updater</i> and <i>opensuseupdater</i> report the same updates.</li>
<li>Switched the panel updater applet <i>(/etc/sysconfig/sw_management)</i> from the <i>zlm </i>(zen-updater) update manager to <i>opensuse</i><i>.</i>   The SUSE updater now appears (but only in KDE because the updater applet is  part of KDE).</li>
<li>My updating process now looks like it did in <i>SUSE 10.0</i>: the GUI that resembles the package installer with the detailed progress log above and the double progress bars at the bottom.   I left the &#8220;sync with ZEN&#8221; option turned on.</li>
</ul>
<p>Other information related to package updating:</p>
<ul>
<li>Offical openSUSE pages: <a href="http://en.opensuse.org/Using_zen-updater">Using the ZEN Updater</a>, <a href="http://en.opensuse.org/Package_Repositories">Package Repositories</a>.</li>
<li>From a <a href="http://www.linuxquestions.org/questions/showthread.php?t=485028" title="Questions on YOU and ZEN">LinuxQuestions.org post</a>:<br />
<blockquote><p> &#8211; only common lib is libzypp. For example I deleted all zmd/mono/rug (with exception of single libzypp) and I am using Yast/smart only.<br />
- rpm db is common to all package managers otherwise eat time you would use different PM different installed/not installed packages would be shown.</p></blockquote>
</li>
<li>The <a href="http://susewiki.org/index.php?title=Smart">SMART Package Updater</a> was recommended by a forum post, but a detailed, multi-step installation process  and co-existence with ZEN are concerns.</li>
<li>The <a href="http://susewiki.org/index.php?title=Category:Package_Management">Package Management Category</a> at SUSEWiki.org is the source for several of the above links.  Other links on Finding RPMs and Package Database Management might be helpful.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sheepdogit.com/2007/03/07/zen-yast-opensuse-102/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Configuring Apache using YaST, openSUSE 10.2</title>
		<link>http://www.sheepdogit.com/2007/02/24/configuring-apache-using-yast-opensuse-102/</link>
		<comments>http://www.sheepdogit.com/2007/02/24/configuring-apache-using-yast-opensuse-102/#comments</comments>
		<pubDate>Sat, 24 Feb 2007 11:36:38 +0000</pubDate>
		<dc:creator>Bozzie</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[YaST]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://bozziesfw.wordpress.com/2007/02/24/configure-apache-with-yast/</guid>
		<description><![CDATA[Configure Apache2 on openSUSE 10.2 with YaST instead of editing conf files. YaST is very efficient for initial Apache installation and for adding, enabling, and disabling server modules.]]></description>
			<content:encoded><![CDATA[<p>I configure Apache2 on openSUSE with YaST rather than editing the configuration files directly. If this is your first time installing Apache on openSUSE, I highly recommend it. YaST is a big time-saver for two aspects of Apache configuration: the initial installation and adding, enabling, and disabling server modules. A default server configuration supporting Perl and PHP can be up and running in less than an hour using YaST.</p>
<p>YaST isn&#8217;t good at all facets of Apache configuration so some editing of <em>conf</em> files may eventually be needed. If manual editing is required, why not use it exclusively?  Because once you go manual, you can&#8217;t switch back to YaST when major changes are needed.  I like the fact that if I install a new web application that needs several additional Apache modules, I can use YaST to enable them in a couple of minutes, often without having to learn anything about them.</p>
<p>I also like the fact that using YaST to configure Apache will give me a configuration closely matched to thousands of other openSUSE Apache servers.  This makes it likely that I will get a functional, robust <em>httpd</em> set up at the start.  Then I can incrementally add modules and customizations as needed, testing as I go.</p>
<p>Following is a YaST-based recipe to install a straightforward <em>httpd</em> configuration with Perl, PHP, and <em>mod_userdir</em> enabled. Subversion, WebDAV, and virtual host support are also added (using some conf file editing). Finally, the added bookkeeping steps that allow YaST and hand-edited <em>conf</em> files to co-exist are presented.</p>
<h4>Part I: Content-Independent Configuration</h4>
<p>Part 1 installs a functional (but empty) <em>httpd </em>server with all modules and parameters properly configured.  Connections to the site-specific content are discussed in Part 2.</p>
<ol>
<li><em>OpenSUSE</em> scatters Apache <em>conf</em> files among <em>/etc/apache2</em> and  its <em>conf.d</em>, <em>sysconfig.d</em> and <em>vhosts.d</em> sub-directories. Keep a copy of the original conf files to determine what YaST has done and add source code control repositories to manage manually edited files:
<ul>
<li><code>cd /etc/apache2</code></li>
<li><code>mkdir ORIG; cp -p *.conf ORIG</code></li>
<li><code>mkdir RCS</code></li>
<li>Repeat for the three &#8220;.d&#8221; subdirectories.</li>
</ul>
</li>
<li>Start YaST/ Network Services/ HTTP Server:
<ul>
<li>Turn on <em>php, perl, python </em>and/or <em>ruby </em>in a special configuration page that only appears once (one can still turn these on/off later, but it&#8217;s easier to do here).</li>
<li>Accept defaults in the Server Wizard (5 pages), except choose <em>Start When Booting</em> on page 5.</li>
<li>Click Advanced Configuration.</li>
<li> In the Server Modules tab, enable <em>dav, dav_fs, info, rewrite </em>and <em>status</em>.</li>
<li>Needed to <em>Add Module</em> for <em>dav_svn</em> but the YaST screen would not accept input, so I hit <em>Finish </em>(will add in Step 3).<em><br />
</em></li>
<li>The server starts.  <em>http://localhost</em> just says &#8220;It works!&#8221; instead of the normal Apache welcome page.  Didn&#8217;t like this so I copied <em>index.html</em> from an old SUSE 10.0 installation.</li>
<li>Read the comments in all of the <em>/etc/apache2/conf.d/*.conf</em> files, some of which are controlled by <em>IfDefine</em> blocks.  For my installation, I learned I needed to add the <em>SVN_DOC </em>and<em> SVN_VIEWCVS </em>flags (next step)<em>.</em></li>
</ul>
</li>
<li>Start YaST/ System/ sysconfig Editor:
<ul>
<li>Select Network, WWW, Apache2.</li>
<li>Highlight <em>APACHE_MODULES.</em> Add<em> dav_svn</em> into the Modules line.<strong> Note: </strong>Don&#8217;t hand-edit <em>dav_svn</em> into <em>/etc/apache2/sysconfig.d/loadmodule.conf</em>, as YaST will just remove it next time it runs.</li>
<li>Highlight <em>APACHE_SERVER_FLAGS.</em> Type <em>&#8220;SVN_DOC </em><em>SVN_VIEWCVS&#8221; </em>into the text field.</li>
<li>Finish.</li>
</ul>
</li>
<li>A diff of <em>ORIG/default-server.conf</em> with the one YaST created shows that YaST removed the <em>mod_userdir</em> section, changed indents, and added ServerName and ServerAdmin.  Thus I chose the original distribution <em>.conf </em>as my starting point:
<ul>
<li><code>mv default-server.conf{,.YAST}</code></li>
<li><code>cp ORIG/default-server.conf <strong>.</strong><br />
</code></li>
<li><code>ci -l default-server.conf</code></li>
<li>Edit with a text editor and copy the ServerName and ServerAdmin directives from the YaST version into <em>default-server.conf.</em></li>
<li><code>ci -l default-server.conf</code></li>
</ul>
</li>
<li>Restart YaST/ Network Services/ HTTP Server:
<ul>
<li>Select the Server Modules tab and verify that the <em>dav_svn </em>module appears.</li>
<li>Exit or Abort.</li>
<li><strong>Note:</strong> from this point forward, if YaST/HTTP Server is re-run and Finish is clicked, <em>default-server.con</em>f and <em>/etc/sysconfig/apache2 </em>will be overwritten.  Capture a snapshot before running or retrieve original from RCS archive afterward.</li>
</ul>
</li>
<li>Check the syntax of all configuration files and reload <em>httpd</em>:<br />
<code>rcapache2 restart-hup</code></li>
<li>Browse <em>http://localhost/server-info</em> and <em>server-status. </em>Verify all desired modules are present and running.</li>
<li>Browse <em>//localhost/manual</em> and<em> localhost/svn-manual</em> to see documentation.</li>
</ol>
<p>The content-independent phase of installation is complete.</p>
<h4>Part II: Serving Local Site Content</h4>
<p>To prepare for Part 2, load all content files that are outside of the server document root (e.g. Subversion repositories, WebDAV directories, and user <em>public_html </em>areas). I keep my Subversion repositories under <em>/home/wwwrun/svn</em>, giving them the same owner and group as the <em>httpd </em>process.</p>
<ol>
<li>Verify that browsing a <em>http://localhost/~&lt;username&gt;</em> directory works.</li>
<li>Subversion repository configuration goes in the <em>/etc/apache2/conf.d/subversion.conf</em> file.   I piggybacked the WebDAV configuration into this file rather than creating a separate file: <a href="http://www.sheepdogit.com/wp-content/uploads/subversion_conf.txt">subversion.conf</a>. Also, I add Basic Auth to ViewVC in <em>subversion.viewvc.conf</em> (see earlier blog entry for an explanation).</li>
<li>Use <em>htpasswd2</em> to create the basic authentication password file.</li>
<li>Create a <em>/var/lock/apache2</em> directory (user <em>wwwrun,</em> group<em> www</em>).</li>
<li><code>rcapache2 configtest</code></li>
<li><code>rcapache2 restart-hup</code></li>
<li>Browse <em>http://localhost/svn/&lt;reponame&gt;.</em> Username and password are requested and the repository appears.  Run <em>RapidSVN </em>from a Windows machine to verify connectivity.</li>
<li>Edit <em>/srv/viewvc/viewvc.conf</em> to add root or root_parents, default root, and <em>mailto.</em></li>
<li>Browse <em>http://localhost/viewvc</em> , username and password are requested, then the ViewVC page appears.  Click on the &#8220;ViewVC Help&#8221; hyperlink and the documentation appears.</li>
<li>Using <strong><em>Konqueror,</em></strong> browse <em>webdav://localhost/fs</em> and a folder view of the WebDAV folder appears.</li>
<li>See this <a title="WebDAV Web Folders for WindowsXP, FrontPage" href="http://bozziesfw.wordpress.com/2007/01/10/webdav-windows-xp-frontpage/">blog entry</a> for details of connecting to WebDAV via WindowsXP.</li>
</ol>
<p>All of my local Subversion, WebDAV, and web page content is now available via Apache.</p>
<h4>Part III: Virtual Hosts</h4>
<p>Finally I&#8217;ll add virtual hosts for my various development, prototype, and staging areas.  The YaST HTTP Server GUI offers a screen to do this, but I chose to start with the as-delivered file just as with <em>default-server.conf.</em></p>
<ol>
<li>Create a<em> </em>new<em> conf</em> file in <em>/etc/apache2/vhosts.d </em>(e.g.<em> LLvhost.conf</em> in my case).  I copied the <em>vhost.template</em> as the starting point.</li>
<li>I defined four virtual servers:
<ul>
<li><em>localhost</em> &#8211; contains only a ServerName statement to serve as the default server.</li>
<li><em>llxxx</em> &#8211; three name-based servers that have document roots in various code development sub-directories.  Each of these gets a separate set of error and access log files.</li>
</ul>
</li>
<li>Uncomment the <em>NameVirtualHost *:80</em> line in <em>/etc/apache2/listen.conf</em>.</li>
<li>Add the three name-based server names to <em>/etc/hosts</em> as synonyms for localhost.</li>
<li><code>rcapache2 configtest</code></li>
<li><code>rcapache2 restart-hup</code></li>
<li>Browse <em>http://llxxx</em> and the virtual host content appears.  Verify that log information appears in the correct file pair in <em>/var/log/apache2.</em></li>
</ol>
<h4>Part IV: Configuration Control and Maintenance</h4>
<p>The Apache server installation is now complete.  But adding source code control is necessary to safely re-run YaST/ Network Services/ HTTP Server Configuration in the future.  Whenever <em>HTTP Server Configuration</em> is  ended with Save or Finish, any of the <em>conf</em> files may be overwritten, obliterating prior manual edits. Source code control allows us to manage and resolve this conflict.</p>
<p>Using the unaltered <em>conf</em> files in the ORIG directories as references, perform a <em>diff</em> of all of the conf files to learn which have been  customized. Any altered <em>conf</em> files that were hand-edited should be placed under configuration control (e.g. CVS, Subversion, RCS).  Consider controlling the YaST-altered files as well.</p>
<p>I maintain five files in RCS: <em>default-server.conf,  mod_userdir.conf, subversion.conf,  subversion.viewvc.conf, LLvhost.conf.</em> After saving any new <em>HTTP Server Configuration </em>session, I use <em>rcsdiff</em> to learn what changes have been made to these files. Review the changes and either restore the last version from RCS or check in a new revision as appropriate.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sheepdogit.com/2007/02/24/configuring-apache-using-yast-opensuse-102/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
