Hi there,
i don’t see any way to solve this problem:
Created a new Server with a new version of Virtualmin and moved two virtual hosts from the old to the new server. Unfortunately, php won’t work at all. It will always offer me the index.php for download, whatever i do.
One of the problems could be found here:
The original apache .conf file for that virtual host reads for publichtml folder like this:
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php5.6
AddHandler fcgid-script .php7.0
AddHandler fcgid-script .php7.2
AddHandler fcgid-script .php7.3
FCGIWrapper /home/id2019/fcgi-bin/php7.2.fcgi .php
FCGIWrapper /home/id2019/fcgi-bin/php5.6.fcgi .php5.6
FCGIWrapper /home/id2019/fcgi-bin/php7.0.fcgi .php7.0
FCGIWrapper /home/id2019/fcgi-bin/php7.2.fcgi .php7.2
FCGIWrapper /home/id2019/fcgi-bin/php7.3.fcgi .php7.3
and for the cgi-bin folder:
RemoveHandler .php
RemoveHandler .php5.6
RemoveHandler .php7.0
RemoveHandler .php7.2
RemoveHandler .php7.3
php_admin_value engine Off
FcgidMaxRequestLen 1073741824
The new host has the following entries for publichtml:
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php7.0
AddHandler fcgid-script .php7.2
AddHandler fcgid-script .php7.3
AddHandler fcgid-script .php7.4
FCGIWrapper /home/innovationday2019/fcgi-bin/php7.4.fcgi .php
FCGIWrapper /home/innovationday2019/fcgi-bin/php7.0.fcgi .php7.0
FCGIWrapper /home/innovationday2019/fcgi-bin/php7.2.fcgi .php7.2
FCGIWrapper /home/innovationday2019/fcgi-bin/php7.3.fcgi .php7.3
FCGIWrapper /home/innovationday2019/fcgi-bin/php7.4.fcgi .php7.4
and for cgi-bin:
RemoveHandler .php
RemoveHandler .php7.0
RemoveHandler .php7.2
RemoveHandler .php7.3
RemoveHandler .php7.4
php_admin_value engine Off
FcgidMaxRequestLen 1073741824
So why wouldnt all virtual hosts not serve any php ? I killed the first installation and setup a new virtual host and put in my filesystem and loaded my database and setup configuration files correctly, but no avail.
Best of all, i told Virtualmin to use PHP 7.3, but in apache server 7.2 is configured and in /home/domain.tld/etc i only find a php7.0 folder.
I would need to have it up and running on Monday. I am pretty sure, that this is something small to tweak, but it keeps me from finishing my work. I surfed around quite a lot, and tried all solutions which might be helping to solve this, but as i said before…
Yes, i also tried to set to a different execution mode, and back again, tried literally every possible configuration.
Update: The older server bears the option: Run CGI scripts as domain owner? which was being set to Yes. The new server doesn’t have that option …
This one makes me crazy.
Any advice please, perhaps someone can push me in the right direction.
Thanks and best
j_m
PS: When i reverted the new settings to the old settings, no avail. both are running on FCGId and the downloaded index.php is according the php version selected.