Fatal error after moving D5 from default to sites subdir
Hi everyone,
some things to know:
/var/www/drupal -> drupal installation folder
/var/www/drupal/sites/www.mysite.com
/var/www/drupal/sites/default
/var/www/drupal/sites/all
I have moved the /var/www/drupal/themes folder (which had been my online site since) to drupal/sites/www.mysite.com/themes. Also moved the drupal/modules to the same folder, and ofcourse a settings.php reffering to my database, and the old drupal/files folder.
I tried to access my webpage as usual on www.mysite.com:
Fatal error: Call to undefined function user_access() in /var/www/drupal/includes/menu.inc on line 1376
It seems as if it can't find the user module in this case, it did move from drupal/modules to drupal/sites/www.mysite.com/modules ofcourse.
I have also edited my apache vhost :
ServerName www.mysite.com
DocumentRoot /var/www/drupal
Options -Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride All
allow from all
LogLevel warn
ServerSignature On
So www.mysite.com begins in the root of drupal, but should be changed to drupal/sites/www.mysite.com
I don't know if it's the multisite which is causing this, maybe it still thinks the modules dir can be found in the main folder instead of drupal/sites/www.mysite.com/modules
Anyone any advice?
Thanks

Ok. I have copied
Ok. I have copied drupal/sites/www.mysite.com/modules dir back to the root dir: drupal/ and I can access the site again (offline notice). So it seems when i am entering www.mysite.com, it's still looking for files (modules) in the old main root drupal/ instead of drupal/sites/www.mysite.com/modules
Should i take any action for the drupal/includes dir maybe?
Seems you have moved all the core modules from the drupal root
Seems you have moved all the core modules from the drupal root, so the whole system stopped working, it can't even do a basic authorization after doing a bootstrap. You should place all the contributed (third-party) modules to your site drupal/sites/www.mysite.com/modules , but not the core ones.
They suggest not even to hack these at the http://drupal.org/node/202799#hackcore , so moving these looks all wrong.
No, you shouldn't move /includes too, and also move any folder contents which were there from the very beginning. Unfortunately I can't find a good drupal layout scheme for you at the moment. Please add the link somewhere here if you will find one, that could help many people in the future.
Can you look somewhere at the http://drupal.org/handbooks to learn why you shouldn't do things like that? There's also much interesting things in there.
Hi, I have checked this
ok, got it.
I fixed it, but now the theme is crippled, because it's still not looking in drupal/sites/www.mysite.com/themes but still wanting to go to drupal/themes?
Are you sure your site name is exactly the www.mysite.com ?
You can check if it's looking at your drupal/sites/www.mysite.com/ at all checking the the /admin/build/themes , your themes should be there.
However it looks like it goes to the drupal/sites/default and looks for all the stuff there as you've not placed the settings.php to your drupal/sites/www.mysite.com/ . Seems you should recheck the http://drupal.org/getting-started/5/install/run-script , especially that part about how the settings.php should be placed at multi-site location. Some comments are also in the settings.php itself.
Same issue
It seems these guys were having the same problem:
http://drupal.org/node/52190
It's not looking in the right folder for themes.
btw, i have a settings.php in my drupal/sites/www.mysite.com which used to live in sites/default/
btw, these two settings.php are the same file:
sites/default/settings.php and
sites/www.mysite.com/settings.php
could this be the problem?