<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>As I mentioned in my original post, the admin is not supposed to
      create this file. The CGI/server must create this file. I can only
      create the directory in which it exists, and the selfservice CGI
      script must do the rest. <br>
      <br>
      A similar example:
<a class="moz-txt-link-freetext" href="https://www.experts-exchange.com/questions/21649680/chmod-to-srwxrwxrwx.html">https://www.experts-exchange.com/questions/21649680/chmod-to-srwxrwxrwx.html</a><br>
      <br>
      Thus, this is a bug, and the Freeside developers must fix the
      problem.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 2017-10-30 11:05 AM, Erreu Gedmon
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:70ebe68c-0822-36f9-50a7-935808010fc7@keyway.net">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>Hi Ernie,</p>
      <p>I also experienced this issue during my install but I don't
        remember the exact fix. I dug through my installation notes and
        found I'd used these steps:</p>
      <pre>touch /usr/local/freeside/selfservice_socket
chown freeside /usr/local/freeside/selfservice_socket
chmod 600 /usr/local/freeside/selfservice_socket

</pre>
      Here's the directory on our production system:<br>
      <pre># ls -halF /usr/local/freeside/</pre>
      <pre>total 13452</pre>
      <pre>drwxr-xr-x   2 freeside  wheel   512B Sep 17 21:45 ./
drwxr-xr-x  17 root      wheel   512B Jul 26  2016 ../
-rw-r--r--   1 freeside  wheel    13M Oct 30 10:40 selfservice.log
-rw-r--r--   1 freeside  wheel     0B Oct 30 10:40 selfservice.writelock
srwxr-xr-x   1 freeside  wheel     0B Sep 17 21:45 selfservice_socket=
-rw-r--r--   1 freeside  wheel     4B Sep 17 21:45 selfservice_socket.pid</pre>
      <br>
      My memory of this issue is vague, but I do recall that you have to
      make sure that your ssh is operational. In my case I
      double-checked that the back end server had passwordless ssh
      access for username freeside to the selfservice server by IP
      address, hostname, and FQDN:<br>
      <pre># su - freeside
# ssh freeside-dev.lightspeed.ca
# ssh freeside-dev
# ssh 206.12.82.118</pre>
      <br>
      <pre class="moz-signature" cols="0">Erreu Gedmon

--
"You see persons and things not as they are but as you are."
        -- Anthony De Mello</pre>
      <div class="moz-cite-prefix">On 10/30/2017 10:24 AM, Ernie Dunbar
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:c70a106e-8f5d-4675-24b2-68b97e65f0a0@lightspeed.ca">
        <meta http-equiv="Content-Type" content="text/html;
          charset=utf-8">
        <p>Yes, that was the thing that was jumping out at me too. But
          since the Apache server runs as the user "freeside", that's
          who owns that directory and has write access to that file and
          directory. Even chmod 777 on /usr/local/freeside does not
          allow the CGI script to create the socket, and creating the
          empty file /usr/local/freeside/selfservice_socket and granting
          777 permissions on that produces the same "Connection refused"
          error.</p>
        <p>So... I haven't gotten anywhere on this yet.<br>
        </p>
        <br>
        <div class="moz-cite-prefix">On 2017-10-28 09:28 AM, Roderick
          Anderson wrote:<br>
        </div>
        <blockquote type="cite"
          cite="mid:fffbd1d1-113e-df42-2a80-082f8c6dae44@gmail.com">Warning: 
          It has been 5+ years since I have done this stuff for a
          living. <br>
          <br>
          The thing that jumps out at me is permissions.  Make sure the
          directory where the socket is being created is writable by the
          freeside user not just the user apache is running as. <br>
          <br>
          <br>
          Rod <br>
          <div class="moz-txt-sig"><span class="moz-txt-tag">-- <br>
            </span> <br>
            On 10/27/2017 03:27 PM, Ernie Dunbar wrote: <br>
            <blockquote type="cite" style="color: #000000;">Hi everyone.
              <br>
              <br>
              I'm trying to set up the Freeside Selfservice web pages in
              Freeside 4.2. After trying to complete the installation
              process described in <a class="moz-txt-link-freetext"
