hi guys,

i'm encountering this issues after in install and enable APC.

Warning: require_once(C:\Apache2.2\includes\bootstrap.inc) [function.require-once]: failed to open stream: No such file or directory in D:\WWWroot\drupal6\index.php on line 15

Fatal error: require_once() [function.require]: Failed opening required 'C:\Apache2.2\includes\bootstrap.inc' (include_path='.;C:\php5\pear') in D:\WWWroot\drupal6\index.php on line 15

can anyone please help?

thanks

edited by silverwing - changed forum

Comments

cog.rusty’s picture

For some reason, your PHP sets the current working directory to "C:\Apache2.2" instead of the directory of the running script "D:\WWWroot\drupal6".

So, require_once(".includes/bootstrap.inc") looks for "C:\Apache2.2\includes\bootstrap.inc" instead of "D:\WWWroot\drupal6\includes\bootstrap.inc".

I don't know why this is happening.

khaki’s picture

its weird indeed.. :(

ljxok2001’s picture

I got this issue too, no idea

khaki’s picture

i hope anyone could share some thoughts here... disabling my APC, things seems working... i don't know if it has something to do with my APC configuration.... :(

khaki’s picture

i'm doing some experiment with APC and tried restarted my apache server every time changes are made in APC configuration. now i the previous problem is not appearing but instead in return some messages like:

Fatal error: Call to undefined function db_set_active() in D:\WWWroot\drupal6\includes\bootstrap.inc on line 1416

Fatal error: Call to undefined function drupal_bootstrap() in D:\WWWroot\drupal6\index.php on line 16

what could this mean?

cog.rusty’s picture

What did you change?

These error messages are weird.

The first one seems to say that
- the file "includes/bootstrap.inc" was found and read
- the file "includes/database.inc", where function db_set_active() is defined, was not read.

Then, the second error seems to say that
- the file index.php was found and read
- the file "includes/bootstrap.inc", where function drupal_bootstrap() is defined, was not read(!), which seems to contradict the first one.

Make sure that you have apc.stat = "1", and also try apc.stat_ctime = "1".

onlyny001@gmail.com’s picture

Warning: require_once(C:\AppServ\www\moodle/lib/setup.php) [function.require-once]: failed to open stream: No such file or directory in d:\websites\chyuy\ciedc.com\wwwroot\moodle19\config.php on line 22

Fatal error: require_once() [function.require]: Failed opening required 'C:\AppServ\www\moodle/lib/setup.php' (include_path='.;C:\php5\pear') in d:\websites\chyuy\ciedc.com\wwwroot\moodle19\config.php on line 22
please help me