• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Rules on vhost.conf not working

T

Teschio

Guest
Hi to all,
I'd like to switch register_globals to on in one of my domains...

i proceed like this:
1)Create a file
/var/www/vhosts/domain.com/conf/vhost.conf

2)Type inside :
<Directory /var/www/vhosts/domain.com/httpdocs>
php_flag register_globals on
</Directory>

3)Run the command
/usr/local/psa/admin/bin/websrvmng -u --vhost name=domain.com

4)Restart httpd

The problem is that in my phpinfo() register_globals are still switched to off...

Can you help me please?
Thanks you all!
 
Hi

You must put this line in:

php_admin_flag register_globals on

and update it with the commands:

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.com

and

/etc/init.d/apache2 reload

And it works.
 
Thank you! It worked!!!

What are differencies between
/usr/local/psa/admin/bin/websrvmng -u --vhost name=domain.com
and
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.com
???

Which is the command to remove from "websrvmng" a domain?
Thank you.
 
Back
Top