• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue .htaccess file does not apply if domain configured to use php-fpm, served by Apache

AndreP

New Pleskian
Ubuntu 14.04.4 LTS‬
12.5.30 Update #40
Apache Webserver,Service Reverse-Proxy-Server (nginx) not running

When setting a domain to use php 5.6.24 to execute as fpm htaccess files are ignored. Setting php to execute as fastcgi everything is working as expected.

I read https://kb.plesk.com/en/128156 saying It was fixed in Plesk 12.5 MU#23. Are there any extra steps to make this work?
 
Try to apply this fix manually:

  1. Download fixed domainVirtualHost file and extract:

    # wget http://kb.plesk.com/Attachments/kcs-63733/domainVirtualHost.zip
    # unzip domainVirtualHost.zip

  2. Backup original file, and replace it with downloaded:

    # mv /opt/psa/admin/conf/templates/default/domain/domainVirtualHost.php{,.backup}
    # cp ./domainVirtualHost.php /opt/psa/admin/conf/templates/default/domain/domainVirtualHost.php

  3. Reconfigure domain:

    # /usr/local/psa/admin/bin/httpdmng --reconfigure-domain <domain_name>
 
Thanks for your reply. I tried the fix, it did not solve my issue.

- I followed your steps and the behaviour did not change
- For a second try i replaced test.domain.com in the php file with <?php echo $VAR->domain->urlName ?> but no success

after going back to the original and then applying the fix again, a diff of /var/www/vhosts/system/domain/conf/httpd.conf and httpd.conf.bak did not show a difference. Is this the file that should be changed?

I forgt to mention the use of Lets encrypt extension for the domain and that the problem affects all domains of the Subscription.

I set up a new subscription for a new customer with 2 domains using Lets encrypt with php 5.6.24 fpm - and i can currently not reproduce the problem.
 
Back
Top