Bad include_path statment in /scripts/phpini

nitromax

Well-Known Member
Feb 12, 2002
189
0
316
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:
 

tomkoch

Member
May 23, 2003
21
0
151
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:
 

sexy_guy

Well-Known Member
Mar 19, 2003
847
0
166
Originally posted by tomkoch
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:
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:
 

tomkoch

Member
May 23, 2003
21
0
151
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:
 

tomkoch

Member
May 23, 2003
21
0
151
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:
 

nitromax

Well-Known Member
Feb 12, 2002
189
0
316
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:
 

carmatec

Member
Mar 9, 2003
18
0
151
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: