我在一些用户身上看到了这个问题,但我没有找到解决办法。我运行 Centos 7,并通过下载安装了 ISPconfig,然后运行
php install.php
它配置了一些东西,比如 ssl、apache 等,但是有些步骤失败了(比如一些 apache ssl),我不得不重新启动php install.php
几次才能安装缺少的依赖项。
我设置了 ISPconfigport 81
并将其设置为使用 ssl url。
问题:打开时,https://192.168.1.x:81
我获得默认的 Apache 内容from /var/www/html
,而不是来自的 ISPconfig 界面/var/www/ispconfig/
其他人提到可能存在 vhost 冲突,但我不这么认为,因为我在文件夹:81
中搜索/etc/httpd/
,但只能在一个文件内找到它:/etc/httpd/conf/sites-available/ispconfig.vhost
,如果我将那里的端口更改为类似的83
,那么它会开始在新端口上响应并停止在旧端口上响应81
,这让我认为没有定义多个 vhosts/冲突。
我可以尝试什么?
######################################################
# This virtual host contains the configuration
# for the ISPConfig controlpanel
######################################################
Listen 81
NameVirtualHost *:81
<VirtualHost _default_:81>
ServerAdmin webmaster@localhost
<Directory /var/www/ispconfig/>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
</Directory>
<Directory /usr/local/ispconfig/interface/web/>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
</Directory>
<IfModule mod_fcgid.c>
DocumentRoot /var/www/ispconfig/
SuexecUserGroup ispconfig ispconfig
<Directory /var/www/ispconfig/>
Options -Indexes +FollowSymLinks +MultiViews +ExecCGI
AllowOverride AuthConfig Indexes Limit Options FileInfo
<FilesMatch "\.php$">
SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
Require all granted
</Directory>
IPCCommTimeout 7200
MaxRequestLen 15728640
</IfModule>
<IfModule mpm_itk_module>
DocumentRoot /usr/local/ispconfig/interface/web/
AssignUserId ispconfig ispconfig
AddType application/x-httpd-php .php
<Directory /usr/local/ispconfig/interface/web>
# php_admin_value open_basedir "/usr/local/ispconfig/interface:/usr/share:/tmp"
Options +FollowSymLinks
AllowOverride None
Require all granted
php_value magic_quotes_gpc 0
</Directory>
</IfModule>
# ErrorLog /var/log/apache2/error.log
# CustomLog /var/log/apache2/access.log combined
ServerSignature Off
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
# SSL Configuration
SSLEngine On
SSLProtocol All -SSLv3
SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
#SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
SSLHonorCipherOrder On
<IfModule mod_headers.c>
Header always add Strict-Transport-Security "max-age=15768000"
RequestHeader unset Proxy early
</IfModule>
SSLUseStapling On
SSLStaplingResponderTimeout 5
SSLStaplingReturnResponderErrors Off
</VirtualHost>
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/var/run/ocsp(128000)
</IfModule>
<Directory /var/www/php-cgi-scripts>
AllowOverride None
Require all denied
</Directory>
<Directory /var/www/php-fcgi-scripts>
AllowOverride None
Require all denied
</Directory>
答案1
谢谢rakib_buet在 webhostingtalk 论坛上,我通过以下方式修复了它......
yum install mod_fcgid
service httpd restart
看起来 mod_fcgid 没有安装,并且 ispconfig 的 apache 配置文件是基于它的设置指令<IfModule mod_fcgid.c>...</IfModule>
,也许可以使用这些文件的更好的 ISPconfig 模板来修复它。