Adding PHP modules?

Discussion in 'Linux VPS/Dedicated - cPanel' started by TVallier, Mar 20, 2007.

  1. TVallier

    TVallier New Member

    Hi...

    Very novice question. How do I add a new PHP module? I don't know where the php.ini is.

    Thanks.
     
  2. khiltd

    khiltd New Member

    Code:
    locate php.ini
     
  3. Nneel

    Nneel New Member

    hmm...i was just trying the command
    i got the following error:

    what would be reason?
     
  4. Dan

    Dan Moderator

    Easiest way to locate the php.ini that is being used is to do a phpinfo. Just create a file that has this in it:

    Code:
    <?php
    
    phpinfo ()
    
    ?>
    
    And save it as a php file (phpinfo.php for instance). Then upload it to your website and point your browser to it.

    Locating this file is not going to allow you to add a php module though. Under software in WHM is Update Apache. Once there click the button to load the previous config and you will see what was previously set up.

    Hope that helps

    Dan
     
  5. jaypeesmith

    jaypeesmith New Member

    The "locate" command queries a database to search for files. It appears that this is the first time you're attempting a search and you're getting the message that this database is not populated. If you run "updatedb" (no quotes), this will populate the database with what files are currently on your system. You'll need to run this command from time to time to make sure that this captures changes to your system.
     
  6. TVallier

    TVallier New Member

    So it turned out to be an apache module needed.

    Directions for others:

    Log in to WHM.
    Under 'Software' on the left bar, click on 'Apache Update'
    Check the boxes you need.
    Click 'Start Build'
    Grab a coffee (It's a bit of a wait)

    Enjoy! :)
     

Share This Page