Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 11:13:46

Author Topic: Apache malfunction when disable varnish.  (Read 24184 times)

0 Members and 1 Guest are viewing this topic.

Offline kaitux

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Apache malfunction when disable varnish.
« on: 2016-10-19, 20:35:38 »
Hi to All of You,
Watching this forum long time and it helps me a lot, so thank You! :)
Unfortunately now I have strange problems and can't solve them by myself.
I was using genuine kloxo, but last times I've decided to put kloxo-mr on my server. Everything was fine since I've discovered that varnish require more attention to do their job and decided to disable caching service.
When disable varnish and switch to none apache can't serve websites and displays default webpage for all of domains (even webmail or cp). Was trying to switch http service to none, and back to apache. I was also switching to nginx and websites shows fine but not with apache. Same thing with php mode.
I've also trying many sh /scripts/* but with no luck. Besides after executing cleanup or upcp services are not starting automatically and I have to start them manually (httpd, varnish-when enabled, named, kloxo, php-fpm).

Please advice how to deal with this.
 
Quote
A. Control Panel:               
   - Kloxo-MR: 7.0.0.b-2016100902
   - Web: hiawatha-10.3.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
C. Services:
   1. MySQL: MariaDB-server-10.0.27-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.26-1.ius.el6.x86_64
        - Multiple:
          * php53m-5.3.29-1.ius.el6
          * php54m-5.4.45-1.ius.el6
          * php55m-5.5.38-1.ius.el6
          * php56m-5.6.24-1.ius.el6
          * php70m-7.0.9-1.w6
      - Used: php56m-fpm
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.3.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.41-1.el6.x86_64
     - Nginx: nginx-1.11.5-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: on
   4. WebCache: varnish
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: varnish-3.0.7-1.el6.x86_64
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: dovecot-toaster-2.2.24-1.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - spam: --uninstalled--
   7. Stats: awstats
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:         15922      15569        352          0       2090      10359
   -/+ buffers/cache:       3120      12801
   Swap:         8191         17       8174
E. Disk Space:
   Filesystem            Size  Used Avail Use% Mounted on
   /dev/mapper/storage-root
                         1,8T  121G  1,6T   7% /

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache malfunction when disable varnish.
« Reply #1 on: 2016-10-19, 21:35:58 »
Disable varnish and then run 'sh /script/fixweb; sh /script/restart-web' from ssh.

If still not work, try reboot.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline kaitux

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Apache malfunction when disable varnish.
« Reply #2 on: 2016-10-19, 21:40:30 »
Thank You for fast reply. Already tried this, but it not helps.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache malfunction when disable varnish.
« Reply #3 on: 2016-10-19, 21:43:46 »
Try again and inform here about 'sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline kaitux

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Apache malfunction when disable varnish.
« Reply #4 on: 2016-10-19, 21:52:39 »
I'm doing what's you wrote, and
Code: [Select]
~]# sh /script/restart-web

- For help, type '/script/restart-web [--help|-h]'
[root@...
after this I had to manually starts:
/etc/init.d/httpd start and php-fpm

When I started them apache serves default webpage :/

Doing reboot...
After reboot I had to manually run httpd and php-fpm (both are marked to bootup with system - checked with chkconfig for runlevel 3). Still default webpage...

I was doing this many times before, with no effect - if I will turn on varnish now apache will serve correct files, I'm sure :/


« Last Edit: 2016-10-19, 23:08:56 by kaitux »

Offline kaitux

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Apache malfunction when disable varnish.
« Reply #5 on: 2016-10-19, 22:05:05 »
Ok, I've performed one more reboot and sh /script/restart-web -y' shows:
Code: [Select]
~]# sh /script/restart-web -y

- For help, type '/script/restart-web [--help|-h]'
[root

When I manually startup httpd and php-fpm and after that perform restart-web -y it shows:

Code: [Select]
~]# sh /script/restart-web -y
Stopping php56m-fpm (PHP Used):                            [  OK  ]
Stopping httpd:                                       [  OK  ]

- For help, type '/script/restart-web [--help|-h]'

Why? :o

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache malfunction when disable varnish.
« Reply #6 on: 2016-10-19, 22:27:24 »
Try 'chkconfig httpd on; chkconfig varnish off; sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline kaitux

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Apache malfunction when disable varnish.
« Reply #7 on: 2016-10-19, 22:59:42 »
No result. 'sh /script/restart-web -y' only stops services.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache malfunction when disable varnish.
« Reply #8 on: 2016-10-20, 01:12:34 »
Inform here 'yum list installed httpd* nginx* lighttpd* hiawatha* varnish*'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache malfunction when disable varnish.
« Reply #9 on: 2016-10-20, 01:13:11 »
Also 'dir -l /etc/yum.repos.d'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline kaitux

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Apache malfunction when disable varnish.
« Reply #10 on: 2016-10-20, 10:10:51 »
Code: [Select]
Installed packages
hiawatha.x86_64                                                        10.3.0-f.1.mr.el6                                            @mratwork-release-version-arch
httpd.x86_64                                                           2.2.31-1.mr.el6                                              @mratwork-release-version-arch
httpd-tools.x86_64                                                     2.2.31-1.mr.el6                                              @mratwork-release-version-arch
lighttpd.x86_64                                                        1.4.41-1.el6                                                 @mratwork-epel               
lighttpd-fastcgi.x86_64                                                1.4.41-1.el6                                                 @mratwork-epel               
nginx.x86_64                                                           1.11.5-1.el6.ngx                                             @mratwork-nginx               
nginx-module-geoip.x86_64                                              1.11.5-1.el6.ngx                                             @mratwork-nginx               
nginx-module-image-filter.x86_64                                       1.11.5-1.el6.ngx                                             @mratwork-nginx               
nginx-module-njs.x86_64                                                1.11.5.0.1.3-1.el6.ngx                                       @mratwork-nginx               
nginx-module-perl.x86_64                                               1.11.5-1.el6.ngx                                             @mratwork-nginx               
nginx-module-xslt.x86_64                                               1.11.5-1.el6.ngx                                             @mratwork-nginx               
varnish.x86_64                                                         3.0.7-1.el6                                                  @mratwork-varnish-3.0         
varnish-libs.x86_64                                                    3.0.7-1.el6                                                  @mratwork-varnish-3.0     
Code: [Select]
-rw-r--r--. 1 root root 1991 05-18 21:47 CentOS-Base.repo
-rw-r--r--. 1 root root  647 05-18 21:47 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root  289 05-18 21:47 CentOS-fasttrack.repo
-rw-r--r--. 1 root root  630 05-18 21:47 CentOS-Media.repo
-rw-r--r--. 1 root root 6259 05-18 21:47 CentOS-Vault.repo
-rw-r--r--  1 root root 8621 09-23 00:14 mratwork.repo

Yesterday I was following your instruction, but when finished I turned varnish on to keep my sites available over the night. Was checking twice at night if they are online and was ok. This morning I receive emails (5 min period since 5am until 7am) with information about 'restart-web --force'.
I logged into the server, started varnish (e-mails stops flooding;)). I read logs and there is info that:
Code: [Select]
Oct 20 04:58:44 host varnishd[15445]: Manager got SIGINT


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache malfunction when disable varnish.
« Reply #11 on: 2016-10-20, 11:51:05 »
Not sure. Read this link http://varnish-cache.org/trac/ticket/556.

My advice, don't use webcache (like varnish) because not support for https access.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline kaitux

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Apache malfunction when disable varnish.
« Reply #12 on: 2016-10-20, 12:06:34 »
Exactely, I don't want to use cache and want to disable varnish at all, but when doing this can't get my websites working with apache, because it displays "default webpage" for all of them (even for webmail or cp) :/
So my question is how to achieve this. How to get apache working without varnish?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache malfunction when disable varnish.
« Reply #13 on: 2016-10-20, 12:12:23 »
1. Select 'none' for 'webcache' in 'switch programs'
2. To make sure, run 'sh /script/fixweb; sh /script/restart-web'
3. To make sure, clear browser cache and history
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline kaitux

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Apache malfunction when disable varnish.
« Reply #14 on: 2016-10-20, 12:27:56 »
I've already done this with 'default webpage' result, but if you say so I'll do this once again and inform about result. Unfortunately can't do this in the middle of day. So I will let you know later this evening.
Thank You for your support.

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.063 seconds with 18 queries.

web stats analysis