• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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