Hello Mihai,
On 2015-07-22 13:02, Mihai Badea wrote:
I would like to get some more information about this subject...
firstly, a brief history. Piler is designed with a single host (and a
single organisation) in mind, more like a pluggable appliance running
everything you need, ie. piler, sphinx, mysql, and a webserver.
Then I got a request to support a detached gui, where you can separate
the gui from the actual archive. To support it I created a daemonized
version of the pilerget binary (pilergetd).
However it seemed it was a rarely used feature, and I still advertise
piler as an appliance like box. So to sum it up, I discontinued this
feature, though it's not removed from the source tree yet.
I got piler up and running, but I can't seem to run the GUI on another
server.
First, on piler-1.1.1 there is no init.d/rc.pilergetd.in [1] and
therefore I got no compiled startup scrpt for pilergetd. No problem, I
got it from piler-1.1.0.tar.gz
Next, here are the lines concerning pilergetd from
/usr/local/etc/piler.conf on the server running piler:
tls_enable=0
pilergetd_listen_addr=0.0.0.0
pilergetd_listen_port=10091
pilergetd_password=XXXXX
pilergetd_pidfile=/var/run/piler/pilergetd.pid
I started pilergetd (should I stop piler when running pilergetd?) and
no, they both should be running
copied the entire /var/www/piler folder to the other machine.
Here, I have the following lines in
/var/www/html/piler/config-site.php (DefaultSite is /var/www/html/) -
all other lines are commented out:
<?php
$config['PILERGETD_HOST'] = '192.168.0.201';
$config['DB_HOSTNAME'] = '192.168.0.201';
$config['SPHINX_HOSTNAME'] = '192.168.0.201:9306 [2]';
$config['SITE_NAME'] = 'piler';
$config['SITE_URL'] = 'http://' . $config['SITE_NAME'] . '/';
$config['DIR_BASE'] = '/var/www/html/piler/';
?>
where 192.168.0.201 is the IP of the server running pilergetd.
However, when trying http://localhost/piler [3] is only get an error
message:
Error: SQLSTATE[HY000] [2003] Can't connect to MySQL server on
'192.168.0.201' (111) on database: piler
don't specify :9306 for sphinx hostname, and make sure that sphinx
listens
on 192.168.0.201 instead of 127.0.0.1
Köszönöm,
:-)
I suggest to try solving your problem otherwise. On a local network
(probably)
there's little real need for a detached gui. Or you may try even with
some http
proxy - if applicable.
Janos