Apache server template ignored

5 posts / 0 new
Last post
#1 Thu, 05/03/2018 - 13:07
Kofl

Apache server template ignored

Hello,

we have a nice apache server template and since the update to the latest version of virtualmin of today it gets ignored:

Template:

ServerName ${DOM}
ServerAlias www.${DOM}
DocumentRoot ${HOME}/public_html
ErrorLog /cluster/home/${DOM}/logs/${DOM}_error_log
CustomLog /cluster/home/${DOM}/logs/${DOM}_access_log combined
DirectoryIndex index.html index.htm index.php
<FilesMatch \.php$>
    SetHandler "proxy:fcgi://127.0.0.1:${UID}"
</FilesMatch>
<Directory ${HOME}/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>

Result:

<VirtualHost 192.168.2.200:80>
ServerName kuechenstudio-creativ.at
ServerAlias www.kuechenstudio-creativ.at
DocumentRoot /cluster/home/kuechenstudio-creativ.at/public_html
ErrorLog /cluster/home/kuechenstudio-creativ.at/logs/kuechenstudio-creativ.at_error_log
CustomLog /cluster/home/kuechenstudio-creativ.at/logs/kuechenstudio-creativ.at_access_log combined
DirectoryIndex index.html index.htm index.php
<Directory /cluster/home/kuechenstudio-creativ.at/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
Action application/x-httpd-php5 /cgi-bin/php5.cgi
Action application/x-httpd-php5.6 /cgi-bin/php5.6.cgi
Action application/x-httpd-php7.0 /cgi-bin/php7.0.cgi
Action application/x-httpd-php7.1 /cgi-bin/php7.1.cgi
AddType application/x-httpd-php5 .php5
AddType application/x-httpd-php5.6 .php5.6
AddType application/x-httpd-php7.0 .php7.0
AddType application/x-httpd-php7.1 .php7.1
AddType application/x-httpd-php7.1 .php
</Directory>
RemoveHandler .php
RemoveHandler .php5
RemoveHandler .php5.6
RemoveHandler .php7.0
RemoveHandler .php7.1
</VirtualHost>

We manage php-fpm on our own (CentOS with Remi repository), but now it seems Virtualmin recongizes them. Maybe the simplest way would be to disable php-support in Virtualmin at all if that is possible.

Thanks

Check configuration:

Your system has 4.76 GB of memory, which is at or above the Virtualmin recommended minimum of 256 MB.
Apache is installed.

The following PHP versions are available : 5.4.16 (/bin/php-cgi), 5.6.29 (/bin/php56-cgi), 7.0.27 (/bin/php70-cgi), 7.1.7 (/bin/php71-cgi)

PHP-FPM support was not detected : Apache module mod_fcgid is missing or not enabled

Apache is configured to host SSL websites.

MySQL is installed and running.

Using network interface eth0 for virtual IPs.

Default IPv4 address for virtual servers is 192.168.2.200.

Both user and group quotas are enabled for home and email directories.

All commands needed to create and restore backups are installed.

The selected package management and update systems are installed OK.

Chroot jails are not available : The Jailkit command jk_init was not found on your system - maybe the jailkit package is not installed?
Sat, 05/19/2018 - 07:04
Kofl

Nobody any idea?

Mon, 05/27/2019 - 02:15 (Reply to #2)
srggroup

Hi!

Did you find any solution? The issue is the same for us, apache website setting of the templates is totally ignored.

Bye, Adam

Mon, 05/27/2019 - 03:49
Kofl

Hi,

no solution found. Also updating Virtualmin did not solve it for us. Seems nobody is interested in solving the issue.

Best, Thomas

Mon, 05/27/2019 - 04:40
srggroup

That's so sad :(

Topic locked