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.

PHP.ini

Discussion in 'General Discussion' started by jmr, Sep 21, 2002.

  1. jmr

    jmr Member

    Joined:
    Jul 4, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hi everyone.

    Got a problem in that when i run a phpinfo on my server it comes up with the php.ini file being located at

    /usr/local/Zend/etc/php.ini

    However this location does not exist.

    So a search on the server for the php.ini file shows two files

    /etc/php.ini

    and

    /usr/local/lib/php.ini

    so what do you think.....am i going to have to recompile php?
     
  2. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    16
    I would recompile PHP.
     
  3. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [quote:4899b35022][i:4899b35022]Originally posted by jmr[/i:4899b35022]

    Got a problem in that when i run a phpinfo on my server it comes up with the php.ini file being located at

    /usr/local/Zend/etc/php.ini

    However this location does not exist.

    So a search on the server for the php.ini file shows two files

    /etc/php.ini

    and

    /usr/local/lib/php.ini :

    so what do you think.....am i going to have to recompile php?

    [/quote:4899b35022]
    You could try to symlink /usr/local/Zend/etc/php.ini to /usr/local/lib/php.ini

    ln -s /usr/local/lib/php.ini /usr/local/Zend/etc/php.ini
     
  4. jmr

    jmr Member

    Joined:
    Jul 4, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    would that work

    how would that work as the zend directory does not actually exist....so where is php compiled to?
     
  5. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [quote:3613407427][i:3613407427]Originally posted by jmr[/i:3613407427]

    how would that work as the zend directory does not actually exist....so where is php compiled to?[/quote:3613407427]
    Php is obviously functional on your server or else you wouldn't be able to see the phpinfo.

    The location of php.ini has little to do with the php install directory. So you can try:

    mkdir -p /usr/local/Zend/etc

    ln -s /usr/local/lib/php.ini /usr/local/Zend/etc/php.ini

    All you're doing here is to show php the path to the ini file.

    If that doesn't work let us know.
     
Loading...

Share This Page