1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Rules on vhost.conf not working

Discussion in 'Plesk for Linux - 8.x and Older' started by Teschio, Jan 26, 2006.

  1. Teschio

    Teschio Guest

    0
     
    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!
     
  2. Shocktale

    Shocktale Guest

    0
     
    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.
     
  3. Teschio

    Teschio Guest

    0
     
    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.
     
Loading...