| Author |
Message |
Hunter
Guest

|
Posted:
Tue Apr 29, 2003 7:56 pm |
  |
I currently run a php-nuke site (eg: www.mysite.com).
What I want to do is create a second php-nuke at subdomain.mysite.com yet use the same nuke_users that are currently at www.mysite.com.
Do both config.php pages look similar and do I use the same database or two seperate ones?
I need a "Idiot's Guide to running two nukes on one server"  |
|
|
 |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Tue Apr 29, 2003 7:58 pm |
  |
On the second site's config.php change everything except $user_prefix, this one should be the same as in the first site's config.php |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
Hunter
Guest

|
Posted:
Tue Apr 29, 2003 8:03 pm |
  |
Same database? Or do I need to use another one? |
|
|
 |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Tue Apr 29, 2003 8:08 pm |
  |
In this case it needs to be the same database, you will need to create the second site's database tables using a different prefix than the one used by the 1st site, no need to create the second site's users and users_temp tables as it will use those of the existing site. |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
Hunter
Guest

|
Posted:
Tue Apr 29, 2003 10:03 pm |
  |
Ok. At subdomain.mysite.com, I get the following errors:
Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site24/fst/home/manor/public_html/header.php on line 31
Warning: open_basedir restriction in effect. File is in wrong directory in /home/virtual/site24/fst/home/manor/public_html/header.php on line 31
Warning: Failed opening 'themes//theme.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site24/fst/home/manor/public_html/header.php on line 31
Fatal error: Call to undefined function: themeheader() in /home/virtual/site24/fst/home/manor/public_html/header.php on line 47 |
|
|
 |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Tue Apr 29, 2003 10:19 pm |
  |
Download analyzer and place it in the subdomain dir. |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
kspatriot
Nuke Cadet


Joined: Apr 12, 2003
Posts: 6
|
Posted:
Wed Apr 30, 2003 8:06 am |
  |
ok Chatserv,
this is what I was thinking of doing, except, in my case, I am currently running phpnuke in my subdomain
http://patriot.history1700s.com
and I was thinking of making one other subdomain, and installing phpnuke on the new domain, and possibly install the Nuke on the main domain also, which is http://www.history1700s.com
SO in order to have this running correctly and allowing the same user to sign up once for all three domains, without having to sign up for each, I would just change the Config.php settings like:
$dbasename ="mydbase"<--- Keep it as is
$prefix = "nuke";<---- this one to another name
$user_prefix = "nuke"; <-- and leave this the same?
and not to creat another dbase for the new sites, but use the current dbase that I am using?
Or do I have to create a new dbase for the two additional sites without, the user tables?
so in effect, I would not have to create a new dbase at all but use the same dbase, with different prefixes.
Am I reading and understanding your instructions correctly?
Thanks
kspatriot
editor@history1700s.com |
|
|
    |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Wed Apr 30, 2003 8:37 am |
  |
| kspatriot wrote: |
Or do I have to create a new dbase for the two additional sites without, the user tables?
so in effect, I would not have to create a new dbase at all but use the same dbase, with different prefixes.
Am I reading and understanding your instructions correctly? |
Exactly, one database can hold the tables for multiple sites as long as each site's tables start with a different prefix:
example:
nuke_authors
nuke1_authors
nuke2_authors
etc... |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
kspatriot
Nuke Cadet


Joined: Apr 12, 2003
Posts: 6
|
Posted:
Wed Apr 30, 2003 12:19 pm |
  |
ok so basically I do this:
Create another subdomain
upload the phpnuke files with the changed configuration
then go to the subdomain and set up the site as I see fit.
the new tables for my subdomain will be added to the current dbase?
or do I need to add these things?
Also, since this is phpnuke version 6.5 do I need to upload all the files or do I leave out the dbase folder, so that I won't mess up the data that is currently in the dbase?
thanks
kspatriot |
|
|
    |
 |
Hunter
Guest

|
Posted:
Wed Apr 30, 2003 6:12 pm |
  |
Chatserve:
I got the analyze.php to work okay. What am I looking for? |
|
|
 |
 |
Hunter
Guest

|
Posted:
Wed Apr 30, 2003 8:15 pm |
  |
Nevermind
I used the nukeSQL located on nukecops. It's up and running on my subdomain now.
Thanks again Chatserv.... going to register for sure here!  |
|
|
 |
 |
|
|