href="http://www.freeside.biz/mediawiki/index.php/Freeside:3:Documentation:Self-Service_Installation"
                moz-do-not-send="true">http://www.freeside.biz/mediawiki/index.php/Freeside:3:Documentation:Self-Service_Installation</a>,
              I get the following error in my Apache error logs: <br>
              <br>
              [Fri Oct 27 11:32:42.273282 2017] [cgi:error] [pid 843]
              [client 172.103.224.36:54540] AH01215: connect to
              /usr/local/freeside/selfservice_socket: Connection refused
              at /usr/local/share/perl/5.20.2/FS/SelfService.pm line
              199., referer: <a class="moz-txt-link-freetext"
                href="https://freeside-dev.lightspeed.ca/FS-SelfService/cgi/"
                moz-do-not-send="true">https://freeside-dev.lightspeed.ca/FS-SelfService/cgi/</a>
              <br>
              <br>
              When I attempt to connect to this socket using the Linux
              `socat` command, I get much the same error: <br>
              <br>
              socat -
              UNIX-CONNECT:/usr/local/freeside/selfservice_socket <br>
              2017/10/27 15:23:59 socat[1784] E connect(5, AF=1
              "/usr/local/freeside/selfservice_socket", 40): Connection
              refused <br>
              <br>
              I've read that you can't go and create a Unix socket by
              touching a file. Evidently, the CGI script is supposed to
              do the creating. But nuking that file and leaving the
              directory it sits in writable for the Apache server just
              breaks it thusly: <br>
              <br>
              [Fri Oct 27 15:26:54.642004 2017] [cgi:error] [pid 845]
              [client 172.103.224.36:60186] AH01215: connect to
              /usr/local/freeside/selfservice_socket: No such file or
              directory at
              /usr/local/share/perl/5.20.2/FS/SelfService.pm line 199.,
              referer: <a class="moz-txt-link-freetext"
                href="https://freeside-dev.lightspeed.ca/FS-SelfService/cgi/"
                moz-do-not-send="true">https://freeside-dev.lightspeed.ca/FS-SelfService/cgi/</a>
              <br>
              <br>
              So... what's wrong here? <br>
              <br>
              <br>
              <br>
              _______________________________________________ <br>
              freeside-users mailing list <br>
              <a class="moz-txt-link-abbreviated"
                href="mailto:freeside-users@freeside.biz"
                moz-do-not-send="true">freeside-users@freeside.biz</a> <br>
              <a class="moz-txt-link-freetext"
                href="http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users"
                moz-do-not-send="true">http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users</a>
              <br>
              <br>
            </blockquote>
            _______________________________________________ <br>
            freeside-users mailing list <br>
            <a class="moz-txt-link-abbreviated"
              href="mailto:freeside-users@freeside.biz"
              moz-do-not-send="true">freeside-users@freeside.biz</a> <br>
            <a class="moz-txt-link-freetext"
              href="http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users"
              moz-do-not-send="true">http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users</a></div>
        </blockquote>
        <br>
        <pre class="moz-signature" cols="72">-- 
--- 
Lightspeed Communications and Dolphin Global Tel 
VoIP, Web Hosting, Server Colocation, ADSL and Cable Internet 
Systems and Operations department. 
<a class="moz-txt-link-freetext" href="http://www.lightspeed.ca" moz-do-not-send="true">http://www.lightspeed.ca</a> <a class="moz-txt-link-freetext" href="http://www.dolphintel.com" moz-do-not-send="true">http://www.dolphintel.com</a> 
Tech Support: 604-482-1192 ext. 2</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
freeside-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:freeside-users@freeside.biz" moz-do-not-send="true">freeside-users@freeside.biz</a>
<a class="moz-txt-link-freetext" href="http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users" moz-do-not-send="true">http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
freeside-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:freeside-users@freeside.biz">freeside-users@freeside.biz</a>
<a class="moz-txt-link-freetext" href="http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users">http://freeside.biz/cgi-bin/mailman/listinfo/freeside-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
--- 
Lightspeed Communications and Dolphin Global Tel 
VoIP, Web Hosting, Server Colocation, ADSL and Cable Internet 
Systems and Operations department. 
<a class="moz-txt-link-freetext" href="http://www.lightspeed.ca">http://www.lightspeed.ca</a> <a class="moz-txt-link-freetext" href="http://www.dolphintel.com">http://www.dolphintel.com</a> 
Tech Support: 604-482-1192 ext. 2</pre>
  </body>
</html>