• 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.

AllowOverride All missing + php_auto_prepend_file not working

Michael Kittlitz

New Pleskian
Hello there,

after migration from Ubuntu 12.04 LTS to 14.04 LTS, both of which with Plesk 12.0.18 the Migration-Tool did warn me, that the directive 'AllowOverride All' within the vhosts.conf - files would not be allowed anymore.
So I remove these lines to migrate successfully.

Now we have the issue, that the command in .htaccess -> php_auto_prepend_file is ignored.

I did a lot of research upon this in the Apache 2.4.7 documentation it says that the AllowOverride-Directive would still be valid. But also the all the other Options turned on (AllowOverride AuthConfig Indexes FileInfo Limit Options) the sepecific and most important command in the .htaccess is still ignored.
The .htaccess file gets interpreted, as putting some rubbish into it like 'fsfvsfvsfv' leads successfully to a "500 Internal Server Error"-Result.

Nonetheless the php_auto_prepend_file is an important directive and I need to be able to turn it back on as it is used on several of our customers hostings.
And it's not used hosting-wide, it is used differently in differens subdirectories.

So a global setting in vhosts.conf will not help or do the job.

Why has this been disbabled and how can I fix this?

Help ASAP is appreciated.

-> Solved: The PHP-Version used was a FastCGI-Version, not the Apache-Module.
Changing this made everything work again.

Solution to auto_prepend_file

Go in PLESK-Admin-Panel, PHP-Settings and add to the Additional directives-Area these lines:
user_ini.filename = ".user.ini"
user_ini.cache_ttl = 180

create a .user.ini - file at the subdirectory in question and put in the following lines:
PHP:
auto_prepend_file = "/var/www/vhosts/domain.de/subdomains/some/httpdocs/incls/prepend.inc.php"

and there you have it.
 
Last edited:
Back
Top