AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
I currently have a PHP website and would like to start another one parrallel to the first. The second site wants to use the same webspace and MySQL database as the first (so they share the same data tables) but the two sites should appear completely seperate and so have different designs and domain names.
Is this possible and if so, how?
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
If they're both on the same server then your PHP can connect to MySQL on localhost. Doesn't need to be the same webspace as such so long although they would be in the same filesystem somewhere.
Means you need fairly high level access to server config or a flexible arrangement with whoever is doing it. You currently have something online or you need to but it?
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
No, got it online already and full server access, just don't know what I'm doing with it....
How do you go about two domains on the same hosting? If you put the same IP in on two sites they'll just point to a single frontpage......
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Apache?
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
Yep.
On CentOS Linux 4.3 if it makes any difference
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Maybe vhosts?
Tim is your man really, CS backup/dev server has a similar setup. He was online earlier but had that major geek issue known as low battery
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
Technical or what
|