• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Issue is there a work around for php_flag variable in htaccess for nginx

larryk

Regular Pleskian
hello,

I have some old software that I will be getting rid of, but until then:

the htaccess file (located in domain.com/file) is required to have this in it:
php_flag session.auto_start 0

I have Smart static files processing turned off.
FastCGI application served by Apache.
Nginx is installed

basically I get Internal Server Error, just going to the doamin.com/file/ page
[core:alert] /var/www/vhosts/domain.com/httpdocs/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration, referer: https://domain.com/file/

IF I REMOVE this 'php_flag session.auto_start 0', it works.
BUT Then I can't login, because the software needs it :(

Maybe I'll turn off nginx for this one domain?
unless you know of a work around?

thanks
 
Last edited:
Hi larryk,

consider to add in your (sub)domain - specific PHP - Settings ( Home > Subscriptions > (sub)YOUR-DOMAIN.COM > PHP Settings ):

Code:
session.auto_start = "0"

or

session.auto_start = off

or consider to adjust your settings in your ".htaccess" - file with:
Code:
AddType x-mapp-php5 .php

    # for PHP 4 and apache 1
    <IfModule mod_php4.c>
        php_value magic_quotes_gpc 0
        php_value register_globals 0
        php_value session.auto_start 0
    </IfModule>

    # for PHP 4 and apache 2
    <IfModule sapi_apache2.c>
        php_value magic_quotes_gpc 0
        php_value register_globals 0
        php_value session.auto_start 0
    </IfModule>

    # for PHP 5 and apache 1 / 2
    <IfModule mod_php5.c>
        php_value magic_quotes_gpc 0
        php_value register_globals 0
        php_value session.auto_start 0
    </IfModule>
 
Back
Top