多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
起ubuntu容器安装cobbler和apache2 然后启动apache2的时候报错 报错1 ``` root@b13c4ddc6bb4:~# /etc/init.d/apache2 start * Starting Apache httpd web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message Action 'start' failed. The Apache error log may have more information. * ``` 解决: 在apache2的配置文件里添加 ``` ServerName localhost:80 ``` 报错2 ``` root@b13c4ddc6bb4:~# cat /var/log/apache2/error.log [Fri Mar 23 11:50:48.593939 2018] [wsgi:crit] [pid 6070:tid 139737653491584] mod_wsgi (pid=6070): The mod_python module can not be used on conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration. AH00016: Configuration Failed ``` 解决问题链接: ``` https://stackoverflow.com/questions/6454564/target-wsgi-script-cannot-be-loaded-as-python-module ``` 步骤 ``` apt-get remove libapache2-mod-python libapache2-mod-wsgi apt-get install libapache2-mod-wsgi-py3 ```