I'm new to Drupal - I installed it a few days ago, had it running OK, but wanted to wipe it out and start fresh. So I deleted all the files from the site, deleted the mySQL db and user, and reuploaded all the files, went through the install again. It installs "just fine", but when I click the "Create Content" link, I get the following:

Warning: main(./includes/bootstrap.inc) [function.main]: failed to open stream: No such file or directory in /home/therap3/public_html/dibbsolutions/index.php on line 12

Fatal error: main() [function.require]: Failed opening required './includes/bootstrap.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/therap3/public_html/dibbsolutions/index.php on line 12

----------------------------------------------------
Any ideas how to fix this? I did look and the bootstrap.inc file does exist, not sure what else to check.

-Thanks!

Comments

dibbd’s picture

I also wanted to say that I checked the execute bit on the directories and they were selected, at least on the includes directory.

cog.rusty’s picture

Does the includes/bootstrap.inc file look undamaged? (for example, not zero lenght).

About the "execute" bit (and the "read" bit) of the includes directory, I guess you mean the third digit in 755? (world readable, so that the web server can read it).

The only other case of a ./something ... failed to open stream error that I can think is that the script which tried to do this was not in the right working directory. Are there any symlinks involved? (because in some cases PHP handles symlinks incorrectly).

gpk’s picture

>The only other case
Or perhaps if the current working directory . is not properly initialized for some obsure reason. You could try printing it out from index.php just to make sure.

gpk
----
www.alexoria.co.uk

dibbd’s picture

The includes/bootstrap.inc file looks OK, as far as I can tell, it's 36 KB.

The includes directory was 755, I changed it to 777 to see if it mattered, no difference.

I don't know what symlinks are, so don't know how to answer that question.

And this is when I try to install Drupal 6.9, but Drupal 5.15 works OK.

This is my versions:
PHP version 4.4.9
MySQL version 5.0.51a

I should be good as far as the PHP / MySQL goes right?

And I swear I had Drupal 6 working a few days ago before I wiped it out.

cog.rusty’s picture

These seem OK.

Run a phpinfo() in Drupal's directory and check the report to see if there is any mention of "safe_mode" or "open_basedir" in it.

fear4me’s picture

try to change your cronjob like:

* * * * * cd /home/therap3/public_html/dibbsolutions; /usr/local/bin/php -f cron.php

Where the path of /usr/local/bin/php may vary. The trick is to change dir to the appropriate folder and run the cron from there. Your crontab runs from another folder and in the cron.php is an include like include("file.php"). This is a relative path, so he wouldn't find the specified file.