Welcome to Geeklog, Anonymous Monday, April 15 2024 @ 08:04 am EDT

Geeklog Forums

Multiple Geeklogs on the same server?


Status: offline

tuomo

Forum User
Newbie
Registered: 09/04/02
Posts: 2
Hi! I administer multiple web sites related to different martial arts clubs, and since I found Geeklog, I've come to realise it would be well suited for every one of them. I have a Linux box with a working geeklog installation that currently serves as the web site for one of the clubs. Now I'm wondering if it would be possible to have several Geeklog installations on the same server? The idea being of course to use the same box to serve all the different web sites I'm supposed to manage. With conventional HTML that wouldn't warrant a question at all, but this is my first dip into MySQL and PHP... Off hand it doesn't seem impossible, but I wanted to get some advice on this before I mess it all up ;-) Thanks! Tuomo Toukomies
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I assume we're talking about virtual hosts here? That is possible, and it isn't complicated either. You just have to have a separate Geeklog install for every site. There shouldn't be any interferences between the installs. What you can NOT do is to install Geeklog once and then use the same set of files to run multiple sites off it. bye, Dirk
 Quote

Status: offline

daeve

Forum User
Newbie
Registered: 09/28/02
Posts: 6
Is it possible for mutiple installations to use the same set of database files and have different members and content?
 Quote

Anonymous

Anonymous
Yea u can when u install the new geeklog just change the database name that u are going to create for the new site and that would create diff sets of tables.I don't know much about this but im sure that should work couse it sure worked for me. www.thugworld.org 1-$_DB_table_prefix = 'yourdatebasename_'; // e.g. 'yourdatabase name_' 2-$_DB_table_prefix = 'your2nddatebasename'; // e.g. 'your2nddatebasename'
 Quote

Status: offline

daeve

Forum User
Newbie
Registered: 09/28/02
Posts: 6
The reason I ask this is I have a site where I have several domains parked. Access to these parked domains is via a script in index.php that direct requests for a particualar domain to a specific folder in the actual site that I rent. There are several of these "sites" that I would like to use geeklog on. However the hosting company I use only allows a certain number of mysql databases per account and with one geeklog installation I am at my limit. I was hoping that (with some (major?) modifications) I could have mutiple sites use the same database. Perhaps change the table name prefix for each interation and have multiple sets of tables within the same database? Daeve
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yes, you can use different prefixes ($_DB_table_prefix) to run several Geeklog installations off of one database. You still need to install Geeklog several times, i.e. have multiple copies of all the files. bye, Dirk
 Quote

Anonymous

Anonymous
your idea to use an index.php to redirect users is interesting. Would you mind sharing your code with me?
 Quote

Status: offline

Chalkhillian

Forum User
Chatty
Registered: 09/23/02
Posts: 67
I run multiple geeklogs on powweb.com . Just use different prefixes - you only need 1 database - it can hold as many tables as you need/want. I use .htaccess to redirect sites to the proper geeklog directory - I can post a sample if you are interested. An index.php can do the same thing but I find .htaccess to be cleaner.
 Quote

Status: offline

maigoofy

Forum User
Junior
Registered: 02/09/03
Posts: 15
Yes, could you post the sample? I would appreciate it.
 Quote

All times are EDT. The time is now 08:04 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content