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-03-28, 20:27:31

Author Topic: Problems on configuring let's encrypt  (Read 4664 times)

0 Members and 1 Guest are viewing this topic.

Offline Richa

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Problems on configuring let's encrypt
« on: 2016-11-13, 05:44:24 »
Hello.

I try to configure let's encrypt on the server via kloxo-mr7, but when I run letsencrypt-auto, it returns the following error:
Code: [Select]
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running apachectl configtest.
httpd: Syntax error on line 8 of /etc/httpd/conf/httpd.conf: 
Include directory '/etc/httpd/conf.modules.d' not found   

Then I try mkdir /etc/httpd/conf.modules.d and run letsencript-auto again, it returns the following error:
Code: [Select]
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running apachectl configtest.                 
Syntax error on line 43 of /etc/httpd/conf/httpd.conf:         
Invalid command 'ErrorLogFormat', perhaps misspelled or defined by 
a module not included in the server configuration

That's why? Thank you.

The following is letsencrypt.log:
Code: [Select]
2016-11-13 04:53:39,374:DEBUG:certbot.main:Root logging level set at 20
2016-11-13 04:53:39,380:DEBUG:certbot.main:certbot version: 0.9.3
2016-11-13 04:53:39,374:DEBUG:certbot.main:Root logging level set at 20
2016-11-13 04:53:39,380:DEBUG:certbot.main:certbot version: 0.9.3
2016-11-13 04:53:39,380:DEBUG:certbot.main:Arguments: []
2016-11-13 04:53:39,415:ERROR:certbot.util:Error while running apachectl configtest.


Syntax error on line 43 of /etc/httpd/conf/httpd.conf:
Traceback (most recent call last):
    self._initialized.prepare()
    self.config_test()
  File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot_apache/configurator.py", line 1687, in config_test
    raise errors.MisconfigurationError(str(err))
MisconfigurationError: Error while running apachectl configtest.

Syntax error on line 43 of /etc/httpd/conf/httpd.conf:
Invalid command 'ErrorLogFormat', perhaps misspelled or defined by a module not included in the server configuration

2016-11-13 04:53:39,420:DEBUG:certbot.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.configurator:ApacheConfigurator
Initialized: <certbot_apache.configurator.ApacheConfigurator object at 0x7f338b98b310>
Prep: Error while running apachectl configtest.

Syntax error on line 43 of /etc/httpd/conf/httpd.conf:
Invalid command 'ErrorLogFormat', perhaps misspelled or defined by a module not included in the server configuration

2016-11-13 04:53:39,422:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None

The following is httpd.conf:
Code: [Select]
ServerTokens OS

ServerRoot "/etc/httpd"

# MR -- must be disable here because can not overrite! -- importance for proxy-to-apache
# Listen 80

