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.

Bad include_path statment in /scripts/phpini

Discussion in 'General Discussion' started by nitromax, Aug 12, 2003.

  1. nitromax

    nitromax Well-Known Member

    Joined:
    Feb 12, 2002
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    16
    When you run the /scripts/phpini file it creates a php.ini file with a bad include_path statement. It creates this:

    include_path = "/usr/local/lib/php:/usr/lib/php" ; UNIX: "/path1:/path2"


    Notice that the example looks the same way. But here is what a correct include_path looks like:

    include_path = ".:/usr/local/lib/php:/usr/lib/php" ; UNIX: "/path1:/path2"


    It fixed a bunch of errors that looked like this...


    Warning: main(include/config/config.locale.php): failed to open stream: No such file or directory in /home/ewebstor/public_html/billing/include/functions.inc.php on line 83

    Warning: main(): Failed opening 'include/config/config.locale.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php:/usr/local/bin/php:/usr/bin/php') in /home/ewebstor/public_html/billing/include/functions.inc.php on line 83


    Just passing it on for future reference...

    cPanel.net Support Ticket Number:
     
  2. tomkoch

    tomkoch Member

    Joined:
    May 23, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    thanks for the info:
    regarding the last part of the statement UNIX: "/path1:/path2"

    this is missing from my php.ini

    could you tell me what should be there?

    Thanks
    T

    cPanel.net Support Ticket Number:
     
  3. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    You dont need UNIX: "/path1:/path2". That is just a comment at the end of the line. Notice it has a ; in front of it? Thats the end of the line and anything after ; is considered a comment eg ; UNIX: "/path1:/path2".

    cPanel.net Support Ticket Number:
     
  4. tomkoch

    tomkoch Member

    Joined:
    May 23, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    sounds good then, my php.ini file is then correct. However, I get exactly the errors that you described. Failed to open stream...blah...blah
    any thoughts of where I should look?
    T

    cPanel.net Support Ticket Number:
     
  5. tomkoch

    tomkoch Member

    Joined:
    May 23, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    here's my error log.....sorry it's long...:(

    [13-Aug-2003 09:17:44] PHP Warning: mkdir(/cocktailssextoys/): Permission denied in /home/trkhost/public_html/sitebuilder/save.php on line 1447
    [13-Aug-2003 09:17:44] PHP Warning: chmod(): No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1448
    [13-Aug-2003 09:17:44] PHP Warning: fopen(/cocktailssextoys//index.html): failed to open stream: No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1529
    [13-Aug-2003 09:17:44] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1530
    [13-Aug-2003 09:17:44] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1531
    [13-Aug-2003 09:17:44] PHP Warning: chmod(): No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1532
    [13-Aug-2003 09:17:44] PHP Warning: fopen(/cocktailssextoys//main.html): failed to open stream: No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1623
    [13-Aug-2003 09:17:44] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1624
    [13-Aug-2003 09:17:44] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1625
    [13-Aug-2003 09:17:44] PHP Warning: chmod(): No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1626
    [13-Aug-2003 09:32:17] PHP Warning: mkdir(/cocktailssextoys/): Permission denied in /home/trkhost/public_html/sitebuilder/save.php on line 1447
    [13-Aug-2003 09:32:17] PHP Warning: chmod(): No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1448
    [13-Aug-2003 09:32:17] PHP Warning: fopen(/cocktailssextoys//index.html): failed to open stream: No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1529
    [13-Aug-2003 09:32:17] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1530
    [13-Aug-2003 09:32:17] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1531
    [13-Aug-2003 09:32:17] PHP Warning: chmod(): No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1532
    [13-Aug-2003 09:32:17] PHP Warning: fopen(/cocktailssextoys//main.html): failed to open stream: No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1623
    [13-Aug-2003 09:32:17] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1624
    [13-Aug-2003 09:32:17] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1625
    [13-Aug-2003 09:32:17] PHP Warning: chmod(): No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1626
    [13-Aug-2003 09:34:57] PHP Warning: mkdir(/cocktailssextoys/): Permission denied in /home/trkhost/public_html/sitebuilder/save.php on line 1447
    [13-Aug-2003 09:34:57] PHP Warning: chmod(): No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1448
    [13-Aug-2003 09:34:57] PHP Warning: fopen(/cocktailssextoys//index.html): failed to open stream: No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1529
    [13-Aug-2003 09:34:57] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1530
    [13-Aug-2003 09:34:57] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1531
    [13-Aug-2003 09:34:57] PHP Warning: chmod(): No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1532
    [13-Aug-2003 09:34:57] PHP Warning: fopen(/cocktailssextoys//main.html): failed to open stream: No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1623
    [13-Aug-2003 09:34:57] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1624
    [13-Aug-2003 09:34:57] PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/trkhost/public_html/sitebuilder/save.php on line 1625
    [13-Aug-2003 09:34:57] PHP Warning: chmod(): No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1626
    [13-Aug-2003 09:37:34] PHP Warning: mkdir(/cocktailssextoys/): Permission denied in /home/trkhost/public_html/sitebuilder/save.php on line 1447
    [13-Aug-2003 09:37:34] PHP Warning: chmod(): No such file or directory in /home/trkhost/public_html/sitebuilder/save.php on line 1448
    ...............................................

    cPanel.net Support Ticket Number:
     
  6. nitromax

    nitromax Well-Known Member

    Joined:
    Feb 12, 2002
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    16
    The first error message says this:

    PHP Warning: mkdir(/cocktailssextoys/): Permission denied

    If it can't make the directory, (mkdir), then your program apparently doesn't have the permissions to do so. You might start looking from that angle.

    My further guess is that since it couldn't make that directory, the rest of the commands it was running (chmod, fopen, fwrite, fclose) wouldn't work because the directory was never created in the first place. That's why it then shows in the error messages following that first one that there is no such file or directory. I believe if the program had permissions to create that initial directory you may not have gotten the rest of the error messages you posted.

    Just thinking outloud...

    cPanel.net Support Ticket Number:
     
  7. carmatec

    carmatec Member

    Joined:
    Mar 9, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    include path error

    Even I had the same problem ..


    Try to include a "." also with the path,

    include_path = ".:/usr/local/lib/php:/usr/lib/php" ;


    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page