在构建Maltego Transform Server时,Apache无法启动的故障

我按照Maltego页面上提供的步骤进行了Transform Server的构建。

操作系统:Ubuntu 22.10

使用Apache2构建生产转换服务器

在执行重启Apache的命令时,Apache未能启动,并出现以下错误。

░░ Subject: A start job for unit apache2.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A start job for unit apache2.service has begun execution.
░░ 
░░ The job identifier is 7809.
Mar 27 05:02:17 ubuntu-s-2vcpu-4gb-sgp1-01 apachectl[69575]: AH00526: Syntax error on line 2 of /etc/apache2/sites-enabled/TRX.conf:
Mar 27 05:02:17 ubuntu-s-2vcpu-4gb-sgp1-01 apachectl[69575]: Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not incl>
Mar 27 05:02:17 ubuntu-s-2vcpu-4gb-sgp1-01 apachectl[69571]: Action 'start' failed.
Mar 27 05:02:17 ubuntu-s-2vcpu-4gb-sgp1-01 apachectl[69571]: The Apache error log may have more information.
Mar 27 05:02:17 ubuntu-s-2vcpu-4gb-sgp1-01 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support

执行以下命令后发现出现了无效的命令’WSGIDaemonProcess’,并确定这是问题的原因。通过搜索发现Apache未启用wsgi mod,所以执行了以下命令。

启用 wsgi 模块

Apache成功启动。