<?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>Binary Expressions &#187; OpenBSD</title>
	<atom:link href="http://www.adamsdesk.com/be/category/openbsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adamsdesk.com/be</link>
	<description>The life experiences of Adam Douglas. Technical help too!</description>
	<lastBuildDate>Tue, 27 Jul 2010 19:45:20 +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>XenServer 5 with OpenBSD</title>
		<link>http://www.adamsdesk.com/be/archives/2008/12/08/xenserver-5-with-openbsd/</link>
		<comments>http://www.adamsdesk.com/be/archives/2008/12/08/xenserver-5-with-openbsd/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 16:47:40 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[hvm]]></category>
		<category><![CDATA[hypervisor]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[nic]]></category>
		<category><![CDATA[paravirtualization]]></category>
		<category><![CDATA[pvm]]></category>
		<category><![CDATA[realteak]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[xenserver]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2008/12/08/xenserver-5-with-openbsd/</guid>
		<description><![CDATA[Here is my experience trying to run OpenBSD with XenServer 5 Enterprise.

XenServer console doesn&#8217;t function properly as it keeps overlaying text displayed previously or anything you have typed into the console. Makes it very difficult to read and see what you are doing. As well it appears numerpad with numlock on does not work either. [...]]]></description>
			<content:encoded><![CDATA[<p>Here is my experience trying to run <a href="http://www.openbsd.org/">OpenBSD</a> with <a href="http://www.xenserver5.com/">XenServer 5</a> Enterprise.</p>
<ul>
<li>XenServer console doesn&#8217;t function properly as it keeps overlaying text displayed previously or anything you have typed into the console. Makes it very difficult to read and see what you are doing. As well it appears numerpad with numlock on does not work either. The best work around is to <a href="http://en.wikipedia.org/wiki/Secure_Shell" title="Wikipedia on Secure Shell">SSH</a> into OpenBSD.</li>
<li>Receiving the following error messages at boot up, &#8220;clock: unknown CMOS layout&#8221; and &#8220;rl0: watchdog timeout&#8221;. Yes the <acronym title="Network Interface Card">NIC</acronym> is being detected as a Realteak 8139. If I check /var/run/dmesg.boot out of the two error messages I only see the &#8220;clock: unknown CMOS layout&#8221;. So I would assume the watchdog timeout message occurs after initial boot sequence.</li>
</ul>
<p>The biggest question is OpenBSD on XenServer 5 Enterprise consider production ready even if the errors cannot be resolved?</p>
<p>I&#8217;ve tried locating some definite solutions but I have yet to find anything and it appears that the network card issue maybe due to XenServer 5 itself. Any suggestions on how to solve these error messages and fix the XenServer OpenBSD console?</p>
<p>Source: <a href="http://www.nabble.com/OpenBSD-and-XenSource-td20771647.html">Nabble &#8211; OpenBSD User Misc &#8211; OpenBSD and XenSource</a><br />
Source: <a href="http://forums.citrix.com/thread.jspa?threadID=151525">Citrix Forums &#8211; Change network device model for guest</a> </p>
<p>Source: <a href="http://www.bsd-india.org/pipermail/bsd-india/2004-September/000365.html" title="What the error message means">What does &#8220;watchdog timeout&#8221; signify?</a><br />
Source:  <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=watchdog&#038;apropos=0&#038;sektion=0&#038;manpath=OpenBSD+Current&#038;arch=i386&#038;format=html" title="OpenBSD Manual Pages">watchdog(4) manpage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2008/12/08/xenserver-5-with-openbsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl &#8211; Out of Memory!</title>
		<link>http://www.adamsdesk.com/be/archives/2007/12/19/perl-out-of-memory/</link>
		<comments>http://www.adamsdesk.com/be/archives/2007/12/19/perl-out-of-memory/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 22:23:29 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[out of memory]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[ulimit]]></category>
		<category><![CDATA[user limit]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2007/12/19/perl-out-of-memory/</guid>
		<description><![CDATA[Background Knowledge

This case was done on a machine running OpenBSD i386 v3.7 operating system with Perl v5.8.6 built for i386-openbsd using BASH as the command prompt interrupter.
I&#8217;ll be honest I have very little knowledge of Perl so if you have anything to comment on or suggest please do so.
Problem

I tried to install a couple Perl [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Background Knowledge</strong></p>
<hr />
<p>This case was done on a machine running OpenBSD i386 v3.7 operating system with Perl v5.8.6 built for i386-openbsd using BASH as the command prompt interrupter.</p>
<p>I&#8217;ll be honest I have very little knowledge of Perl so if you have anything to comment on or suggest please do so.</p>
<p><strong>Problem</strong></p>
<hr />
<p>I tried to install a couple Perl modules and received an error message of &#8220;Out of Memory!&#8221;.</p>
<p><strong>Solution</strong></p>
<hr />
<p>Just to clarify I have very little knowledge when it comes to Perl, so this solution may or may not work for you.</p>
<p>On Unix machines each user has a ulimit or &#8220;user limit&#8221; which is basically from what I understand sets the limit for each resource to ensure the system is not over loaded or abused. In this case at least for me, my issue was not having a big enough data seg size. Type at the command prompt without quotes &#8220;ulimit -a&#8221; to see a list of the set limits. I increased my data seg size from 76800 to 200000. I did this by typing at the command prompt without quotes, &#8220;ulimit -d 200000&#8243;.</p>
<p>You may need to play with this value for your case or other ulimits. Don&#8217;t worry about the changes as none of them are permanent in this case, at least to my knowledge. When you use the ulimit it only changes it for the user you are using and for that given session. If you require more permanent changes look into using ulimit in the login script or better yet change your system configuration settings.</p>
<p><strong>Comments/Thanks</strong></p>
<hr />
<p>Many thanks to Scott Corley who posted an excellent blog entry entitled &#8220;perl Out of memory! (with solution)&#8221; on his blog called &#8220;Red Mercury Labs&#8221;. Without this I was getting know where fast.</p>
<p>If anyone can provide some further knowledge on ulimit it would be much appreciated.</p>
<p>Source: <a href="http://www.red-mercury.com/blog/eclectic-tech/perl-out-of-memory-with-solution/" title="Read blog entry">Red Mercury Labs &#8211; perl Out of memory! (with solution)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2007/12/19/perl-out-of-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding The Total Lines Within Files</title>
		<link>http://www.adamsdesk.com/be/archives/2007/11/09/finding-the-total-lines-within-files/</link>
		<comments>http://www.adamsdesk.com/be/archives/2007/11/09/finding-the-total-lines-within-files/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 23:06:10 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Unix/Linux]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2007/11/09/finding-the-total-lines-within-files/</guid>
		<description><![CDATA[I have learned by using the &#8220;find&#8221;, &#8220;wc&#8221;  and &#8220;awk&#8221; commands one can find the total number of lines within files of a given directory and sub-directories. Thanks to NicM on IRC server Freenode channel #OpenBSD for his solution below.
Solution
find /path/blah -type f -name &#8216;*.php&#8217;&#124;while read i; do wc -l ]]></description>
			<content:encoded><![CDATA[<p>I have learned by using the &#8220;find&#8221;, &#8220;wc&#8221;  and &#8220;awk&#8221; commands one can find the total number of lines within files of a given directory and sub-directories. Thanks to NicM on IRC server Freenode channel #OpenBSD for his solution below.</p>
<p><strong>Solution</strong><br />
find /path/blah -type f -name &#8216;*.php&#8217;|while read i; do wc -l <$i; done|awk &#8216;BEGIN { x=0 }; { x+=$1 }; END { print x }&#8217;</p>
<p>Note: Shell must be bourne-compatible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2007/11/09/finding-the-total-lines-within-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To &#8211; Setup Sendmail as a Smart_Host</title>
		<link>http://www.adamsdesk.com/be/archives/2007/10/05/sendmail-setup-as-smart_host/</link>
		<comments>http://www.adamsdesk.com/be/archives/2007/10/05/sendmail-setup-as-smart_host/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 18:56:21 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[smart]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2007/10/05/sendmail-setup-as-smart_host/</guid>
		<description><![CDATA[I will go through a basic setup of Sendmail as a smart host. The goal is to relay all mail outgoing from an internal OpenBSD server to a gateway that will then send out the email on the server&#8217;s behalf. No inbound email traffic is permitted to the internal OpenBSD server only the outside world [...]]]></description>
			<content:encoded><![CDATA[<p>I will go through a basic setup of <a href="http://www.sendmail.org/">Sendmail</a> as a <a href="http://en.wikipedia.org/wiki/Smart_host" title="Learn what a email smart host is">smart host</a>. The goal is to relay all mail outgoing from an internal <a href="http://www.openbsd.org/">OpenBSD</a> server to a gateway that will then send out the email on the server&#8217;s behalf. No inbound email traffic is permitted to the internal <a href="http://www.openbsd.org/">OpenBSD</a> server only the outside world sees the gateway as the mail server. I&#8217;m by no means a <a href="http://www.sendmail.org/">Sendmail</a> expert, the steps I explain here is what I&#8217;ve learned on my own and with the assistance of dhartmei and NicM in <acronym title="Internet Relay Chat">IRC</acronym> <a href="http://www.efnet.org/">EFNet</a> #OpenBSD channel and cannonball in <acronym title="Internet Relay Chat">IRC</acronym> <a href="http://www.freenode.net/">Freenode</a> #sendmail channel.</p>
<p><strong>Setup</strong></p>
<ul style="text-align: left;">
<li>Make a copy of openbsd-localhost.mc, &#8220;cp usr/share/sendmail/cf/openbsd-localhost.mc  /usr/share/sendmail/cf/openbsd-localhost-smarthost.mc&#8221;.</li>
<li>Edit openbsd-localhost-smarthost.mc and add this statement without double quotes &#8220;include(`/usr/share/sendmail/m4/cf.m4&#8242;)dnl&#8221;.</li>
<li>Edit openbsd-localhost-smarthost.mc and add this statement without double quotes &#8220;define(`SMART_HOST&#8217;,`input_host_here&#8217;)dnl&#8221;. <strong>Note:</strong> if an IP address is used enclose the IP address with square brackets.</li>
<li>Compile configuration file without double quotes, &#8220;sudo m4 /usr/share/sendmail/cf/openbsd-localhost-smarthost.mc > /etc/mail/localhost.cf&#8221;. If you receieve &#8220;permission denied&#8221;, try this instead &#8220;sudo ksh -c &#8216;m4 /usr/share/sendmail/cf/openbsd-localhost-smarthost.mc > /etc/mail/localhost.cf&#8217;&#8221;.</li>
<li>Shutdown Sendmail (kill). Without double quotes do &#8220;sudo kill &#8216;head -n1 /var/run/sendmail.pid&#8217;&#8221;.</li>
<li>Start Sendmail as started previously, &#8220;sendmail -L sm-mta -C/etc/mail/localhost.cf -bd -q30m&#8221;. You can see how sendmail was started by executing without double quotes &#8220;grep sendmail /etc/rc.conf*&#8221;. In my case it returned /etc/rc.conf:sendmail_flags=&#8221;-L sm-mta -C/etc/mail/localhost.cf -bd -q30m&#8221;.</li>
</ul>
<p><strong>openbsd-localhost-smarthost.mc example</strong></p>
<pre>
divert(-1)
#
# Copyright (c) 1998 Sendmail, Inc.  All rights reserved.
# Copyright (c) 1983 Eric P. Allman.  All rights reserved.
# Copyright (c) 1988, 1993
#       The Regents of the University of California.  All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#

#
#  This configuration only runs sendmail on the localhost interface.
#  This allows mail on the local host to work without accepting
#  connections from the net at large.
#

divert(0)dnl
include(`/usr/share/sendmail/m4/cf.m4')dnl
VERSIONID(`@(#)openbsd-localhost-smarthost.mc $Revision: 1.4 $')
OSTYPE(openbsd)dnl
FEATURE(nouucp, `reject')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`no_default_msa')dnl
define(`SMART_HOST',`[10.10.8.1]')dnl
DAEMON_OPTIONS(`Family=inet, address=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Family=inet6, address=::1, Name=MTA6, M=O')dnl
DAEMON_OPTIONS(`Family=inet, address=127.0.0.1, Port=587, Name=MSA, M=E')dnl
DAEMON_OPTIONS(`Family=inet6, address=::1, Port=587, Name=MSA6, M=O, M=E')dnl
CLIENT_OPTIONS(`Family=inet6, Address=::')dnl
CLIENT_OPTIONS(`Family=inet, Address=0.0.0.0')dnl
dnl
dnl Some broken nameservers will return SERVFAIL (a temporary failure)
dnl on T_AAAA (IPv6) lookups.
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl
MAILER(local)dnl
MAILER(smtp)dnl
</pre>
<p>Also refer to <a href="/be/archives/2010/04/12/539/">How To &#8211; Setup Sendmail for Masquerading and as a Smart_Host</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2007/10/05/sendmail-setup-as-smart_host/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PEAR::HTML_BBCodeParser Upgrade 1.1 to 1.2.2</title>
		<link>http://www.adamsdesk.com/be/archives/2007/07/10/pearhtml_bbcodeparser-upgrade-11-to-122/</link>
		<comments>http://www.adamsdesk.com/be/archives/2007/07/10/pearhtml_bbcodeparser-upgrade-11-to-122/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 18:54:23 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[PHP/MySQL/MSSQL]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2007/07/10/pearhtml_bbcodeparser-upgrade-11-to-122/</guid>
		<description><![CDATA[Problem #1 &#8211; &#8220;[notice] child pid 13449 exit signal Segmentation fault (11)&#8221;
On a OpenBSD v3.7 i386 system running Apache v1.3.29 (not chrooted) with PHP v5.1.4 I upgraded HTML_BBCodeParser from version 1.1 to version 1.2.2 by running at command line &#8220;pear upgrade-all&#8221;. After the upgrades were complete the web site would not load a web page [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem #1 &#8211; &#8220;[notice] child pid 13449 exit signal Segmentation fault (11)&#8221;</strong></p>
<p>On a <a href="http://www.openbsd.org/" title="Free, Functional and Secure operating system">OpenBSD</a> v3.7 i386 system running <a href="http://httpd.apache.org/" title="The Apache HTTP Server Project">Apache</a> v1.3.29 (not chrooted) with <a href="http://www.php.net/" title="PHP: Hypertext Processor">PHP</a> v5.1.4 I upgraded <a href="http://pear.php.net/package/HTML_BBCodeParser" title="UBB style tag parser">HTML_BBCodeParser</a> from version 1.1 to version 1.2.2 by running at command line &#8220;pear upgrade-all&#8221;. After the upgrades were complete the web site would not load a web page anymore. I looked at my HTTPD server logs and noticed I was receiving the following error message in error_log file, &#8220;[notice] child pid 13449 exit signal Segmentation fault (11)&#8221; whenever there was a HTTP request on port 80 or 443 to the web site. I couldn&#8217;t understand what the problem could be but then decided to uninstall HTML_BBCodeParser v1.2.2 and re-install HTML_BBCodeParser v1.1 to see if the web site would still function. Indeed the web site did load and function fine. So I decided to uninstall and install  each version up to v1.2.2 to see where the breaking point was. As soon as the latest version of HTML_BBCodeParser v1.2.2 is installed the web site stops functioning. I was able to determine that there was something that has changed in v1.2.2 or something I did wrong in the Filters I created and existing filters I altered.</p>
<p><strong>Solution #1</strong></p>
<p>I uninstalled HTML_BBCodeParser then manually removed the directory /usr/local/lib/php/HTML/HTML_BBCodeParser. Then I installed HTML_BBCodeParser v1.2.2 and copied the BBCodeParser.ini example from /usr/local/lib/php/doc/HTML_BBCodeParser/BBCodeParser/example/ to /usr/local/lib/php/HTML/BBCodeParse/. After that the web site functioned as normal again.</p>
<p><strong>Problem #2 &#8211; &#8220;Warning: strpos() [function.strpos]: Empty delimiter.&#8221;</strong></p>
<p>However I discovered that when using PHP 5 one has to alter the BBCodeParser.ini file otherwise you will receive the following warning message when trying to load a web page using HTML_BBCodeParser, &#8220;Warning: strpos() [function.strpos]: Empty delimiter. in /usr/local/lib/php/HTML/BBCodeParser.php on line 354&#8243;.</p>
<p><strong>Solution #2</strong></p>
<p>Edit your BBCodeParser.ini and alter the line for the opening tag character and closing tag character to be enclosed by double quotes around the square brackets, [ and ]. Apparently this has been an issue for awhile now, <a href="http://pear.php.net/bugs/bug.php?id=2580">http://pear.php.net/bugs/bug.php?id=2580</a>.</p>
<p><strong>Example After Alteration &#8211; BBCodeParser.ini</strong></p>
<p><code>[HTML_BBCodeParser]</p>
<p>; possible values: single|double<br />
; use single or double quotes for attributes<br />
quotestyle  = single</p>
<p>; possible values: all|nothing|strings<br />
; quote all attribute values, none, or only the strings<br />
quotewhat   = all</p>
<p>; the opening tag character<br />
open        = "["</p>
<p>; the closing tag character<br />
close       = "]"</p>
<p>; possible values: true|false<br />
; use xml style closing tags for single html tags (<img /> or <img />)<br />
xmlclose    = true</p>
<p>; possible values: a comma seperated list of filters<br />
; comma seperated list of filters to use<br />
filters     = Basic,Extended,Links,Images,Lists,Email</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2007/07/10/pearhtml_bbcodeparser-upgrade-11-to-122/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sendmail Errors</title>
		<link>http://www.adamsdesk.com/be/archives/2007/06/13/sendmail-errors/</link>
		<comments>http://www.adamsdesk.com/be/archives/2007/06/13/sendmail-errors/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 20:11:39 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[OpenBSD]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2007/06/13/sendmail-errors/</guid>
		<description><![CDATA[How to resolve these sendmail error messages, "No local mailer defined", "QueueDirectory (Q) option must be set" and "sendmail.cf line 1: invalid argument to V line: ERSIONID(@#)openbsd".]]></description>
			<content:encoded><![CDATA[<p>I recently rebuilt my sendmail config file and started noticing the following errors in my /etc/maillog.</p>
<ul>
<li>&#8220;No local mailer defined&#8221;</li>
<li>&#8220;QueueDirectory (Q) option must be set&#8221;</li>
<li>&#8220;sendmail.cf line 1: invalid argument to V line: ERSIONID(@#)openbsd&#8221;</li>
</ul>
<p>I searched for some time in Google but was unsuccessful locating how to resolve these problems. So I went to IRC Freenode in the channel #sendmail and ask for help. Cannonball suggested I add &#8220;include(`/usr/share/sendmail/m4/cf.m4&#8242;)dnl&#8221; to my config file without quotes. I added it in on the 3rd line (excluding comments). I rebuilt my config with &#8220;m4 openbsd-localhost.mc > /etc/mail/sendmail.cf&#8221;. Then killed the service sendmail (kill -HUP PID) and restarted sendmial. All the error messages disappeared. Thanks cannonball for helping out, much appreciated.</p>
<p>Here&#8217;s my sendmail mc file which is /usr/share/sendmail/cf/openbsd-localhost.mc with the added include line and define statement for smart_host.</p>
<pre>
divert(-1)
#
# Copyright (c) 1998 Sendmail, Inc.  All rights reserved.
# Copyright (c) 1983 Eric P. Allman.  All rights reserved.
# Copyright (c) 1988, 1993
#       The Regents of the University of California.  All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#  This configuration only runs sendmail on the localhost interface.
#  This allows mail on the local host to work without accepting
#  connections from the net at large.
#

divert(0)dnl
include(`/usr/share/sendmail/m4/cf.m4')dnl
VERSIONID(`@(#)openbsd-localhost-smarthost.mc $Revision: 1.4 $')
OSTYPE(openbsd)dnl
FEATURE(nouucp, `reject')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`no_default_msa')dnl
define(`SMART_HOST',`10.10.8.1')dnl
MAILER(local)dnl
MAILER(smtp)dnl
DAEMON_OPTIONS(`Family=inet, address=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Family=inet6, address=::1, Name=MTA6, M=O')dnl
DAEMON_OPTIONS(`Family=inet, address=127.0.0.1, Port=587, Name=MSA, M=E')dnl
DAEMON_OPTIONS(`Family=inet6, address=::1, Port=587, Name=MSA6, M=O, M=E')dnl
CLIENT_OPTIONS(`Family=inet6, Address=::')dnl
CLIENT_OPTIONS(`Family=inet, Address=0.0.0.0')dnl
dnl
dnl Some broken nameservers will return SERVFAIL (a temporary failure)
dnl on T_AAAA (IPv6) lookups.
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2007/06/13/sendmail-errors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To &#8211; Change Server Name/Hostname/Gateway/IP Addresses on OpenBSD</title>
		<link>http://www.adamsdesk.com/be/archives/2006/10/06/how-to-change-server-name-and-network-ip-addresses-on-openbsd/</link>
		<comments>http://www.adamsdesk.com/be/archives/2006/10/06/how-to-change-server-name-and-network-ip-addresses-on-openbsd/#comments</comments>
		<pubDate>Fri, 06 Oct 2006 22:34:34 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Help Desk]]></category>
		<category><![CDATA[How Tos]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[inet]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[ipconfig]]></category>
		<category><![CDATA[mygate]]></category>
		<category><![CDATA[myname]]></category>
		<category><![CDATA[netmask]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[nic]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2006/10/06/how-to-change-server-name-and-network-ip-addresses-on-openbsd/</guid>
		<description><![CDATA[How to change an existing OpenBSD server name and network IP addresses.]]></description>
			<content:encoded><![CDATA[<p>Changing the name/<acronym title="internet protocol">IP</acronym> address of the server is quite simple. Using your favorite text editor editing the following files and change all reference to server name and server <acronym title="internet protocol">IP</acronym> address.</p>
<ul>
<li>/etc/hosts</li>
<li>/etc/hosts.allow</li>
<li>/etc/hosts.deny</li>
<li>/etc/mygate</li>
<li>/etc/myname</li>
<li>/etc/hostname.*</li>
<li>/etc/resolv.conf</li>
<li>/etc/nttpd.conf</li>
<li>/var/www/conf/httpd.conf</li>
</ul>
<p>At the command prompt run the following command to reconfigure your <acronym title="network interface card">NIC</acronym> with the new <acronym title="internet protocol">IP</acronym> address and applicable netmask. </p>
<p># ifconfig le1 inet IP_ADDRESS_HERE netmask NETMASK_HERE</p>
<p>The &#8220;le1&#8243; is the device name of the <acronym title="network interface card">NIC</acronym>. Not sure what the <acronym title="network interface card">NIC</acronym> device name is? At the console prompt type without quotes &#8220;ifconfig -a&#8221; and locate the network card device name.</p>
<p>If you make modifications to <acronym title="network interface card">NIC</acronym> called rl0 by editing the /etc/hostname.rl0 or modify /etc/mygate/ (default gateway) file you will then need to restart / reset / update TCP/IP configuration including routing table and set up the default routes by issuing the following command.</p>
<p># sh /etc/netstart rl0</p>
<p>To stop network service and transmission via a <acronym title="network interface card">NIC</acronym></p>
<p># ifconfig rl0 down</p>
<p>To start network service and transmission via a <acronym title="network interface card">NIC</acronym></p>
<p># ifconfig pnc0 up</p>
<p>Source: <a href="http://www.openbsd.org/faq/faq6.html">OpenBSD FAQ &#8211; Networking</a><br />
Source: <a href="http://www.cyberciti.biz/faq/openbsd-restart-network/">OpenBSD Restart Networking Service</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2006/10/06/how-to-change-server-name-and-network-ip-addresses-on-openbsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenBSD File System Corruption &#8211; Partitions Not Mounting</title>
		<link>http://www.adamsdesk.com/be/archives/2005/11/08/openbsd-file-system-corruption-partitions-not-mounting/</link>
		<comments>http://www.adamsdesk.com/be/archives/2005/11/08/openbsd-file-system-corruption-partitions-not-mounting/#comments</comments>
		<pubDate>Tue, 08 Nov 2005 18:14:09 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[OpenBSD]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2005/10/27/openbsd-file-system-corruption-partitions-not-mounting/</guid>
		<description><![CDATA[How I resolve file system correction to two partitions on OpenBSD.]]></description>
			<content:encoded><![CDATA[<p>I came into work one morning and found out that my database server running <a href="http://www.openbsd.org/">OpenBSD</a> with <a href="http://www.mysql.com/">MySQL</a> was no longer running and would not boot up. With a little bit of research I determined that the server went down two days before (over the weekend) and that the file system appeared to be corrupted on two partitions. A co-worker found out that the server&#8217;s primary channel on the motherboard was damage. So switched the hard drive over to the secondary channel. This I thought was odd but appeared to be true. I looked at the server and tried to get it to boot up myself. No luck as I was receiving two similar error messages as shown below. I apologize for it not being exact I was in a hurry and panicking to get the server back up and running.</p>
<p><strong>Error Messages</strong> &#8211; (approximate message)</p>
<p>/dev/rwd0e (/var/): incorrect block count I=36484 (6 should be 0) (corr.) 15025024 DUP I=3515543.<br />
/dev/rwd0g (/usr/): incorrect block count I=36484 (6 should be 0) (corr.) 15025024 DUP I=3515543.<br />
Run <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=fsck_ffs&#038;apropos=0&#038;sektion=0&#038;manpath=OpenBSD+Current&#038;arch=i386&#038;format=html" title="OpenBSD Manual Pages: fsck_ffs">fsck_ffs</a> manually.</p>
<p><strong>Solution</strong></p>
<p>After moving the hard drive over to the secondary channel I was prompted at boot &#8220;Enter pathname of shell or RETURN for Sh:&#8221;. Now due to the fact that my <acronym title="Command Language Interpreter">CLI</acronym> was in the damanged partition (/usr/local/bin/<a href="http://www.gnu.org/software/bash/bash.html" title="BASH CLI">bash</a>) I entered at the prompt &#8220;<kbd>/bin/<a href="http://en.wikipedia.org/wiki/C_shell" title="C Shell CLI @ Wikipedia">csh</a></kbd>&#8221; without quotes and pressed <kbd>enter</kbd>. Now that I was into the system I ran &#8220;<kbd>fsck_ffs /dev/rwd0e</kbd>&#8221; and &#8220;<kbd>fsck_ffs /dev/rwd0g</kbd>&#8221; without quotes multiple times. It took me roughly 4 hours to resolve the problem. There was a lot of damage but nothing major or anything that was important. The database data was not affected except for a one log file.</p>
<p>As for how to use <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=fsck_ffs&#038;apropos=0&#038;sektion=0&#038;manpath=OpenBSD+Current&#038;arch=i386&#038;format=html" title="OpenBSD Manual Pages: fsck_ffs">fsck_ffs</a> after you run the command I just answered each questions it prompted me for. It&#8217;s quite interactive. I do ad might that I wasn&#8217;t sure what to say on some of them and wish I had a better understand of it. If anyone knows of good material that explains the <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=fsck_ffs&#038;apropos=0&#038;sektion=0&#038;manpath=OpenBSD+Current&#038;arch=i386&#038;format=html" title="OpenBSD Manual Pages: fsck_ffs">fsck_ffs</a> better and how the whole <a href="http://www.bsd.org/" title="Berkeley Software Distribution (various UNIX flavours)">BSD</a> file system works, please let me know.</p>
<p><strong>Thanks to users in the IRC channels for OpenBSD</strong></p>
<p>Saying all this I have to say thanks to all the people on <acronym title="Internet Relay Chat">IRC</acronym> <a href="http://www.efnet.org/" title="Eris Free Network - The Original IRC Network">EFNet</a> and Freenode in the channel #OpenBSD. Thanks to a few comments I was able to understand how to use <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=fsck_ffs&#038;apropos=0&#038;sektion=0&#038;manpath=OpenBSD+Current&#038;arch=i386&#038;format=html" title="OpenBSD Manual Pages: fsck_ffs">fsck_ffs</a>. Prior to this event I never have worked with <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=fsck_ffs&#038;apropos=0&#038;sektion=0&#038;manpath=OpenBSD+Current&#038;arch=i386&#038;format=html" title="OpenBSD Manual Pages: fsck_ffs">fsck_ffs</a> before. Again thanks everyone!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2005/11/08/openbsd-file-system-corruption-partitions-not-mounting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Daily insecurity output: The root path includes .</title>
		<link>http://www.adamsdesk.com/be/archives/2005/10/27/daily-insecurity-output-the-root-path-includes/</link>
		<comments>http://www.adamsdesk.com/be/archives/2005/10/27/daily-insecurity-output-the-root-path-includes/#comments</comments>
		<pubDate>Thu, 27 Oct 2005 20:11:18 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[OpenBSD]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/archives/2005/10/25/daily-insecurity-output-the-root-path-includes/</guid>
		<description><![CDATA[How to resolve daily insecurity output: "The root path includes ."]]></description>
			<content:encoded><![CDATA[<p>This insecurity warning occurs due to the root user&#8217;s root path is included in the environment variable PATH. The root&#8217;s path should never contain &#8220;.&#8221; as this is a security risk. For example, if the root&#8217;s path included &#8220;.&#8221; and a user happen to create a file that was named ls but contained a command to remove the $HOME the root&#8217;s home directory would be deleted.</p>
<p>The solution to the matter is to edit the root&#8217;s /root/.profile and remove &#8220;.&#8221; from the PATH environment variable.</p>
<p><strong>Example</strong><br />
Current environment variable PATH:<br />
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:.</p>
<p>Remove &#8220;:.&#8221;, which would now look like this:<br />
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2005/10/27/daily-insecurity-output-the-root-path-includes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sendmail &#8211; DSN:  Service unavailable</title>
		<link>http://www.adamsdesk.com/be/archives/2005/09/09/sendmail-dsn-service-unavailable/</link>
		<comments>http://www.adamsdesk.com/be/archives/2005/09/09/sendmail-dsn-service-unavailable/#comments</comments>
		<pubDate>Fri, 09 Sep 2005 21:16:09 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[OpenBSD]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=202</guid>
		<description><![CDATA[How to resolve Sendmail error DSN: Service unavailable (dsn:5.0.0).]]></description>
			<content:encoded><![CDATA[<p>I have a <a href="http://www.openbsd.org/" title="OpenBSD - Free, Functional &#038; Secure Operating System">OpenBSD</a> 3.7 i386 server setup to use <a href="http://www.sendmail.org/">Sendmail</a> for outgoing only. <a href="http://www.sendmail.org/">Sendmail</a> is in default configuration with only modifications to the mail aliases (/etc/mail/aliases).</p>
<p>I recently started noticing that I was not receiving any emails from the server. Right away I went and looked at my /var/log/maillog to see what was going on and also checked /var/spool/mqueue and /var/spool/mqueue. I noticed two things in the maillog it referred to &#8220;<acronym title="Delivery Status Notifications">DSN</acronym>: Service unavailable&#8221; and &#8220;<acronym title="Delivery Status Notifications">dsn</acronym>=5.0.0, stat=Service unavailable&#8221; and noticed a huge amount of emails sitting in my /var/spool/clientmqueue directory.</p>
<p>As usual I went to <a href="http://www.google.com/" title="Google the search engine">Google</a> to see if I could find an answer but was having difficulty. So I went to <acronym title="Internet Relay Chat">IRC</acronym> <a href="http://www.efnet.org/" title="EFnet - The Original IRC Network">EFNet</a> #OpenBSD channel. With some help by NicM and amonk I was able to resolve the problem. Thanks guys. The problem lies in how you have your /etc/hosts, /etc/hosts.allow and /etc/hosts.deny. Here&#8217;s what I did.</p>
<p>I removed any reference to localhost.domain.com in my hosts file and then also replaced ALL:LOCAL with ALL: 127.0.0.1 in my hosts.allow. The combination of the two caused the emails to not pass through. As soon as these changes were done email started passing through. If for some reason based on your configuration of those three files (hosts/hosts.allow/hosts.deny) this does not resolve you can add sendmail: localhost in your hosts.allow file. If this doesn&#8217;t resolve the problem use the below recommend resources I found useful.</p>
<p>Resource: <a href="http://www.faqs.org/rfcs/rfc1893.html">Enhanced Mail System Status Codes (rfc 1893)</a> &#8211; Look up status code meaning (i.e. 5.0.0).<br />
Resource: <a href="http://www.faqs.org/rfcs/rfc2034.html">MTP Service Extension for Returning Enhanced Error Codes (rfc 2034)</a><br />
Resource: <a href="http://www.webservertalk.com/message102795.html">Web Server Talk > Email Servers > Sendmail support > DSN: Service Unavailable</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2005/09/09/sendmail-dsn-service-unavailable/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Midgard CMS Development &#8211; Status Update</title>
		<link>http://www.adamsdesk.com/be/archives/2005/07/28/midgard-cms-development-commercial-support-terminated/</link>
		<comments>http://www.adamsdesk.com/be/archives/2005/07/28/midgard-cms-development-commercial-support-terminated/#comments</comments>
		<pubDate>Thu, 28 Jul 2005 20:01:25 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Midgard CMS]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=176</guid>
		<description><![CDATA[My Employer has terminated commercial support of developement of Midgard CMS.]]></description>
			<content:encoded><![CDATA[<p>It is with great disappointment to announce that I will no longer be able to provide commercial development support from my employer of Midgard CMS.  I&#8217;ve been told to terminate all development with Midgard CMS.  I will however not disappear in my involvement with Midgard CMS. I plan to accelerate my plans to develop Midgard CMS on a test server at home running OpenBSD v3.7 i386 and look at the possibility of development on my web hosting provider. What does this all mean? Well unfortunately this means I will not be able to provide development time like I did in the past of 5 days a week at roughly 8 hours a day. Around September I have the possibility to continue minimal development with Midgard. At that point or later on my employer will re-evaluate Midgard CMS and see again at using it as our CMS. As my employer knows and agrees that CMS is the future and is required for the web site. Unfortunately they need results now and a new site up to support there customers and representative network. How I will continue without CMS is uncertain at this time. It may not be the best direction but it will get the job done, providing results as they want.</p>
<p>Saying all that, I will be around. Please feel free to email or contact me via my web site. I thank everyone for your support and help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2005/07/28/midgard-cms-development-commercial-support-terminated/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Midgard 1.6.3 &#8211; Data Database Import / Segfault</title>
		<link>http://www.adamsdesk.com/be/archives/2005/07/20/midgard-163-data-database-import-segfault/</link>
		<comments>http://www.adamsdesk.com/be/archives/2005/07/20/midgard-163-data-database-import-segfault/#comments</comments>
		<pubDate>Wed, 20 Jul 2005 21:17:15 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Midgard CMS]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=167</guid>
		<description><![CDATA[Midgard 1.6.3 data import into Midgard's MySQL database, segfault errors.]]></description>
			<content:encoded><![CDATA[<p>I have Midgard 1.6.3 freshly installed and functioning 100%, at least to my knowledge. I&#8217;m able to load all the web pages and log into Aegir. I have no error messages being logged into the MidgardLog or the HTTPD error_log.  However after I import my Midgard database I get blank or empty web pages rendering in the browser. I did not see any error messages  being logged into my HTTPD error_log. I turned on HTTPD debug log level (ex. LogLevel debug)  and then turned on my Midgard logs (ex. MidgardLog debug /var/www/logs/midgard.log). Now in my HTTPD error_log I have &#8220;[notice] child pid 265 exit signal Segmentation fault (11)&#8221; and &#8220;Midgard: Refreshing NTLM auth request for sitegroup 0. NTLM sitegroup: -1&#8243;.  See the logs below for further details. The logs will show me attempting to go to /midgard/.</p>
<p>I get blank/empty pages when I try to go to /midgard/, /mole/ (but page is not empty contains &#8220;< ?xml version="1.0"?><data></data>&#8221; and  /example/. Anyone have any ideas how to resolve these two errors?</p>
<p>Here&#8217;s how I imported my Midgard database of a previous install of Midgard 1.6.3.</p>
<ul style="list-style-type: decimal;">
<li>I logged into MySQL, executed the SQL command &#8220;drop database midgard;&#8221;.</li>
<li>Executed another SQL command &#8220;create database midgard;&#8221;.</li>
<li>Logged out of MySQL.</li>
<li>Then I imported the data by executing the following at the shell prompt &#8220;mysql -u username -p midgard < midgard_db.sql".</li>
</li>
</ul>
<p>After this I just opened up my browser and tried to load some web pages from that server.</p>
<p><strong>Apache error_log</strong><br />
Processing config directory: /usr/local/midgard-1.6.3/etc/midgard/apache/vhosts/*<br />
 Processing config file: /usr/local/midgard-1.6.3/etc/midgard/apache/vhosts/scorpius.venmarces.com_80<br />
[notice] Initializing etag from /var/www/logs/etag-state<br />
 [notice] Apache/1.3.29 (Unix) Midgard/1.6.3/Repository/MultiLang PHP/4.3.11 mod_ssl/2.8.16 OpenSSL/0.9.7d configured &#8212; resuming normal operations<br />
[info] Server built: unknown<br />
[notice] Accept mutex: sysvsem (Default: sysvsem)<br />
[debug] midgard-apache1.c(1355): [client ip-here] midgard_translate_handler(UTF-8, http://scorpius.venmarces.com:80/midgard)<br />
[debug] select_db.h(51): [client ip-here] Midgard: select_database opened database midgard<br />
[debug] midgard-apache1.c(192): [client ip-here] Midgard: lang set to 0<br />
[debug] select_db.h(33): [client ip-here] Midgard: select_database kept current database midgard<br />
[debug] midgard-apache1.c(977): [client ip-here] Midgard: Refreshing NTLM auth request for sitegroup 0. NTLM sitegroup: -1<br />
[notice] child pid 12983 exit signal Segmentation fault (11)</p>
<p><strong>Midgard Log</strong><br />
midgard-lib:12983:debug:query=SELECT id,style,root,lang,info&#038;1,Length(prefix),sitegroup FROM host WHERE name=&#8217;subdomain.domainname.com&#8217; AND port in (0,80) AND ( (0 <> 0 AND prefix = &#8221;)  OR (0 = 0 AN<br />
D prefix=Left(&#8216;/midgard&#8217;,Length(prefix)) AND      IF(8>=Length(prefix),MID(&#8216;/midgard&#8217;,1+Length(prefix),1) IN (&#8221;,&#8217;/'),0)=1     ) ) AND online <> 0 ORDER BY prefix DESC, port DESC<br />
midgard-lib:12983:debug:query=SELECT info&#038;2 FROM page WHERE page.id=50<br />
midgard-lib:12983:debug:query=SELECT style FROM page WHERE page.id=50</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2005/07/20/midgard-163-data-database-import-segfault/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install PHP from Source</title>
		<link>http://www.adamsdesk.com/be/archives/2005/07/20/how-to-install-php-from-source/</link>
		<comments>http://www.adamsdesk.com/be/archives/2005/07/20/how-to-install-php-from-source/#comments</comments>
		<pubDate>Wed, 20 Jul 2005 20:01:50 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Midgard CMS]]></category>
		<category><![CDATA[PHP/MySQL/MSSQL]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=172</guid>
		<description><![CDATA[How to install PHP with focus support on Midgard CMS.]]></description>
			<content:encoded><![CDATA[<p>This installation example for Unix/Linux installs dependency support for Midgard CMS. Make sure Expat, zlib (comes with OpenBSD) and iconv are installed before proceeding. I  have added additional configuration for MySQL (so the correct MySQL libraries are used), Microsoft SQL Server, apxs, XML, exif, dba and mbstring. Refer to the PHP configurator for details (# ./configure &#8211;help).</p>
<p># ./configure &#8211;with-mysql=/usr/local &#8211;with-mssql=/usr/local &#8211;with-apxs &#8211;with-xml &#8211;with-zlib-dir=/usr/lib &#8211;with-expat &#8211;with-config-file-path=/var/www/conf &#8211;with-iconv=/usr/local/bin/iconv -â€“with-exif â€“-with-dba â€“-with-mbstring<br />
# make<br />
# make install<br />
# make clean<br />
# cp php.ini-recommended /var/www/conf/php.ini</p>
<p>Review/edit /var/www/conf/php.ini (path may vary) file to match your requirements.  To meet the requirements of Midgard CMS you will require to do the following.</p>
<p>Add extension=midgard.so into your php.ini file.<br />
Add the extensions path to extension_dir. Type â€œphp-config â€“extension-dirâ€. Place the returned path into your php.ini file.<br />
Ensure the file_uploads=on.<br />
Ensure the short_open_tag=on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2005/07/20/how-to-install-php-from-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Midgard/PHP CLI Segmentation Fault</title>
		<link>http://www.adamsdesk.com/be/archives/2005/07/20/midgardphp-cli-segmentation-fault/</link>
		<comments>http://www.adamsdesk.com/be/archives/2005/07/20/midgardphp-cli-segmentation-fault/#comments</comments>
		<pubDate>Wed, 20 Jul 2005 19:43:06 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Midgard CMS]]></category>
		<category><![CDATA[PHP/MySQL/MSSQL]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=171</guid>
		<description><![CDATA[How to resolve the Midgard/PHP CLI Segmentation Fault.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.midgard-project.org/">Midgard CMS</a> will crash <a href="http://www.php.net/" title="PHP - Hypertext Preprocessor">PHP</a> <acronym title="Command Line Interface">CLI</acronym> if its loaded in the global php.ini. Add PHP settings to your <a href="http://httpd.apache.org/" title="The Apache HTTP Server Project">Apache HTTP Server</a> configuration file /var/www/conf/httpd.conf (path may vary). Put the below PHP settings into your httpd.conf file. This may also go into your Midgard httpd.conf if you want. Make sure to restart your <a href="http://httpd.apache.org/" title="The Apache HTTP Server Project">Apache HTTP Server</a> so configuration changes take affect.</p>
<p>php_value extension midgard.so<br />
php_value register_globals 1</p>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2005/07/20/midgardphp-cli-segmentation-fault/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Midgard CMS &#8211; PEAR Install &#8211; Segmentation fault</title>
		<link>http://www.adamsdesk.com/be/archives/2005/07/20/midgard-pear-install-segmentation-fault/</link>
		<comments>http://www.adamsdesk.com/be/archives/2005/07/20/midgard-pear-install-segmentation-fault/#comments</comments>
		<pubDate>Wed, 20 Jul 2005 19:34:58 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Midgard CMS]]></category>
		<category><![CDATA[PHP/MySQL/MSSQL]]></category>

		<guid isPermaLink="false">http://www.adamsdesk.com/be/?p=170</guid>
		<description><![CDATA[How to resolve the PEAR Install segmentation fault with Midgard CMS.]]></description>
			<content:encoded><![CDATA[<p>If you are experiencing â€œsegmentation faultâ€ when trying to do a <a href="http://pear.php.net/" title="PEAR - PHP Extension and Application Repository">PEAR</a> package install on a system using <a href="http://midgard-project.org/">Midgard CMS</a>, do the following.</p>
<ul style="list-style-type: decimal;">
<li>Comment out â€œextension=midgard.soâ€ line in php.ini.</li>
<li>Restart Apache HTTP Server.</li>
<li>Re-run Pear package install (i.e. pear install Mail).</li>
<li>Uncomment out â€œextension=midgard.soâ€ line in php.ini.</li>
<li>Restart Apache HTTP Server.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.adamsdesk.com/be/archives/2005/07/20/midgard-pear-install-segmentation-fault/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
