Manual installation of the PHP daemon

Retrieve Sqreen extension files

On top of having packages for most Linux distributions, the Sqreen daemon is available from static repositories. Download it manually from here or in this way:

$ curl https://download.sqreen.io/php/sqreen-agent/linux/sqreen-agent-latest-linux.tar.gz -o sqreen-agent.tar.gz
$ tar -xvzf sqreen-agent.tar.gz

Copy daemon

# mkdir -p /usr/local/sqreen/bin/
# cp sqreen-agent /usr/bin/

Run daemon manually

$ ./sqreen-agent
[INFO][2017-10-17 17:23:36,620 #19.MainThread] sqreen-agent:182     sqreen-agent (1.0.2) starting up on TCP socket 0.0.0.0:7773
[INFO][2017-10-17 17:23:36,621 #19.MainThread] sqreen-agent:195     Sqreen-agent successfully started

Configure system

# useradd -rU sqreen
# mkdir -p -m 755 /var/log/sqreen
# chown sqreen:sqreen /var/log/sqreen

Configure daemon startup

systemd

You can configure systemd to start the daemon, for example:

# cp ./systemd/sqreen-agent.service /usr/lib/systemd/system/sqreen-agent.service
# systemctl enable sqreen-agent
# systemctl start sqreen-agent

init.d on Debian / Ubuntu

You can configure init.d to start the daemon, for example:

# cp ./init.d/debian/sqreen-agent /etc/init.d/
# chmod 755 /etc/init.d/sqreen-agent
# update-rc.d sqreen-agent defaults
# /etc/init.d/sqreen-agent start

init.d on Red Hat / CentOS

You can configure init.d to start the daemon, for example:

# cp ./init.d/centos/sqreen-agent /etc/init.d/
# chmod 755 /etc/init.d/sqreen-agent
# chkconfig --add sqreen-agent
# chkconfig sqreen-agent on
# /etc/init.d/sqreen-agent start