我在 EC2 实例上有一个带有 Ubuntu 14.04 和 Apache2 的 LAMP 配置服务器 AMD64。
我按照这里的官方指南,所以首先
我下载sitemap_linux-x86_64-beta1-20091231.tar.gz
并解压
然后我打字sudo sitemap-install/install.sh –-apache-bin=/usr/sbin/apache2
,我的问题来了:
What is the location of the Apache binary or control script?
[/usr/sbin/apache2] should support -V option.
/usr/sbin/apache2 is not a supported Apache binary or control script.
我确定位置,事实上,如果我从日志文件中重新启动 Apache,我可以看到AH00094: Command line: '/usr/sbin/apache2'
。我也试过用这个作为位置/usr/sbin/apache2ctl
,但没办法。
我在谷歌上搜索了几天,没有找到任何东西。
为什么我无法使用/usr/sbin/apache2
Apache 的位置安装 Google Sitemap Generator?
更新
如果我输入apache2 -V
输出是一个警告列表,Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
但这是因为请求/usr/sbin/apache2
直接从二进制文件输出,所以/etc/apache2/envvars
文件不是如here所述的那样来源