<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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">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>