1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help with custom PHP.ini syntax

Discussion in 'Site & Server Administration' started by kalseo, Jul 12, 2010.

  1. #1
    Hi DP friends,

    One of the websites that I currently working require safe_mode_gid = On . The only way to enable this option is through creating a custom php.ini file.

    Can anybody help me with syntax of creating the file?

    Kind regards

    Kal
     
    kalseo, Jul 12, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    A custom php.ini under an account will only work in case SuPHP is enabled on the server else it's of no use. If server is SuPHP enabled, just copy the server side php.ini under the domain and modify the values of the directives. The syntax will remain as it is.

    If SuPHP is not enabled on the server, you need to place the php directives in a .htaccess file of the domain. Create a .htaccess file under the account and place the following

    'x' is either 0 or 1 to enable/disable it.

    There is no need to restart any service in either of the conditions above.
     
    madaboutlinux, Jul 13, 2010 IP
  3. kalseo

    kalseo Active Member

    Messages:
    733
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Settings in .htaccess file will not gonna work, I just need custom php.ini . The problem with this hosting is that I don't have root access.
     
    kalseo, Jul 13, 2010 IP
  4. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #4
    if you don't have root access, just create a php.ini in your account via Ftp OR File Manager and put the syntax as it is

    'x' is either 0 or 1 to enable/disable it.
     
    madaboutlinux, Jul 15, 2010 IP
    kalseo likes this.
  5. kalseo

    kalseo Active Member

    Messages:
    733
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Thanks mate, I already fix it!
     
    kalseo, Jul 15, 2010 IP