apache - Apache HTTP 服务器未运行
问题描述
我在 Ubuntu 18.04 上建立了一个网站,并尝试为该域安装 SSL(Let's Encrypt)。所以我安装了指南中的所有内容,但之后我无法访问我网站的管理面板,也无法从 FTP 服务器上传或下载任何文件。
所以我决定删除与 SSL 相关的所有内容(来自互联网上的一些指南),我想它会以某种方式回到以前的情况。然而,这并没有发生。
现在我无法将任何内容上传到 FTP 或从中下载。也无法访问管理页面。我可以访问服务器根目录,所以这是解决问题的唯一方法(据我所知)。
我试图这样做:
sudo certbot --apache -d domain.lt -d www.domain.lt
但是我得到了错误:
Error while running apache2ctl configtest.
Action configtest failed. The Apache error log may have more information.apache2:
Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 13 of /etc/apache2/sites-enabled/opencart-le-ssl.conf: Could not open configuration file /etc/letsencrypt/options-ssl-apache.conf: No such file or directory
我看到 Apache 没有运行,也不知道如何让它运行。
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2020-10-16 13:16:42 EEST; 11min ago
Process: 18181 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
Process: 18186 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 366 (code=exited, status=0/SUCCESS)
Oct 16 13:16:42 domain.lt systemd[1]: Starting The Apache HTTP Server...
Oct 16 13:16:42 domain.lt apachectl[18186]: apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 13 of /etc/apache2/sites-enabled/opencart-le-ssl.conf:
Oct 16 13:16:42 domain.lt apachectl[18186]: Action 'start' failed.
感谢您对如何启用 ssl 并使其再次工作的任何帮助。我作为系统管理员不是很好,只是按照指南进行操作。
解决方案
设法进入网站,但仍然无法登录 /admin 面板。我正在输入用户名和密码,但没有任何反应。FTP仍然只用于导航,不能上传或下载文件。
推荐阅读
- image - 在二值化图像中分离交叉段
- android - 无法打开/qemu.conf,错误:2
- variables - 如何气流变量的值包含外来字符?
- python - 按分隔符拆分列并删除扩展列
- vsphere - cloud-init 用户数据传递到的 linux 文件位置是什么?
- python - Python3.7 转换逗号分隔的日期时间
- java - 在回调改造结束之前用空值实例化的对象
- ms-access - Access 2007 数据库中的表单缺少标签和字段
- angular - Angular CLI 的任何选项都可以在运行“ng g component”时将 ngOnDestory 添加到组件中
- python - Flask-Babel localeselector 没有被调用