ispconfig
(L)Ubuntu 15.04에 3을 설치하는 데 문제가 있습니다. 완전히 설치는 되지만 ispconfig
웹 호스트를 볼 때 웹 사이트에 접속할 수 없습니다 apache2
. 열 수는 있지만 ispconfig
PHP https://localip:9090/
가 구문 분석/처리되지 않습니다!
내 호스트 구성 파일은 /etc/apache2/sites-available/ispconfig.conf
다음과 같습니다.
################################################
# ISPConfig Logfile configuration for vlogger
################################################
LogFormat "%v %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig
<Directory /var/www/clients>
AllowOverride None
Require all denied
</Directory>
# Do not allow access to the root file system of the server for security reasons
<Directory />
Options -Indexes
AllowOverride None
Require all denied
</Directory>
<Directory /var/www/conf>
AllowOverride None
Require all denied
</Directory>
# Except of the following directories that contain website scripts
<Directory /usr/share/phpmyadmin>
Require all granted
</Directory>
<Directory /usr/share/phpMyAdmin>
Require all granted
</Directory>
<Directory /srv/www/htdocs>
Require all granted
</Directory>
<Directory /usr/share/squirrelmail>
Require all granted
</Directory>
# Allow access to mailman on OpenSuSE
<Directory /usr/lib/mailman/cgi-bin>
Require all granted
</Directory>
<Directory /usr/lib/mailman/icons>
Require all granted
</Directory>
<Directory /var/lib/mailman/archives/>
Options +FollowSymLinks
Require all granted
</Directory>
# allow path to awstats and alias for awstats icons
<Directory /usr/share/awstats>
Require all granted
</Directory>
NameVirtualHost *:80
NameVirtualHost *:443
두 번째는 다음 /etc/apache2/sites-available/ispconfig.vhost
과 같습니다.
######################################################
# This virtual host contains the configuration
# for the ISPConfig controlpanel
######################################################
Listen 9090
NameVirtualHost *:9090
<VirtualHost _default_:9090>
ServerAdmin webmaster@localhost
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
<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 -SSLv2 -SSLv3
SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
DocumentRoot /var/www/ispconfig
#SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle
</VirtualHost>
<Directory /var/www/php-cgi-scripts>
AllowOverride None
Require all denied
</Directory>
<Directory /var/www/php-fcgi-scripts>
AllowOverride None
Require all denied
</Directory>
PHP는 다른 웹 호스트에서 실행될 수 있습니다! 문제가 무엇입니까?
답변1
파일 에서 ispconfig.vhost
다음 블록을 확인하세요.
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
어떤 핸들러도 PHP 파일과 연결하지 말라고 지시합니다. 잠시 후 또 다른 블록이 나타납니다.
<IfModule mod_fcgid.c>
...
<FilesMatch "\.php$">
SetHandler fcgid-script
</FilesMatch>
...
</IfModule>
이 블록은 우리에게 말해줍니다.모듈이 mod_fcgid
로드된 경우fcgid-script
그럼 php 파일을 처리 해보자 .
즉, FastCGI 모듈을 활성화하지 않으면 PHP 파일을 관리할 수 있는 것이 아무것도 없다는 의미입니다.
아직 설치하지 않았 libapache_mod_fcgid
거나 활성화되지 않았을 수 있습니다. (참조 a2enmod fcgid
: )