<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=31&amp;t=1455" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2014-09-27T19:13:14+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=31&amp;t=1455</id>
<entry>
<author><name><![CDATA[dain]]></name></author>
<updated>2014-09-27T19:13:14+01:00</updated>
<published>2014-09-27T19:13:14+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5599#p5599</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5599#p5599"/>
<title type="html"><![CDATA[Re: Apache2 start FAILED! Invalid &lt;If Version  ....]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5599#p5599"><![CDATA[
Thanks for pointing out that mod_version needs to be enabled, I hadn't realized that this functionality was provided by a module which might not be enabled by default. I've created an issue to track this here: <!-- m --><a class="postlink" href="https://github.com/Yubico/yubiauth-dpkg/issues/1">https://github.com/Yubico/yubiauth-dpkg/issues/1</a><!-- m --><br /><br />EDIT: There's a new version out now which doesn't require mod_version to be enabled.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=504">dain</a> — Sat Sep 27, 2014 7:13 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jerichod505]]></name></author>
<updated>2014-09-27T00:48:20+01:00</updated>
<published>2014-09-27T00:48:20+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5597#p5597</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5597#p5597"/>
<title type="html"><![CDATA[FIXED - Re: Apache2 start FAILED! Invalid &lt;If Version  ....]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5597#p5597"><![CDATA[
i encountered this same problem today, when i upgraded to python-yubiauth 0.3.9-1.<br /><br />CAVEAT - this is on the YubixVM that i built (see the YubixVM howto).  so it is Linux / ubuntu 12.04.  I cannot answer about windows, but perhaps a similar issue is occurring?<br /><br />here is what i figured out and did to fix the problem.<br />the file /etc/yubico/auth/apache.conf  has new directives in it.<br />stanzas were added such as:<br />&lt;IfVersion &gt;= 2.3&gt;<br />Require local<br />&lt;/IfVersion&gt;<br />(and dain is right - there is no space between If and Version)<br />the problem was that my version of apache did not have the mod_version module enabled.  it was not enabled at compile time, and not linked in at run time.<br />therefore apache was unable to process the IfVersion directive.<br /><br />on Linux fixing this consisted of running <strong>a2enmod</strong> and at the prompt entering <strong>version</strong> to enable the version module.  restart apache and all was working again.  <br />here is the exact dialog (input in bold)<br /><br /><span style="color: #0000BF">root@yubixvmc:/etc/apache2# <strong>/usr/sbin/apache2 -l</strong><br />Compiled in modules:<br />  core.c<br />  mod_log_config.c<br />  mod_logio.c<br />  prefork.c<br />  http_core.c<br />  mod_so.c<br />root@yubixvmc:/etc/apache2# <strong>a2enmod</strong><br />Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi reqtimeout rewrite setenvif speling ssl status substitute suexec unique_id userdir usertrack version vhost_alias wsgi<br />Which module(s) do you want to enable (wildcards ok)?<br /><strong>version</strong><br />Enabling module version.<br />To activate the new configuration, you need to run:<br />  service apache2 restart<br />root@yubixvmc:/etc/apache2# <strong>service apache2 start</strong><br /> * Starting web server apache2  <br />                                                                                                                                                          [ OK ]<br /></span><br />Hope this helps.  <br /><br />rcota:  please post here how to fix the windows version if indeed this is the same issue?<br /><br />thanks<br /><br />--j505<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2923">jerichod505</a> — Sat Sep 27, 2014 12:48 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dain]]></name></author>
<updated>2014-09-02T19:11:55+01:00</updated>
<published>2014-09-02T19:11:55+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5523#p5523</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5523#p5523"/>
<title type="html"><![CDATA[Re: Apache2 start FAILED! Invalid &lt;If Version  ....]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5523#p5523"><![CDATA[
There shouldn't be a space between If and Version. In other words, it should be &quot;IfVersion&quot; and not &quot;If Version&quot; which your error message seems to indicate. Can you double check the file to see if there is a space there and if so remove it? I've checked our files, and the configuration file we provide does not have a space there, so I'm not sure where it would have come from.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=504">dain</a> — Tue Sep 02, 2014 7:11 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[rcota]]></name></author>
<updated>2014-09-02T01:07:46+01:00</updated>
<published>2014-09-02T01:07:46+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5511#p5511</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5511#p5511"/>
<title type="html"><![CDATA[Apache2 start FAILED! Invalid &lt;If Version  ....]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1455&amp;p=5511#p5511"><![CDATA[
<span style="text-decoration: underline">I received this error:</span><br /><strong><em>rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=68, length=181<br />Reply-Message = &quot;Can't connect to localhost:80 (Connection refused)\n\nLWP::Protocol::http::Socket: connect: Connection refused at /usr/share/perl5/LWP/Protocol/http.pm line 51.\n&quot;</em></strong><br /><br /><span style="text-decoration: underline">which led me to look into my apache2 and its failing at start up, my log states:</span><br /><br /><strong>Syntax error on line 14 of /etc/apache2/conf.d/yubiauth.conf: Invalid command '&lt;If Version ' perhaps misspelled or definded by a model not included in the server config</strong><br /><br /><strong><em>Action 'Configtest' fail </em></strong><br /><span style="text-decoration: underline"><br />When i try to start the service: </span><br />*Starting web server apache2<br /><strong>/usr/sbin/apache2ctl: 87: ulimit: error setting limit (operation not permitted)</strong><br /><br />if anyone has run into this please feel free to share your experience, i made no changes to yubix's files, everything has been managed through the web interface. its almost as if the localhost on my yubix vm isnt working correctly...<br /><br />im running my Yubix VM in windows 2008 server on Virtualbox.<br /><br />thanks, i hope this makes it to the right person.<br />-rcota<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2985">rcota</a> — Tue Sep 02, 2014 1:07 am</p><hr />
]]></content>
</entry>
</feed>