- Moderated by:
- Support
-
- rank:
-
Freshman
- registered:
- June 2004
- Status:
- offline
- last visit:
- 27.08.04
- Posts:
- 19
I've searched the forums now for hours looking for some help and I'm at a loss. All I want to do is create 2 PN installs. Root folders of www & www2. I also want 2 different databases. I know that the databases must have a different prefix as well as the tables name. I go thru the install and when I make a change to one site, it affects the other. My seperate logins get all screwed up and its just one big mess. I have the apache httpd.conf file written correctly for vitual hosts. I'm stumped. Any help? The setup:
SITE 1
Database Host localhost
Database Username root
Database Password xxxx
Database Name www_Phoenix
Table Prefix (for Table Sharing) nuke
Database Type MySQL
Database Table Type MyISAM
SITE2
Database Host localhost
Database Username root
Database Password xxxx
Database Name www2_Phoenix
Table Prefix (for Table Sharing) nuke
Database Type MySQL
Database Table Type MyISAM
Both directories are located in C:/easyphp/www & C:/easyphp/www2
Ive even tried tried changing the table prefix to (www_nuke and www_2nuke) and still nothing. Its still sharing the database. This is all done locally on a PC with a static IP. No FTP'ing to a foreign server.
Please help! -
- rank:
-
Helper
- registered:
- June 2003
- Status:
- offline
- last visit:
- 01.05.05
- Posts:
- 164
I don't have any experience with a windows server (I assume that's what you have), but maybe, when you install, to change the prefix as www for your first one then www2 instead of www_2, also, don't add the _nuke or whatever to the www or www2
--
http://www.entelite.com <-- PostNuke user site
[ System Server ]
Operating system: Linux
Kernel version: 2.4.20-19.7
Apache version: 1.3.28 (Unix)
PERL version: 5.006001
PHP version: 4.3.2
MySQL version: 4.0.15-standard -
- rank:
-
Freshman
- registered:
- June 2004
- Status:
- offline
- last visit:
- 27.08.04
- Posts:
- 19
i still cant get this to work. I''ve tried everything to get 2 different databases and nothing.
after installing site-a.com I install site-b.com. whatever changes I did to site-a.com have been errased and it now looks like site-b.com. All of the logins are now that of site-b.com. Do I have to create 2 different database usernames maybe?
I'm beginning to think that PN and virtual hosts dont mix. -
- rank:
-
Professional
- registered:
- March 2003
- Status:
- offline
- last visit:
- 10.11.06
- Posts:
- 904
Not true. I've done it, but it took some work. I have about 15 PN sites installed on my local machine doing exactly this. The difference is I'm using IIS not Apache. If you were using IIS, I could help you by giving you the configuration settings, but I'm not sure what settings are needed with Apache.
The strange thing is that even though you have set your databases names differently in your config.php files, they are still using one database. This really doesn't make sense. Have you pre-created the databases before installation or are you leeting the install script do it for you? -
- rank:
-
Freshman
- registered:
- June 2004
- Status:
- offline
- last visit:
- 27.08.04
- Posts:
- 19
I'm letting the install do the setup of the database for me. I'm beginning to think that the problem is in how I have virtual hosts set up. Maybe someone can share how they have virtual hosts set up in Apache working with PN. I would love to get this working. -
- rank:
-
Helper
- registered:
- October 2002
- Status:
- offline
- last visit:
- 17.09.08
- Posts:
- 219
I have 7 different sites on the same server and using the same database installation. This is what I did.
SITE 1
Database Host localhost
Database Username root
Database Password xxxx
Database Name OneDataBase
Table Prefix (for Table Sharing) site1_nuke
Database Type MySQL
Database Table Type MyISAM
SITE2
Database Host localhost
Database Username root
Database Password xxxx
Database Name OneDataBase
Table Prefix (for Table Sharing) Site2_nuke
Database Type MySQL
Database Table Type MyISAM
I just keep changing the Table Prefix and it has been working for me very good! Maybe when it gets too crowded it will start giving me problems but this is a good way to set up my test sites before launch.
NOTE: I do have separate folder for each instalation and do re-derection using the DNS info for the domain sites to point to the right site. OR you can always use the direct IP address to each site to access it.
Hope this helps!
--
"I'm an idealist. I don't know where I'm going, but I'm on my way."
