31
Mithrandir
Re: Multi-sites - help me test it properly?

I have it running on http://www.web-udvikling.dk and http://www.bfsb.dk - the latter being a "parked domain" that points to the same physical location as the first.

All that matters is the URL that is written in the browser pointing to the same physical location

32
javier
Re: Multi-sites - help me test it properly?
  • 2005/3/12 13:54

  • javier

  • Not too shy to talk

  • Posts: 184

  • Since: 2002/8/6 1


the million question, how i create a parked domain or a subdomain, i now the live servers has tools for that as CPanel,
but what i must do in my local copy?

obviusly i want make the test in local mode first, because for host multisites i need buy a more expensive hosting plan than i currently use.

sorry for so many questions, you have a gold patience.

grettings
Javier

edit: no luck i tried edit the httpd.conf , i read your instructions one and one thousand of time, as well apache documentation and not luck , i know about site design, about html, a little about php&mysql ,etc but i know nothing about to set a server,
i always used installer programs packs with apache+php+mysql


i edit the httpd.conf file:
Alias /siteb "W:/www/multisitio"

Them now when i put http://localhost/siteb the IE pointed me to multisitio,

in the site module settings i configure:
Name: siteb
siteurl: http://localhost/multisitio/siteb (i tried http://localhost/multisitio as well)
uri: siteb


but that's not the thing im only made a point domain buaaaaaaaaa

33
ddevore
Re: Multi-sites - help me test it properly?
  • 2005/3/12 23:21

  • ddevore

  • Just popping in

  • Posts: 47

  • Since: 2005/3/8 1


could this possibly cause the php debugging setting to mess up. I am getting variable errors in all kinds of modules and the debugging is turned off.

Some of these errors are comming from standard modules is it normal for a module to have errors like the following?

- Use of undefined constant uid
- Undefined variable
- Use of undefined constant

Or do I have something wrong with my installation?

34
ddevore
Re: Multi-sites - help me test it properly?
  • 2005/3/13 5:03

  • ddevore

  • Just popping in

  • Posts: 47

  • Since: 2005/3/8 1


I started another clean site to try and figure out if there was an error with one of the modules I was running. I installed all the modules I am using on my main site.

- blockies
- donations
- multimenu
- piCal
- xRoster
- xt_temas
- news 1.3RC2

After installing each module I tested each module for the errors I was having and there were no errors. After installing all the modules I went through each one and checked for errors again. At this point I had no errors. I then installed the multi-site "fix" and as soon as I reloaded the main page gave me this...

Notice: Undefined variable: rowRecordset2 in /home/sopweb/public_html/xoops/modules/donations/blocks/Donat_o_Meter.php on line 120

This leads me to believe that there may be a problem with the multi-site "fix". Since I want to contribute to the community and need to get this fixed before I turn my sites live is there something I can do to help track this down. Also, will you be releasing the admin menu change as a module or a core hack on it's own..I really like it and would like to have it for sites where I have no intention in making multi-sites.

35
gruessle
Re: Multi-sites - help me test it properly?
  • 2005/3/14 8:15

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Just what I needed, thank you much Mithrandir and all other contributers. Having to upgrade multi sites had become a pain long ago.

Anyway has anydody tried this with sub-domains or parked domains on a shared host jet? And what did you have to put in to .htaccess?

36
Herko
Re: Multi-sites - help me test it properly?
  • 2005/3/14 8:46

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Gruessle, please read the whole thread, both your questions are answered here.

Herko

37
gruessle
Re: Multi-sites - help me test it properly?
  • 2005/3/14 9:01

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Hello Herko,

I have read the whole thing and now I did again thinking I have might missed something but the only thread about modifying .htaccess I can find is following. But that only is for sub directories and not sub domains or parked domains. Since I don't have access to httpd.conf on a shared host I was wondering if there is something which will work.
Maybe this will work for sub domains or parked domains as well in some form but I don't know that.

-----------------------
RewriteEngine on
RewriteBase //
RewriteRule ^(.*)$ http://www.domain.com/$1

replace with the folder name and your domain for your domain name (note. in my example i presume the main installation is in the root directory and each seperate site is in a sub directory)

so for my site i have the following:

RewriteEngine on
RewriteBase /wwcn_uk/
RewriteRule ^(.*)$ http://www.my-domain.com/$1

38
Mithrandir
Re: Multi-sites - help me test it properly?

To get it to work with a parked domain, I did not need to do any configuration of the server. I would assume that with subdomains, you would need some sort of rewrite.

For virtual subfolders, I just did an
ALIAS /foldername path/to/xoops/root

-------
To the various PHP debug errors even when PHP debug is off, it is a fluke on my part. I had a modification of include/common.php that enables PHP debug errors always. I forgot to remove that before release.

I will have a beta version of the hack out soon that will correct this and also have the option of adding multiple URI patterns for a site (e.g. example.com and http://www.example.com)

39
ddevore
Re: Multi-sites - help me test it properly?
  • 2005/3/14 17:07

  • ddevore

  • Just popping in

  • Posts: 47

  • Since: 2005/3/8 1


I must say that you have some nice code. I found the line that turned on the debugging and decided to take a look at the code in some of the core files and found them to be fairly clean and commented, with some minor exceptions. I will say that I am looking forward to doing some work on this project.

This is off topic but are there any good dev docs that explains the architecture, file layout and possibly a tutorial for modules. I found a document for the functions but have not found it to be very useful.

40
Mithrandir
Re: Multi-sites - help me test it properly?

Most of what we've got is in the Dev Wiki

Login

Who's Online

309 user(s) are online (255 user(s) are browsing Support Forums)


Members: 0


Guests: 309


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits