Comments on: How to install Varnish and phpMyAdmin on a CentOS 7 VPS with Nginx, MariaDB and PHP-FPM https://www.rosehosting.com/blog/how-to-install-varnish-and-phpmyadmin-on-a-centos-7-vps-with-nginx-mariadb-and-php-fpm/ Premium Linux Tutorials Since 2001 Fri, 30 Dec 2022 08:47:11 +0000 hourly 1 https://wordpress.org/?v=6.5.4 By: admin https://www.rosehosting.com/blog/how-to-install-varnish-and-phpmyadmin-on-a-centos-7-vps-with-nginx-mariadb-and-php-fpm/#comment-43793 Sun, 26 Oct 2014 08:43:26 +0000 https://secure.rosehosting.com/blog/?p=4215#comment-43793 In reply to ramin.

You can either configure your SeLinux to allow access to Varnish or disable your SeLinux and try again.

]]>
By: ramin https://www.rosehosting.com/blog/how-to-install-varnish-and-phpmyadmin-on-a-centos-7-vps-with-nginx-mariadb-and-php-fpm/#comment-43792 Sun, 26 Oct 2014 07:40:38 +0000 https://secure.rosehosting.com/blog/?p=4215#comment-43792 In reply to admin.

Hi.
I checked my Varnish and Nginx configuration files.
every thing is OK.
but varnish status is same as before. “systemctl status varnish.service”
this is my SeLinux Alert:
—————
SELinux is preventing /usr/sbin/varnishd from using the fowner capability.

***** Plugin catchall (100. confidence) suggests **************************

If you believe that varnishd should have the fowner capability by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep varnishd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context system_u:system_r:varnishd_t:s0
Target Context system_u:system_r:varnishd_t:s0
Target Objects [ capability ]
Source varnishd
Source Path /usr/sbin/varnishd
Port
Host mycentos
Source RPM Packages varnish-4.0.1-2.el7.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.12.1-153.el7_0.11.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name mycentos
Platform Linux mycentos 3.10.0-123.8.1.el7.x86_64 #1 SMP
Mon Sep 22 19:06:58 UTC 2014 x86_64 x86_64
Alert Count 6
First Seen 2014-10-23 10:41:58 IRST
Last Seen 2014-10-26 10:54:38 IRST
Local ID 3e8d351e-f03a-45fd-91a3-cde86e4272cf

Raw Audit Messages
type=AVC msg=audit(1414308278.250:868): avc: denied { fowner } for pid=5923 comm=”varnishd” capability=3 scontext=system_u:system_r:varnishd_t:s0 tcontext=system_u:system_r:varnishd_t:s0 tclass=capability

type=SYSCALL msg=audit(1414308278.250:868): arch=x86_64 syscall=chmod success=no exit=EPERM a0=7fff6b69d3e0 a1=1ed a2=0 a3=0 items=0 ppid=1 pid=5923 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=varnishd exe=/usr/sbin/varnishd subj=system_u:system_r:varnishd_t:s0 key=(null)

Hash: varnishd,varnishd_t,varnishd_t,capability,fowner
———–
Thanks.

]]>
By: admin https://www.rosehosting.com/blog/how-to-install-varnish-and-phpmyadmin-on-a-centos-7-vps-with-nginx-mariadb-and-php-fpm/#comment-43784 Fri, 24 Oct 2014 00:27:16 +0000 https://secure.rosehosting.com/blog/?p=4215#comment-43784 In reply to ramin.

Please check your Varnish and Nginx configuration files and make sure Varnish is configured to run on port 80 while Nginx on port 8080.

]]>
By: ramin https://www.rosehosting.com/blog/how-to-install-varnish-and-phpmyadmin-on-a-centos-7-vps-with-nginx-mariadb-and-php-fpm/#comment-43783 Thu, 23 Oct 2014 08:32:27 +0000 https://secure.rosehosting.com/blog/?p=4215#comment-43783 Hi.
I can’t start Varnish.

systemctl restart varnish command result:
varnish.service - Varnish a high-perfomance HTTP accelerator
Loaded: loaded (/usr/lib/systemd/system/varnish.service; enabled)
Active: failed (Result: exit-code) since Thu 2014-10-23 10:55:51 IRST; 52min ago
Process: 8353 ExecStart=/usr/sbin/varnishd -P /var/run/varnish.pid -f $VARNISH_VCL_CONF -a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} -t $VARNISH_TTL -u $VARNISH_USER -g $VARNISH_GROUP -S $VARNISH_SECRET_FILE -s $VARNISH_STORAGE $DAEMON_OPTS (code=exited, status=2)

my system:
centsos 7, nginx , php5.4, varnish 4.0.1

]]>
By: admin https://www.rosehosting.com/blog/how-to-install-varnish-and-phpmyadmin-on-a-centos-7-vps-with-nginx-mariadb-and-php-fpm/#comment-43743 Sun, 28 Sep 2014 22:19:57 +0000 https://secure.rosehosting.com/blog/?p=4215#comment-43743 In reply to Simon.

Thank you for your kind words.
If you are not satisfied with our pre-defined packages, you can feel free to create a custom VPS at: https://secure.rosehosting.com/clientarea/?cmd=cart&action=add&id=82

]]>
By: Simon https://www.rosehosting.com/blog/how-to-install-varnish-and-phpmyadmin-on-a-centos-7-vps-with-nginx-mariadb-and-php-fpm/#comment-43740 Fri, 26 Sep 2014 18:27:37 +0000 https://secure.rosehosting.com/blog/?p=4215#comment-43740 Thanks big time. Every VPS problem has a clear fix in this site. It makes me wish I was your client. Please start selling a 5GB RAM VPS, and I will sign up.

]]>