Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    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
    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
    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
    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
    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 04:43 PM.
    regards,
    George

  6. #6
    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
    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 & Tags
Similar threads

  1. Individual php.ini files for PHP FCGI and PHP CGI
    By Miraenda in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-22-2011, 08:55 AM
  2. Cant access php.ini file, is there some cPanel restrictions?
    By condoace in forum New User Questions
    Replies: 2
    Last Post: 03-02-2010, 09:32 PM
  3. 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
  4. php.ini and SSH/Shell Access
    By capricot in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-15-2008, 02:42 AM
  5. Can regular cpanel users access php.ini?
    By ejoa in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-09-2003, 02:20 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube