MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: xyrane on 2016-09-05, 19:48:24

Title: www.domain.com goes to default cgi 404 error page but put index.html it works
Post by: xyrane on 2016-09-05, 19:48:24
Fresh Install I have  few issues but below is my priority issue

a ]

When i visit domain.com it gives below error message "

Error 404 - Not Found

The requested page could not be found but may be available again in the future"

But when i use domain.com/index.html it  works

Attachment has been added of ftp directory to see file structure

b]Lets encrypt throw the error
"Alert: Create Certificate failed [brandfoxie.com]"
I had run service script of version

It gave 0.8.1

With no error


Few scripts i ran as found them trouble shooting steps mentioned on this forum

Last login: Mon Sep  5 09:42:51 2016 from 43.224.129.75
[root@1 ~]# letsencrypt-auto --version
letsencrypt 0.8.1
                    pt/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016090305
   - Web: hiawatha-10.3.0-f.1.mr.el6.i686
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) i686
   - Hostname: 1.brandfoxie.com
C. Services:
   1. MySQL: --uninstalled--
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.el6.i686
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.3.0-f.1.mr.el6.i686
     - Lighttpd: lighttpd-1.4.41-1.el6.i686
     - Nginx: nginx-1.11.3-1.el6.ngx.i386
     - Apache: httpd-2.2.31-1.mr.el6.i386
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.i386
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.i686
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - spam: bogofilter-1.2.4-1.el6.i686
   7. Stats: webalizer
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1024        693        330          3          0        550
   -/+ buffers/cache:        142        881
   Swap:          500         44        455
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/simfs       30G  2.1G   28G   7% /


*** Process Time: 00:00:02:53.173746 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

[root@1 ~]# sh /script/fixweb

- For help, type '/script/fixweb [--help|-h]'
- No argument supplied. Defaulting to localhost (master) servers

Fixing Web server config
        - 'defaults' pages at 'localhost'
- remove all domains configs at 'localhost'
- 'brandfoxie.com' ('admin') at 'localhost'

*** Process Time: 00:00:01:39.99400 (dd:hh:mm:ss:xxxxxx) ***

[root@1 ~]# sh /script/restart-web

*** Process for PHP-FPM service ***
  - Process: restart
Stopping php-fpm (PHP Used):                               [  OK  ]
Starting php-fpm (PHP Used):                               [  OK  ]
-------------------------------------------------------------------

*** Process for HTTPD service ***
  - Process: restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
-------------------------------------------------------------------

- For help, type '/script/restart-web [--help|-h]'
[root@1 ~]#




Title: Re: www.domain.com goes to default cgi 404 error page but put index.html it works
Post by: MRatWork on 2016-09-06, 02:43:07
Try using 'acme.sh' instead 'letsencrypt-auto' with installing 'sh /script/acme.sh-installer'.
Title: Re: www.domain.com goes to default cgi 404 error page but put index.html it works
Post by: xyrane on 2016-09-06, 12:40:32
Main issue

a ]

When i visit domain.com it gives below error message "

Error 404 - Not Found

The requested page could not be found but may be available again in the future"

But when i use domain.com/index.html it  works

Attachment has been added of ftp directory to see file structure

May you throw some light to resolve issue A
Title: Re: www.domain.com goes to default cgi 404 error page but put index.html it works
Post by: MRatWork on 2016-09-06, 13:48:32
1. What's about if you rename index.html to index.php
2. I think hostname as '1.brandfoxie.com' is good enough.