Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Multisites, symlinking and weird things happen... :o

Asked Modified Viewed 3,665 times
R
Rander
R
Rander 10
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Junior Member

Okay, so I tried doing the multisite-thing, and it works great. Then I figured I'd trying to go one step further, cutting down on disk-usage, by symlinking as much as possible - which was everything, except config.php and multisite_config.php. To clarify, the listing for my second site looks like this:

lrwxrwxrwx 1 xxx xxx   22 2008-11-16 12:25 administration -> ../www/administration/
lrwxrwxrwx 1 xxx xxx   16 2008-11-16 12:20 downloads -> ../www/downloads
lrwxrwxrwx 1 xxx xxx   13 2008-11-16 13:04 forum -> ../www/forum/
lrwxrwxrwx 1 xxx xxx   11 2008-11-16 12:20 fpl -> ../www/fpl/
lrwxrwxrwx 1 xxx xxx   13 2008-11-16 12:20 images -> ../www/images
drwxr-xr-x 2 xxx xxx 4096 2008-11-16 12:44 includes
lrwxrwxrwx 1 xxx xxx   17 2008-11-16 12:21 infusions -> ../www/infusions/
lrwxrwxrwx 1 xxx xxx   14 2008-11-16 12:21 locale -> ../www/locale/
lrwxrwxrwx 1 xxx xxx   19 2008-11-16 12:21 manualpages -> ../www/manualpages/
lrwxrwxrwx 1 xxx xxx   14 2008-11-16 12:21 themes -> ../www/themes/
lrwxrwxrwx 1 xxx xxx   12 2008-11-16 12:21 vwar -> ../www/vwar/
lrwxrwxrwx 1 xxx xxx   19 2008-11-16 12:35 articles.php -> ../www/articles.php
-rw-r--r-- 1 xxx xxx  170 2008-11-16 04:40 config.php
lrwxrwxrwx 1 xxx xxx   18 2008-11-16 12:35 contact.php -> ../www/contact.php
lrwxrwxrwx 1 xxx xxx   27 2008-11-16 12:35 contactwebmaster.php -> ../www/contactwebmaster.php
lrwxrwxrwx 1 xxx xxx   20 2008-11-16 12:35 downloads.php -> ../www/downloads.php
lrwxrwxrwx 1 xxx xxx   23 2008-11-16 12:35 edit_profile.php -> ../www/edit_profile.php
lrwxrwxrwx 1 xxx xxx   14 2008-11-16 12:35 faq.php -> ../www/faq.php
lrwxrwxrwx 1 xxx xxx   16 2008-11-16 12:35 index.php -> ../www/index.php
lrwxrwxrwx 1 xxx xxx   16 2008-11-16 12:35 login.php -> ../www/login.php
lrwxrwxrwx 1 xxx xxx   23 2008-11-16 12:35 lostpassword.php -> ../www/lostpassword.php
lrwxrwxrwx 1 xxx xxx   19 2008-11-16 12:35 maincore.php -> ../www/maincore.php
lrwxrwxrwx 1 xxx xxx   22 2008-11-16 12:35 maintenance.php -> ../www/maintenance.php
lrwxrwxrwx 1 xxx xxx   18 2008-11-16 12:35 members.php -> ../www/members.php
lrwxrwxrwx 1 xxx xxx   19 2008-11-16 12:35 messages.php -> ../www/messages.php
lrwxrwxrwx 1 xxx xxx   15 2008-11-16 12:35 news.php -> ../www/news.php
lrwxrwxrwx 1 xxx xxx   20 2008-11-16 12:35 news_cats.php -> ../www/news_cats.php
lrwxrwxrwx 1 xxx xxx   16 2008-11-16 12:35 photo.php -> ../www/photo.php
lrwxrwxrwx 1 xxx xxx   23 2008-11-16 12:35 photogallery.php -> ../www/photogallery.php
lrwxrwxrwx 1 xxx xxx   16 2008-11-16 12:35 print.php -> ../www/print.php
lrwxrwxrwx 1 xxx xxx   18 2008-11-16 12:35 profile.php -> ../www/profile.php
lrwxrwxrwx 1 xxx xxx   22 2008-11-16 12:35 readarticle.php -> ../www/readarticle.php
lrwxrwxrwx 1 xxx xxx   19 2008-11-16 12:35 register.php -> ../www/register.php
lrwxrwxrwx 1 xxx xxx   17 2008-11-16 12:35 search.php -> ../www/search.php
lrwxrwxrwx 1 xxx xxx   18 2008-11-16 12:35 setuser.php -> ../www/setuser.php
lrwxrwxrwx 1 xxx xxx   20 2008-11-16 12:35 showphoto.php -> ../www/showphoto.php
lrwxrwxrwx 1 xxx xxx   17 2008-11-16 12:35 submit.php -> ../www/submit.php
lrwxrwxrwx 1 xxx xxx   19 2008-11-16 12:35 viewpage.php -> ../www/viewpage.php
lrwxrwxrwx 1 xxx xxx   19 2008-11-16 12:35 weblinks.php -> ../www/weblinks.php

