Community Forums
Connect with us on LinkedIn
  
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member mahdionline's Avatar
    Join Date
    Oct 2003
    Posts
    127

    Default php.ini

    Hi

    where is main php.ini file located ?

    Regard
    Mahdionline

  2. #2
    Member
    Join Date
    Jun 2004
    Location
    Columbus, OH
    Posts
    113

    Default

    locate php.ini

    Also for which version of php.

    Thanks
    -Seth

  3. #3
    Member mahdionline's Avatar
    Join Date
    Oct 2003
    Posts
    127

    Default

    Quote Originally Posted by sjackson909
    locate php.ini

    Also for which version of php.

    Thanks
    -Seth
    I do this command but i find many php.ini file,
    where is main php.ini file located ?

    Regard
    Mahdionline

  4. #4
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    /usr/local/lib

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    not necesarily.


    create a file called phpinfo.php, and write this in it:


    <?php
    phpinfo();
    ?>

    save it, then open a browser and to to the location of the file. (ie if you saved the file in /home/username/www/phpinfo.php

    go to http://www.domain_of_username/phpinfo.php


    first screen should present the php.ini path

  6. #6
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Quote Originally Posted by jester.ro
    not necesarily.
    Care to place a bet?

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. 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
  3. Updating cpanel PHP changed main server php.ini
    By 4u123 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-06-2009, 02:46 PM
  4. Question about PHP security, setting up multiple php.ini files?
    By sirbrent in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-01-2008, 10:58 AM
  5. Disabling local php.ini while php still runs in SUExec mode
    By gizmoh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2005, 11:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube