I have the test.pl website and the hosting.test.pl subdomain. test.pl supports hosting.test.pl. I changed DocumentRoot hosting.test.pl to test.pl and activated Let's Encrypt for hosting.test.pl . Code: DocumentRoot /var/www/clients/client40/web52/web <Directory /var/www/clients/client40/web52/web> Options +Includes +FollowSymlinks +Indexes AllowOverride All Require all granted </Directory> Everything works fine, but hosting.test.pl shows the PHP 5.6 version and the PHP 7.1 version for the subdomain is set in ISPconfig. PHP 7.1 is also enabled for test.pl. Why in this case, hosting.test.pl uses PHP 5.6? How to enable PHP 7.1 for subdomain?
Changing a document root in that way can not work as each website runs under a different user. Add the second domain as aliasdomain or subdomain to the website instead of changing the document root or use a vhost alias- or subdomain if you have to specify a different PHP version than the one of the main website.
It works, but if I enable Let's Encrypt, the certificate works, but the PHP version shows 5.6. If I turn off Le's Encrypt, it works and shows the PHP version 7.1.
It does not work, otherwise PHP and Let's encrypt would be working. See post #2 on how to solve the issues.
Oki, I added as an alias. The test.pl domain has its own external certificate. How to run Let's Encrypt certificate on hosting.test.pl?
If you need a separate SSL cert, use a vhost subdomain or vhost aliasdomain instead of a normal aliasdomain. You can enable vhost sub- and alias domains under System > Interface > Main config.