Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    84

    Default PHP.INI Lost

    Something has messed up my php.ini could someone paste cpanel php.ini or email it to me at admin@psychodreams.com ASAP

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Have you tried running:

    /scripts/phpini
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Nov 2003
    Location
    England, UK
    Posts
    133

    Default

    What on earth, that file cant just go missing like that

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    Ayr, North Queensland, Australia
    Posts
    328

    Default

    if youve got zend installed theres a backup in /usr/local/Zend/etc or something. I think its called php.ini-zendopt-bak or something similar.

    Regards,
    Brent

    Talk at cPanel IRC
    cPanel IRC Logs (Publicly available) @ My Site

  5. #5
    Member
    Join Date
    Apr 2004
    Posts
    84

    Default Hmm

    OK I seem to have found the problem can someone give me the include path for the php.ini
    This is not using zend
    I know there are several location for php ini's could i get all of them so i can compare that seems to be the only problem im haveing now
    i beleive the one in /usr/local/lib is the one giving me the problem

    This is the error im getting right now
    For installing phpnuke and they worked before on new installs


    Warning: main(language/lang-.php): failed to open stream: No such file or directory in /home/satell/public_html/mainfile.php on line 187

    Warning: main(): Failed opening 'language/lang-.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/satell/public_html/mainfile.php on line 187

    Warning: head(themes//theme.php): failed to open stream: No such file or directory in /home/satell/public_html/header.php on line 31

    Warning: head(): Failed opening 'themes//theme.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/satell/public_html/header.php on line 31

    Fatal error: Call to undefined function: themeheader() in /home/satell/public_html/header.php on line 51
    Last edited by psychodreams; 01-24-2005 at 12:28 AM.

  6. #6
    Member
    Join Date
    Nov 2004
    Posts
    6

    Default

    In shell type at prompt : slocate php.ini* and it will give you all the copies and backup copies around on your system.
    If you get an error about database do an : updatedb first en then execute the command mentioned before.

    Hope this will help you on your quest.

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. Ive lost my php.ini
    By Chriz1977 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-22-2009, 02:53 AM
  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. 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
  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