Include conf.modules.d/*.conf

User apache
Group apache

ServerAdmin root@localhost

<Directory />
    AllowOverride none
    Require all denied
</Directory>

DocumentRoot "/var/www/html"

<Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

# Further relax access to the default document root:
<Directory "/var/www/html">
    Require all granted
</Directory>

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

<Files ".ht*">
    Require all denied
</Files>

ErrorLogFormat "[%t] [%-m:%l] [pid %P] [%F:] [%M] [%v]"
ErrorLog "logs/error_log"

LogLevel error

<IfModule log_config_module>
        ## MR -- change %h to %a to fix mod_remoteip issue
    LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%a %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
    </IfModule>

    CustomLog "logs/access_log" combined
</IfModule>

<IfModule alias_module>
    # Alias /webpath /full/filesystem/path
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</IfModule>

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>

<IfModule mime_module>
    TypesConfig /etc/mime.types

    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #AddHandler cgi-script .cgi
    #AddHandler type-map var

    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
</IfModule>

#AddDefaultCharset UTF-8

<IfModule mime_magic_module>
    MIMEMagicFile conf/magic
</IfModule>

Alias /error/ "/home/kloxo/httpd/error/"

<IfModule mod_negotiation.c>
    <IfModule mod_include.c>
        <Directory "/home/kloxo/httpd/error/">
            AllowOverride None
            Options IncludesNoExec
            AddOutputFilter Includes html
            AddHandler type-map var
            <IfVersion < 2.4>
                Order allow,deny
                Allow from all
            </IfVersion>
            <IfVersion >= 2.4>
                Require all granted
            </IfVersion>
                LanguagePriority en es de fr
            ForceLanguagePriority Prefer Fallback
        </Directory>

        #ErrorDocument 500 "The server made a boo boo."
        #ErrorDocument 404 /missing.html
        #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
        #ErrorDocument 402 http://www.example.com/subscription_info.html

        ErrorDocument 400 /error/400.html
        ErrorDocument 401 /error/401.html
        ErrorDocument 403 /error/403.html
        ErrorDocument 404 /error/404.html
        ErrorDocument 500 /error/500.html
        ErrorDocument 501 /error/501.html
        ErrorDocument 502 /error/502.html
        ErrorDocument 503 /error/503.html
        ErrorDocument 504 /error/504.html
    </IfModule>
</IfModule>

EnableSendfile on

HostnameLookups Off

IncludeOptional conf.d/*.conf
« Last Edit: 2016-11-13, 05:51:40 by Richa »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problems on configuring let's encrypt
« Reply #1 on: 2016-11-13, 06:05:42 »
Use acme.sh instead letsencrypt-auto and make sure with 'sh /script/acme.sh-installer -y'. Setup letsencrypt ssl via panel (example: admin > all > all domains > select one > ssl certificates > add let's encrypt'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Richa

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Problems on configuring let's encrypt
« Reply #2 on: 2016-11-13, 06:28:54 »
Use acme.sh instead letsencrypt-auto and make sure with 'sh /script/acme.sh-installer -y'. Setup letsencrypt ssl via panel (example: admin > all > all domains > select one > ssl certificates > add let's encrypt'.

OK. Thank you for your reply. But how can I configure let's encrypt on kloxo-mr control panel(https://127.0.0.1:7777)?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problems on configuring let's encrypt
« Reply #3 on: 2016-11-13, 06:39:50 »
Inform here your 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Richa

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Problems on configuring let's encrypt
« Reply #4 on: 2016-11-13, 06:54:38 »
Inform here your 'sh /script/sysinfo'.

Code: [Select]
A. Control Panel:               
   - Kloxo-MR: 7.0.0.b-2016100902
   - Web: hiawatha-10.4.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
   - Hostname: localhost
C. Services:
   1. MySQL: MariaDB-server-10.0.28-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
      - Used: --PHP Branch--
error reading information on service phpm-fpm: No such file or directory
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.4.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.41-2.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: off
   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: 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: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: awstats
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           742        637        104          0         51        351
   -/+ buffers/cache:        234        507
   Swap:            0          0          0
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1        15G  2.4G   12G  18% /


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

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



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problems on configuring let's encrypt
« Reply #5 on: 2016-11-13, 09:00:56 »
I think something wrong with your hostname. It's must be something like 'server1.yourdomain.com' instead 'server1'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Richa

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Problems on configuring let's encrypt
« Reply #6 on: 2016-11-13, 10:03:15 »
I think something wrong with your hostname. It's must be something like 'server1.yourdomain.com' instead 'server1'.

OK. I have changed it to my domain. Then what should I do to configure let's encrypt on kloxo-mr cp?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problems on configuring let's encrypt
« Reply #7 on: 2016-11-13, 11:29:01 »
You can configure ssl via Kloxo-MR panel.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Richa

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Problems on configuring let's encrypt
« Reply #8 on: 2016-11-13, 12:03:29 »
You can configure ssl via Kloxo-MR panel.

My mean is configuring let's encrypt on Kloxo-MR Display Pages, that is '127.0.0.1:7777'. I want to configure SSL for my control panel. But I can't find any options on Kloxo-MR  :(

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problems on configuring let's encrypt
« Reply #9 on: 2016-11-13, 12:18:00 »
No options for add ssl from ourside.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.069 seconds with 19 queries.

web stats analysis