Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    113

    Default PHP -- Register_Globals

    I have change Register_Globals in the /etc/php.ini .
    Also restart httpd but the Register_Globals still don't work.
    What i need to do to turn it on?

  2. #2
    Member
    Join Date
    Sep 2003
    Posts
    66

    Default

    are you using phpsuexec?

  3. #3
    Member
    Join Date
    Jan 2004
    Posts
    248

    Default

    create teh file

    <?php
    phpinfo();
    ?>

    and save it in your webspace and call your browser. Make sure you name it .php something.

    Look for the php.ini path in the first part of the page output.

  4. #4
    Member ryno267's Avatar
    Join Date
    Mar 2004
    Location
    Az, USA
    Posts
    214

    Default

    i'm having same problem...

    any ideas?

    and what am i looking for in the phpinfo() file?

    i'm at usr/local/lib/php.ini and my globals are ON and have been.
    This problem just started happening recently - and i never changed anything with server..

    HELP: lol

    rYno
    Last edited by ryno267; 03-29-2004 at 01:09 PM.

  5. #5
    Member ryno267's Avatar
    Join Date
    Mar 2004
    Location
    Az, USA
    Posts
    214

    Default

    EDIT...

    Just installed Zend Optimizer and it moved my php.ini to usr/local/Zend/etc/php.ini but everything is still on and it doesnt work.

    in my phpinfo() file it says
    "allow_url_fopen | On | On"
    but when trying to use any script that includes another file...
    like this error comes up:
    "Warning: fopen(config.php): failed to open stream: No such file or directory in /home/myusername/public_html/script/setup.php on line 990"

    BUT there in fact IS the config.php file and it IS chmod 777

    something is wrong with server to where it won't allow any chmodding or something
    I'm lost...

    need help

  6. #6
    Member
    Join Date
    Sep 2003
    Posts
    66

    Default

    let me ask it again,
    are you using phpsuexec?

  7. #7
    Member ryno267's Avatar
    Join Date
    Mar 2004
    Location
    Az, USA
    Posts
    214

    Default

    as far as I know.... NO....

    Am i right by saying this?... the problem i'm having is a php.ini directory path problem?

    IDK.. but the more i read about this phpsuexec... the more of a headache it sounds. I think i'm glad I don't have it on there as 99% of people seem to hate it if their host has it...

  8. #8
    Member
    Join Date
    Jan 2004
    Posts
    248

    Default

    phpsuexec is not a headace if you understand it.

    No php script can have execute permissions for example. All phpscripts should be owned by the account owner and not by nobody.

    no php_value entries in the .htaccess file. Instead create a local php.ini file in the same folder as the .htaccess file and put the php_value entries in there.

    The reason to look at the php.ini path in phpinfo is to make sure you know where php is lookig for its config file. As you have noted after installing zend the php.ini file is moved from its default and expected location but if the new path is listed in phpinfo then things are ok as far as where its located.

  9. #9
    Member
    Join Date
    Sep 2003
    Posts
    66

    Default

    note that if you use php as a apache module you have to restart apache (httpd restart) after changing php.ini

  10. #10
    Member ryno267's Avatar
    Join Date
    Mar 2004
    Location
    Az, USA
    Posts
    214

    Default

    have plenty of times... i know that though... thanks... still doesnt solve problem....

    this thing is killin me...

  11. #11
    Member
    Join Date
    Jan 2004
    Location
    financial capital
    Posts
    32

    Default

    don't die. software can't kill, it can only annoy.
    Linux reliability is due to a professionally hardened OS.
    is your OS hardened or is it just your head that is?

  12. #12
    Member
    Join Date
    Feb 2004
    Posts
    6

    Default

    we've had similar problems where changes made in the php.ini file shown by phpinfo do not take effect after a httpd restart - phpsuexec ian't the culprit as it's not enabled, but it is strange.

Similar Threads & Tags
Similar threads

  1. php modification for register_globals
    By asmithjr in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-22-2008, 06:44 PM
  2. PHPSuexec and Register_globals / php.ini?
    By Ralph9110 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-20-2007, 01:52 AM
  3. 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, 04:25 PM
  4. 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, 05:06 PM
  5. HELP::::::register_globals is disabled in php.ini
    By serverptx in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 11-27-2005, 06:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube