Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member vishwas's Avatar
    Join Date
    Feb 2004
    Location
    Front of PC
    Posts
    61

    Default Dont have permmision to edit php.ini

    Hello

    I dont have root access and i m trying to turn off some process via .htaccess but when i add those line i get 500 Internal server error.

    php_value magic_quotes_gpc 0
    php_value magic_quotes_runtime 0
    php_value magic_quotes_sybase 0

    And let me know how to turn off safe_more , registre_global off

    php ver.
    Copyright (c) 1997-2004 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with Zend Extension Manager v1.0.0, Copyright (c) 2003, by Zend Technologies
    with Zend Optimizer v2.1.0, Copyright (c) 1998-2003, by Zend Technologies

    WHM 9.9.9 cPanel 9.9.9-S15
    RedHat Enterprise 3 i686 - WHM X v3.1.0


    Thank you in advance

    Regards

  2. #2
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    Does the server run phpsuexec?

    If so , then you can't use php_value in .htaccess

    You need to create a file called php.ini and place it within each directory that you need to change options.

    All you need is the following

    php.ini

    register_globals = 0
    safe_mode = 0


    and any options as needed, same format as they appear in the servers main php.ini

    Your hosting company should be able to assist you further, if you need any help setting that up or your server isn't running phpsuexec.
    Last edited by DigitalN; 03-13-2005 at 01:39 AM.

  3. #3
    Member vishwas's Avatar
    Join Date
    Feb 2004
    Location
    Front of PC
    Posts
    61

    Default

    yes phpsuexec is enabeld on server .

    and m using cpanel not ensim.

    Regards,

  4. #4
    Member vishwas's Avatar
    Join Date
    Feb 2004
    Location
    Front of PC
    Posts
    61

    Thumbs up

    Thank you but that didnt work and i try to use like this and it worked

    register_globals = Off
    register_argc_argv = Off
    safe_mode = On
    magic_quotes_gpc = Off

    Cheers

Similar Threads & Tags
Similar threads

  1. php.ini and override default php.ini
    By areh in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-24-2009, 05:45 PM
  2. I need to edit global_setting php.ini [moved]
    By thewishbone in forum New User Questions
    Replies: 13
    Last Post: 11-22-2005, 08:18 PM
  3. How to edit php.ini ?
    By cLub2Share in forum New User Questions
    Replies: 2
    Last Post: 10-06-2005, 01:40 PM
  4. which php.ini to edit
    By netnameus in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-09-2005, 06:32 PM
  5. Can't edit php.ini
    By Chew in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-16-2004, 10:46 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube