Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    396

    Default php modification for register_globals

    with this new server I am unable to use modifications in the .htaccess to turn register_globals on or off.

    in my php.ini I have register_globals = Off but 1 website needs them On

    I keep getting a 500 error when I add php_flag register_globals on to the .htaccess file

    The php_flag register_globals on in the .htaccess works fine on my old server runing PHP4

    Is there something I missed in my php.ini ?
    -Albert

  2. #2
    Member linux7802's Avatar
    Join Date
    Dec 2007
    Posts
    224
    cPanel/Enkompass Access Level

    Root Administrator

    Wink Solution

    It could be possible that you are misspelled code in .htaccess file. Rename the .htaccess file and recreate the .htaccess filw with following content

    php_flag register_globals On

    If you are still facing the problem then it seems to be that your new server running PHPSUEXEC, this means PHP executes as the "real user". In this case remove any references to register_globals in your .htaccess files and create a file called php.ini in this file put the following:

    register_globals = On

    It will solve your problem
    Regards,
    G R Sonar
    cPanel Hosting Blog

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    396

    Default

    I really should have put this information in before but I've tried both the .htaccess method you mentioned and the php.ini.

    I have a php.ini file in the users Home /home/user/public_html that contains register_globals = On and at least there is no 500 page error as the .htaccess file gives but the website just gives a blank page still.
    -Albert

  4. #4
    Member linux7802's Avatar
    Join Date
    Dec 2007
    Posts
    224
    cPanel/Enkompass Access Level

    Root Administrator

    Post Solution

    In that case you need to check the server logs for your domain.

    Login into your server (ssh)

    [root@server ~]#tail -f /usr/local/apache/logs/error_log | grep yourdomain.com
    and copy and paste the error logs if you are not able to sort out it.
    Regards,
    G R Sonar
    cPanel Hosting Blog

Similar Threads & Tags
Similar threads

  1. PHPSuexec and Register_globals / php.ini?
    By Ralph9110 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-20-2007, 12:52 AM
  2. TIP: PHP 5.1.6 + phpsuexec + local php.ini (register_globals)
    By Bazer in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-13-2007, 03:25 PM
  3. PHP Version 4.4.2, register_globals ON php.ini no longer works!
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-02-2006, 04:06 PM
  4. HELP::::::register_globals is disabled in php.ini
    By serverptx in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 11-27-2005, 05:46 PM
  5. PHP -- Register_Globals
    By allenhui in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 08-04-2004, 11:16 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube