<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Apache on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/apache/</link>
    <description>Recent content in Apache on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Tue, 25 Dec 2012 03:57:20 +0000</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/apache/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>PHP Fatal error: Call to undefined function utf8_decode()</title>
      <link>https://blog.khmersite.net/p/php-fatal-error-call-to-undefined-function-utf8_decode/</link>
      <pubDate>Tue, 25 Dec 2012 03:57:20 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/php-fatal-error-call-to-undefined-function-utf8_decode/</guid>
      <description>&lt;p&gt;This occurs on a FreeBSD server. According to this post[1], I need to install &lt;code&gt;php5-xmlphp5-xml&lt;/code&gt;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# whereis php5-xmlphp5-xml
php5-xml: /usr/ports/textproc/php5-xml
# portmaster textproc/php5-xml
...
# service apache22 restart
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;[1] &lt;a href=&#34;http://hi.baidu.com/ericyangbj/item/8289a32771e4171d09750856&#34;&gt;http://hi.baidu.com/ericyangbj/item/8289a32771e4171d09750856&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>FreeBSD: Fatal error: Call to undefined function session_name()</title>
      <link>https://blog.khmersite.net/p/freebsd-fatal-error-call-to-undefined-function-session_name/</link>
      <pubDate>Tue, 25 Dec 2012 00:08:49 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/freebsd-fatal-error-call-to-undefined-function-session_name/</guid>
      <description>&lt;p&gt;I just setup Apache and PHP on FreeBSD 9, configured a vhost, then when I tried to access it, I got the following error:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Fatal error: Call to undefined function session_name() in /srv/www/sugaku.domain.com/inc/init.php on line 144&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;so apparently, the “session” support is missiong from php5 installation. To fix it, I need to install &lt;code&gt;php5-session&lt;/code&gt; port.&lt;/p&gt;
&lt;p&gt;Let’s do it.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# whereis php5-session&amp;lt;br /&amp;gt; php5-session: /usr/ports/www/php5-session&amp;lt;br /&amp;gt; portmaster www/php5-session&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If the installation is successful, then we can restart apache.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Unknown Authn provider: ldap</title>
      <link>https://blog.khmersite.net/p/unknown-authn-provider-ldap/</link>
      <pubDate>Wed, 12 Sep 2012 00:11:38 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/unknown-authn-provider-ldap/</guid>
      <description>&lt;p&gt;Unknown Authn provider: ldap&lt;/p&gt;
&lt;p&gt;&lt;code&gt;a2enmod authnz_ldap&amp;lt;br /&amp;gt; apache2ctl restart&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName</title>
      <link>https://blog.khmersite.net/p/apache2-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127001-for-servername/</link>
      <pubDate>Tue, 10 Feb 2009 04:57:21 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/apache2-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127001-for-servername/</guid>
      <description>&lt;p&gt;Everytime I start apache2 (&lt;code&gt;# apache2ctl start&lt;/code&gt;) this message is dispalyed:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Well, the site is still running despite the above notification.&lt;/p&gt;
&lt;p&gt;To fix it, we need to edit the &lt;code&gt;/etc/apache2/httpd.conf&lt;/code&gt; or &lt;code&gt;/etc/apache2.conf&lt;/code&gt; and add the following line:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ServerName nameofserver&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now, restart the apache server (&lt;code&gt;# apache2ctrl restart&lt;/code&gt;) and should no loger see the previous message.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Enable mod_userdir for Apache2 on Debian</title>
      <link>https://blog.khmersite.net/p/enable-mod_userdir-for-apache2-on-debian/</link>
      <pubDate>Tue, 22 Apr 2008 13:36:48 +0000</pubDate>
      <guid>https://blog.khmersite.net/p/enable-mod_userdir-for-apache2-on-debian/</guid>
      <description>&lt;p&gt;By default Apache2 doesn’t enable mod_userdir, a module to enable all users in your Linux system to host web pages. On Debian, it’s very to enable this mod, and probably with other modules as well. There is no need to edit the config file manually.&lt;/p&gt;
&lt;p&gt;There are two tools offered by Debian to assist you with enabling and disabling the modules in Apache2: a2enmod and a2dismod. As the name inferred, a2enmod enables the modules, while the a2dismod does the opposite.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
