warning "failed to open stream" when moving drupal site to a new host

rougevert - May 25, 2009 - 20:38

Hello,
we got a big trouble when moving a drupal site to a new host. all worked well on the former one, but with the migration we got the message :

* warning: include_once(./sites/all/modules/active_tags/active_tags.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/active_tags/active_tags.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/active_tags/active_tags_popular.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.

* warning: include_once() [function.include]: Failed opening './sites/all/modules/active_tags/active_tags_popular.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/admin_menu/admin_menu.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/admin_menu/admin_menu.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/cck/content.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/cck/content.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/ctools/views_content/views_content.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/ctools/views_content/views_content.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/i18n/i18nblocks/i18nblocks.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/i18n/i18nblocks/i18nblocks.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/i18n/i18ncontent/i18ncontent.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/i18n/i18ncontent/i18ncontent.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/imageapi/imageapi_gd.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/imageapi/imageapi_gd.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/imagefield/imagefield.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/imagefield/imagefield.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/location/location.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/location/location.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/location/location_node.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/location/location_node.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/location/location_user.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/location/location_user.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/og_forum/og_forum.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/og_forum/og_forum.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once(./sites/all/modules/token/token.module) [function.include-once]: failed to open stream: Permission denied in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: include_once() [function.include]: Failed opening './sites/all/modules/token/token.module' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/attac2/www/includes/bootstrap.inc on line 611.
* warning: opendir(sites/all/themes/acquia_marina/images) [function.opendir]: failed to open dir: Permission denied in /home/attac2/www/includes/file.inc on line 888.
* warning: file_get_contents(sites/all/themes/acquia_marina/acquia_marina.info) [function.file-get-contents]: failed to open stream: Permission denied in /home/attac2/www/includes/common.inc on line 3521.

And impossible to connect as user1 on the new install, the page is a blank page.
I saw some message on drupal.org that said that this should come from issue with the pear path that is not on the right place, but it seems to work well on the new host. Same for files and path right, the path are in 755 and the files in 644.

Did you see this trouble elsewhere?

Config :
PHP Version 5.2.6-1+lenny3
System Linux attac-web 2.6.27.10-grsec-xxxx-grs-ipv4-64 #2 SMP Fri Jan 30 09:56:38 UTC 2009 x86_64
Server API Apache 2.0 Handler

Thanks!

Mael

Does the file

cog.rusty - May 25, 2009 - 23:03

Does the file "sites/all/modules/active_tags/active_tags.module" exist exactly at that location under drupal?

Does the file "active_tags.module" have permissions 644?
Do the directories "sites", "sites/all", "sites/all/modules", "sites/all/modules/active_tags" have permissions 755?

Anything unusual or modified in your Drupal setup? Any custom code which might have changed Drupal's current working directory?

The include_path shouldn't matter, because the files are included using the current working directory ("./") explicitly.

Does the file

rougevert - May 26, 2009 - 04:06

Does the file "sites/all/modules/active_tags/active_tags.module" exist exactly at that location under drupal?
Yes
Does the file "active_tags.module" have permissions 644?
Yes
Do the directories "sites", "sites/all", "sites/all/modules", "sites/all/modules/active_tags" have permissions 755?
Yes
Anything unusual or modified in your Drupal setup? Any custom code which might have changed Drupal's current working directory?
No custom code, no modified setup, just moving the website to its new host...

The include_path shouldn't matter, because the files are included using the current working directory ("./") explicitly.

All settings seem fine. The

cog.rusty - May 26, 2009 - 07:17

All settings seem fine. The problem may have to do with GrSecurity.

The problem has been solve by

rougevert - May 27, 2009 - 19:11

The problem has been solve by raising the memory limit...
The site need 96M to work fine. Even if there is a lot of module, this seems very high!

 
 

Drupal is a registered trademark of Dries Buytaert.