Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@test-obt-wordpress ~]# /home/mpb/Downloads/cert-bot/certbot-auto --authenticator standalone --installer apache --pre-hook "apachectl -k stop" --post-hook "apachectl -k start" # trying "Debian other" method
- FATAL: Mageia support is very experimental at present...
- if you would like to work on improving it, please ensure you have backups
- and then run this script again with the --debug flag!
- Alternatively, you can install OS dependencies yourself and run this script
- again with --no-bootstrap.
- # So tried again with "--no-bootstrap"
- [root@test-obt-wordpress ~]# /home/mpb/Downloads/cert-bot/certbot-auto --authenticator standalone --installer apache --pre-hook "apachectl -k stop" --post-hook "apachectl -k start" --no-bootstrap # trying "Debian other" method
- Creating virtual environment...
- Installing Python packages...
- Installation succeeded.
- Saving debug log to /var/log/letsencrypt/letsencrypt.log
- The apache plugin is not working; there may be problems with your existing configuration.
- The error was: PluginError('There has been an error in parsing the file /etc/httpd/conf/conf.d/security.conf on line 17: Syntax error',)
- # looked at line 17 of /etc/httpd/conf/conf.d/security.conf - what is the problem?
- $ nl -ba /etc/httpd/conf/conf.d/security.conf
- 1 # miscellaneous security settings
- 2
- 3 # disable TRACE (CVE-2009-2823)
- 4 TraceEnable Off
- 5
- 6 <IfModule mod_dir.c>
- 7 # This protects rpm backup files from beeing served, these files could
- 8 # contain sensible information.
- 9 <FilesMatch "\.(rpmorig|rpmsave)$">
- 10 Require all denied
- 11 </FilesMatch>
- 12
- 13 # This protects ssi and php files from beeing served if the module is not
- 14 # installed, it prevents presumptive source code theft.
- 15 <IfModule !mod_include.c>
- 16 <FilesMatch "\.(shtml)$">
- 17 ErrorDocument 403 "<h1>403 Forbidden: Execute Access Forbidden</h1>\
- 18 <p>The server is currently not serving ssi scripts.</p><p>This \
- 19 could mean the server administrator is doing maintenance or has \
- 20 orphan ssi files laying around, please contact the server \
- 21 administrator or come back later. Thank you.</p>
- 22 Require all denied
- 23 </FilesMatch>
- 24 </IfModule>
- 25
- 26 <IfModule !mod_php.c>
- 27 <FilesMatch "\.(php|php3|php4|php5|phps|phtml)$">
- 28 ErrorDocument 403 "<h1>403 Forbidden: Execute Access Forbidden</h1>\
- 29 <p>The server is currently not serving php scripts.</p><p>This \
- 30 could mean the server administrator is doing maintenance or has \
- 31 orphan php files laying around, please contact the server \
- 32 administrator or come back later. Thank you.</p>
- 33 Require all denied
- 34 </FilesMatch>
- 35 </IfModule>
- 36 </IfModule>
- 37
- # Here is the log from running certbot
- # nl -ba /var/log/letsencrypt/letsencrypt.log
- 1 2018-01-23 10:36:02,529:DEBUG:certbot.main:certbot version: 0.21.0
- 2 2018-01-23 10:36:02,530:DEBUG:certbot.main:Arguments: ['--authenticator', 'standalone', '--installer', 'apache', '--pre-hook', 'apachectl -k stop', '--post-hook', 'apachectl -k start', '--no-bootstrap']
- 3 2018-01-23 10:36:02,530:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
- 4 2018-01-23 10:36:02,558:DEBUG:certbot.log:Root logging level set at 20
- 5 2018-01-23 10:36:02,559:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
- 6 2018-01-23 10:36:02,562:DEBUG:certbot.plugins.selection:Requested authenticator standalone and installer apache
- 7 2018-01-23 10:36:02,776:DEBUG:certbot_apache.configurator:Apache version is 2.4.27
- 8 2018-01-23 10:36:03,109:DEBUG:certbot.plugins.disco:Other error:(PluginEntryPoint#apache): There has been an error in parsing the file /etc/httpd/conf/conf.d/security.conf on line 17: Syntax error
- 9 Traceback (most recent call last):
- 10 File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot/plugins/disco.py", line 130, in prepare
- 11 self._initialized.prepare()
- 12 File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot_apache/configurator.py", line 228, in prepare
- 13 self.check_parsing_errors("httpd.aug")
- 14 File "/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot_apache/augeas_configurator.py", line 77, in check_parsing_errors
- 15 raise errors.PluginError(msg)
- 16 PluginError: There has been an error in parsing the file /etc/httpd/conf/conf.d/security.conf on line 17: Syntax error
- 17 2018-01-23 10:36:03,110:DEBUG:certbot.plugins.selection:No candidate plugin
- 18 2018-01-23 10:36:03,330:DEBUG:certbot.plugins.selection:Single candidate plugin: * standalone
- 19 Description: Spin up a temporary webserver
- 20 Interfaces: IAuthenticator, IPlugin
- 21 Entry point: standalone = certbot.plugins.standalone:Authenticator
- 22 Initialized: <certbot.plugins.standalone.Authenticator object at 0x7f7f563abe90>
- 23 Prep: True
- 24 2018-01-23 10:36:03,332:DEBUG:certbot.plugins.selection:Selected authenticator <certbot.plugins.standalone.Authenticator object at 0x7f7f563abe90> and installer None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement