{"id":286,"date":"2004-06-02T11:38:35","date_gmt":"2004-06-02T16:38:35","guid":{"rendered":"http:\/\/linode.siwko.org\/wordpress\/?p=286"},"modified":"2004-06-02T11:38:35","modified_gmt":"2004-06-02T16:38:35","slug":"squirrelmail-is-nobody-2","status":"publish","type":"post","link":"https:\/\/www.siwko.org\/wordpress\/?p=286","title":{"rendered":"SquirrelMail is Nobody"},"content":{"rendered":"<p><a href=\"https:\/\/www.siwko.org\/wordpress\/?p=244\">https:\/\/www.siwko.org\/wordpress\/?p=244<\/a><\/p>\n<p>OK, this was an easy one.\u00a0 I had two copies of apache running, one with the Red Hat \/etc\/httpd\/conf install and one I compiled into \/usr\/local\/apache2.\u00a0 SSL was running on the \/usr\/local copy.\u00a0 I don&#8217;t recall why I did this, but it is likely that I couldn&#8217;t\u00a0do SSL with the Red Hat version.<\/p>\n<p>It was time\u00a0to add a virtual host and I decided to fix up everything and drag it into one server.\u00a0 I decided to recompile and move up to the latest httpd (2.0.49).\u00a0 Here&#8217;s the configure script I used:<\/p>\n<p><span style=\"font-family: Courier;\">export CPPFLAGS=-I\/usr\/kerberos\/include<br \/>\ntime bash configure &#8211;prefix=\/usr\/local\/apache-2.0.49 &#8211;enable-ssl &#8211;enable-proxy &#8211;enable-so &#8211;disable-ipv6<br \/>\ntime make<br \/>\ntime make install<\/span><\/p>\n<p>When I was trying to get the thing running I had to read some docs because my guesses were a bit off.\u00a0 To confgure virtual hosts, the argument to NameVirtualHost has to match the attribute to the &lt;VirtualHost&gt; tag which processes it, not the server name.<\/p>\n<p>If the SSLPassPhraseDialog fails, the server can fail with very little warning.\u00a0 I had to strace the process before I saw that there were errors logged in the ssl log.\u00a0 It turns out that I had a script returning the passphrase with the wrong security.<\/p>\n<p>So, finally I got everything up and running, I tried both virtual hosts, the proxy through to Tomcat and the SSL virtual host.\u00a0 From there I went on to SquirrelMail where I found I couldn&#8217;t get to my prefs.\u00a0 I checked the data directory and it&#8217;s owned by nobody.\u00a0 So, here&#8217;s the answer:\u00a0 \/usr\/local\/apache2 was running as user nobody while \/etc\/httpd was running as apache.\u00a0 I had set the new server to run as apache while the old one was running as nobody.\u00a0 The two servers before accessing the data directory as different users caused the original problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/www.siwko.org\/wordpress\/?p=244 OK, this was an easy one.\u00a0 I had two copies of apache running, one with the Red Hat \/etc\/httpd\/conf install and one I compiled into \/usr\/local\/apache2.\u00a0 SSL was running on the \/usr\/local copy.\u00a0 I don&#8217;t recall why I did this, but it is likely that I couldn&#8217;t\u00a0do SSL with the Red Hat version. It [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-286","post","type-post","status-publish","format-standard","hentry","category-roller"],"_links":{"self":[{"href":"https:\/\/www.siwko.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/286"}],"collection":[{"href":"https:\/\/www.siwko.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.siwko.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.siwko.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.siwko.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=286"}],"version-history":[{"count":0,"href":"https:\/\/www.siwko.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/286\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.siwko.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.siwko.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.siwko.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}