• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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