Results 1 to 7 of 7

Thread: Access PHP.ini

  1. #1
    Registered Member
    Join Date
    Feb 2008
    Posts
    6

    Default Access PHP.ini

    Hi,

    Bit of a newbie with regards to CPanal and WHM. How do I access my php.ini file if it is stored in /usr/local/lib/php.ini?

    Thanks,

    H.

  2. #2
    Registered Member gtgeorge's Avatar
    Join Date
    Feb 2007
    Posts
    89

    Default

    Is this your server or one you have rented? If you are renting a hosting account you will only be able to make an override php.ini file for use on your sites.
    regards,
    George

  3. #3
    Registered Member
    Join Date
    Feb 2008
    Posts
    6

    Default

    Hey gtgeorge, thanks for the quick reply.

    I have a virtual miniserver which has ssh access and I can run commands (not sure how though! ).


    However, I am fine on Windows, but a complete novice with *nix. I suppose I need to know how to run commands first.

    Never mind, I appreciate that this is quite an ambiguous question. I will ask their support team if they can shed any light on what I need to/can do.

    Thanks again for your time. I am sure with practice I will be able to master this *nux malarky!

    Jamie.

  4. #4
    Registered Member
    Join Date
    Feb 2008
    Posts
    6

    Default

    Thank you for the help.

    I will login and see how to lauch the equivalent of cmd prompt in my WHM control panel and try running the command to see what I get.

    Thanks again - I appreciate your help as I am out on a limb here,

    Jamie.

  5. #5
    Registered Member gtgeorge's Avatar
    Join Date
    Feb 2007
    Posts
    89

    Default

    If you wish to edit the file, you can use

    nano /usr/local/lib/php.ini

    Might want to type nano --help first to make sure you can navigate the editor first.

    EDIT: You may also make changes to the php.ini under Service Configuration>>PHP Configuration Editor in WHM
    Last edited by gtgeorge; 03-20-2008 at 05:43 PM.
    regards,
    George

  6. #6
    Registered Member
    Join Date
    Apr 2007
    Posts
    144

    Default

    hi,
    some new compile ea3 /usr/local/php4/lib/php.ini

    create new php file

    <?
    phpinfo();
    ?>

    upload your server and find php.ini directory path name.

    regards,

  7. #7
    Registered Member
    Join Date
    Feb 2008
    Posts
    6

    Default

    Thanks for the reply. I have gained access to root now via SSH and can now edit the php.ini file.

    Thanks for taking the time to reply for me.

    Jamie.

Similar Threads

  1. Replies: 4
    Last Post: 07-31-2013, 09:10 AM
  2. Replies: 1
    Last Post: 06-28-2013, 12:18 PM
  3. Cant access php.ini file, is there some cPanel restrictions?
    By condoace in forum General Discussion
    Replies: 2
    Last Post: 03-02-2010, 10:32 PM
  4. php.ini and SSH/Shell Access
    By capricot in forum General Discussion
    Replies: 1
    Last Post: 03-15-2008, 03:42 AM
  5. Can regular cpanel users access php.ini?
    By ejoa in forum General Discussion
    Replies: 3
    Last Post: 08-09-2003, 03:20 AM
bargain