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-20, 00:30:32

Author Topic: stats.<domain_name> and multi-php (enabled as secondary)  (Read 3381 times)

0 Members and 1 Guest are viewing this topic.

Offline tochits

  • Junior Member
  • *
  • Posts: 39
  • Karma: +0/-0
    • View Profile
I am using awstats to display 'stats.<domain_name>'. i find that I only able to correctly display the page if I install a multi-php instance and "Enable Multiple PHP As Secondary PHP".

If this is not the setup, awstats.pl is being download by the browser instead of being executed and displayed properly. Isn't this a bug?

Anyway, I can work with setup I describe above. A minor issue I have with this is that with multi php, the scavenger email being sent (that contains the start and end times of scavenger run) contains timestamps that are of different timezones.

Scavenge started: 2017/03/09 12:15:01
Scavenge completed: 2017/03/09 04:25:04


The start time is my actual scheduled run (in my local timezone); the completed time is in UTC I believe. I think this is another bug.

Code: [Select]
# sh /script/sysinfo     
A. Control Panel:               
   - Kloxo-MR: 7.0.0.c-2017030803
   - Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
   - PHP: php54s-5.4.45-2.w6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: kloxomr7-build.emc.ph
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-1.ius.el6.x86_64
        - Multiple:
          * php56m-5.6.30-1.ius.el6
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.11.10-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: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: none
     - Bind: --uninstalled--
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - spam: --uninstalled--
   7. Stats: awstats

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: stats.<domain_name> and multi-php (enabled as secondary)
« Reply #1 on: 2017-03-09, 08:38:33 »
For awstats under nginx, try 'chkconfig spawn-fcgi on; sh /script/restart-web'. Need spawn-fcgi because nginx can't handle cgi and then need other process for handling it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline tochits

  • Junior Member
  • *
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: stats.<domain_name> and multi-php (enabled as secondary)
« Reply #2 on: 2017-03-09, 08:47:14 »
For nginx, yes, i have also tried this before.

But I am not using nginx, but apache for web service for this particular server.

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.026 seconds with 18 queries.

web stats analysis