Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on modifying PHP options in the VPS & Dedicated forum
In my VPS, where is my php.ini file located? and my httpd.conf? I did a locate php.ini from a shell prompt, but found more then ...

  1. #1
    JPC Member bubazoo's Avatar
    Join Date
    May 2006
    Location
    Warsaw, Indiana
    Posts
    33

    modifying PHP options

    In my VPS, where is my php.ini file located?
    and my httpd.conf?

    I did a
    locate php.ini

    from a shell prompt, but found more then 1 copy, and I don't know which one its supposed to be?

    I'd like to disable an option thats currently on, for security purposes

    I have a linux VPS starter, with centOS 4.2 as the OS it says, with cpanel/WHM.

    thanks
    tcoburn.com -- personal site
    crohnsdaily.com -- Discussion Forum

  2. #2
    consultant Andre's Avatar
    Join Date
    Apr 2005
    Posts
    1,155
    The best way to find out is to create a PHP file with this code in it:

    PHP Code:
    <? phpinfo?>
    Then open that script in your browser and it'll show you a lot of details, including the path of the php.ini that's being used.

    By the way: most likely all the php.ini files you found are symlinks to the same file.
    Andre van Vliet

    DEHE.com - Definition of Hosting Experts

  3. #3
    JPC Guru
    Join Date
    Oct 2005
    Posts
    265
    Quote Originally Posted by Andre
    Note - hm for some reason it won't parse properly when using the < ? and ? > symbols - but you probably know how that works
    Hi Andre,

    Is that because you have a space between the "<" and the "?"? Or you may have shortcode's turnd off.

    It should be
    PHP Code:
    <?php ... ?>
    Paul

  4. #4
    consultant Andre's Avatar
    Join Date
    Apr 2005
    Posts
    1,155
    Ah good point, I should have used [ php ] instead of [ code ]

    Thanks about that
    Andre van Vliet

    DEHE.com - Definition of Hosting Experts

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •