The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

View PHP.ini

Discussion in 'General Discussion' started by lazersam, Nov 14, 2003.

  1. lazersam

    lazersam Member

    Joined:
    Aug 26, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Hi all
    Me again asking newbie questions :)

    Can someone tell me in laymans terms, how I can access and view the PHP.ini file on my dedicated server?

    Thanks

    Lawrence.
     
  2. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    First you need to know where the file(s) are.

    find / -name php.ini -print
    will provide the location of the file(s), depending on how you have it compiled.
    Now you know the location of the file.

    I personally use VI so I would do a view filename to view the file.
     
  3. lazersam

    lazersam Member

    Joined:
    Aug 26, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Thanks Albert

    I fired up SecureCRT and typed in what you said and got this response,

    /etc/php.ini
    /usr/lib/php.ini
    /usr/local/lib/php.ini
    /usr/local/cpanel/3rdparty/etc/php.ini
    /usr/local/cpanel/3rdparty/lib/php.ini
    /home/installd/buildapache/php-4.3.2/pear/tests/php.ini
    /home/cpapachebuild/buildapache/php-4.3.3/pear/tests/php.ini

    Please can you tell me how I can view it now I know where it is? The thing is I have no idea how to navaigate the files on my dedicated server. My only interface with it is through the Web Host Manager. Do I need some other software? Sorry to sound so dumb!

    Regards,

    Lawrence
     
  4. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    to view you use either VI or PICO
    type this

    pico /etc/php.ini

    this will let you view the /etc/php.ini file. So you could do this for each of the files in the output.
     
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    One more thing, if you just want to see the contents (and don't need to edit anything) you can create a file called phpinfo.php and save it with the following contents:

    <?php
    phpinfo()
    ?>

    And upload that to your public_html folder. View it at
    http://www.yourdomain.com/phpinfo.php

    ;)
     
  6. lazersam

    lazersam Member

    Joined:
    Aug 26, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Thanks Guys that help me alot :)

    Lawrence.
     
Loading...

Share This Page