/includes contains
lrwxrwxrwx 1 xxx xxx   27 2008-11-16 12:44 jscripts -> ../../www/includes/jscripts
lrwxrwxrwx 1 xxx xxx   27 2008-11-16 12:44 language -> ../../www/includes/language
lrwxrwxrwx 1 xxx xxx   25 2008-11-16 12:44 search -> ../../www/includes/search
lrwxrwxrwx 1 xxx xxx   29 2008-11-16 12:44 securimage -> ../../www/includes/securimage
lrwxrwxrwx 1 xxx xxx   30 2008-11-16 12:44 user_fields -> ../../www/includes/user_fields
lrwxrwxrwx 1 xxx xxx   37 2008-11-16 12:44 bbcode_include.php -> ../../www/includes/bbcode_include.php
lrwxrwxrwx 1 xxx xxx   26 2008-11-16 12:44 bbcodes -> ../../www/includes/bbcodes
lrwxrwxrwx 1 xxx xxx   32 2008-11-16 12:44 buildlist.php -> ../../www/includes/buildlist.php
lrwxrwxrwx 1 xxx xxx   38 2008-11-16 12:44 captcha_include.php -> ../../www/includes/captcha_include.php
lrwxrwxrwx 1 xxx xxx   41 2008-11-16 12:44 class.httpdownload.php -> ../../www/includes/class.httpdownload.php
lrwxrwxrwx 1 xxx xxx   38 2008-11-16 12:44 class.phpmailer.php -> ../../www/includes/class.phpmailer.php
lrwxrwxrwx 1 xxx xxx   33 2008-11-16 12:44 class.smtp.php -> ../../www/includes/class.smtp.php
lrwxrwxrwx 1 xxx xxx   39 2008-11-16 12:44 comments_include.php -> ../../www/includes/comments_include.php
lrwxrwxrwx 1 xxx xxx   39 2008-11-16 12:44 contactwebmaster.php -> ../../www/includes/contactwebmaster.php
lrwxrwxrwx 1 xxx xxx   36 2008-11-16 12:44 flood_include.php -> ../../www/includes/flood_include.php
lrwxrwxrwx 1 xxx xxx   38 2008-11-16 12:44 footer_includes.php -> ../../www/includes/footer_includes.php
lrwxrwxrwx 1 xxx xxx   36 2008-11-16 12:44 forum_include.php -> ../../www/includes/forum_include.php
lrwxrwxrwx 1 xxx xxx   38 2008-11-16 12:44 header_includes.php -> ../../www/includes/header_includes.php
lrwxrwxrwx 1 xxx xxx   43 2008-11-16 12:44 html_buttons_include.php -> ../../www/includes/html_buttons_include.php
lrwxrwxrwx 1 xxx xxx   28 2008-11-16 12:44 index.php -> ../../www/includes/index.php
lrwxrwxrwx 1 xxx xxx   28 2008-11-16 12:44 jquery.js -> ../../www/includes/jquery.js
lrwxrwxrwx 1 xxx xxx   29 2008-11-16 12:44 jscript.js -> ../../www/includes/jscript.js
-rw-r--r-- 1 xxx xxx 3275 2008-11-16 11:48 multisite_include.php
lrwxrwxrwx 1 xxx xxx   46 2008-11-16 12:44 output_handling_include.php -> ../../www/includes/output_handling_include.php
lrwxrwxrwx 1 xxx xxx   46 2008-11-16 12:44 photo_functions_include.php -> ../../www/includes/photo_functions_include.php
lrwxrwxrwx 1 xxx xxx   40 2008-11-16 12:44 phpmailer_include.php -> ../../www/includes/phpmailer_include.php
lrwxrwxrwx 1 xxx xxx   38 2008-11-16 12:44 ratings_include.php -> ../../www/includes/ratings_include.php
lrwxrwxrwx 1 xxx xxx   39 2008-11-16 12:44 sendmail_include.php -> ../../www/includes/sendmail_include.php
lrwxrwxrwx 1 xxx xxx   35 2008-11-16 12:44 smtp_include.php -> ../../www/includes/smtp_include.php
lrwxrwxrwx 1 xxx xxx   36 2008-11-16 12:44 system_images.php -> ../../www/includes/system_images.php
lrwxrwxrwx 1 xxx xxx   46 2008-11-16 12:44 theme_functions_include.php -> ../../www/includes/theme_functions_include.php
lrwxrwxrwx 1 xxx xxx   45 2008-11-16 12:44 update_profile_include.php -> ../../www/includes/update_profile_include.php

And yes, it does actually work - except for a little quirk that I can't figure out:

The pages have different page-titles and top-logos. On the second site, there are some links where, if I click them, the correct page does come up, but with the page-title and top-logo for the "main" site! Among others, the links Forum and Search does this! What baffles me is that if I remove the symlink to the forums folder and just copy it to the other site, it suddenly works fine for the Forum! Am I missing something?

All tables are shared except DB_ONLINE, DB_PANELS, DB_POLL_VOTES, DB_POLLS and DB_SETTINGS...

Is there a way to trace how php puts the file together? I mean, to get a trace of what includes it uses to build the page?
0 replies
There are no post found.

Category Forum

Installation Issues - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

R
R
Rander 10
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet