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

php_admin_flag engine off for directory in vhost.conf

NeilWalden

New Pleskian
I'm trying to disable php within an uploads directory (/uploaded/tmp) on one of my sites but nothing I have tried seems to work, I can still run the php files via my browser, I have the following in my vhost_ssl.conf:

Code:
<Directory /var/www/vhosts/dev.mydomain.com/httpdocs>
  Options +FollowSymLinks
  RewriteEngine On
</Directory>
<Directory /var/www/vhosts/dev.mydomain.com/httpdocs/uploaded/tmp>
        <IfModule sapi_apache2.c>
                php_admin_flag engine off
        </IfModule>
        <IfModule mod_php5.c>
                php_admin_flag engine off
        </IfModule>
</Directory>

Any suggestions greatly appreciated, I've searched google and here without any luck.

p.s. I'm running the following after changing the vhost file to load the changes

Code:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain dev.mydomain.com
/etc/init.d/httpd reload
 
Total, total guess, but it is possible that that setting can't be configured via a directory setting. There's a page somewhere on the php website that lists what can and can't be set in various ways. If you still can't get it to do what you want, see if you can find the page I'm talking about, just in case I'm right about this (and I'm not confident that I am).
 
Back
Top