corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Server Setup Question


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Server Setup Question
AndyKent
Member

Registered: 3rd Sep 05
User status: Offline
10th Jul 07 at 18:54   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
10th Jul 07 at 20:44   View Garage View User's Profile U2U Member Reply With Quote

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
10th Jul 07 at 20:47   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
10th Jul 07 at 20:51   View Garage View User's Profile U2U Member Reply With Quote

Apache?
AndyKent
Member

Registered: 3rd Sep 05
User status: Offline
10th Jul 07 at 21:01   View User's Profile U2U Member Reply With Quote

Yep.

On CentOS Linux 4.3 if it makes any difference
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
10th Jul 07 at 21:04   View Garage View User's Profile U2U Member Reply With Quote

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
10th Jul 07 at 21:05   View User's Profile U2U Member Reply With Quote

Technical or what

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
cheapest ADSL broadband service? Dean_H Geek Day 12 535
18th Jun 03 at 09:45
by andrewR
 
Business ISP with fixed IP's Melville Geek Day 21 1808
9th Jan 04 at 18:57
by Ian
 
Network boffs (Software).....Bit of help with my setup Aaron Geek Day 8 1106
18th Dec 05 at 00:01
by Aj.
 
BT 'quadruples' broadband speeds Tiger Geek Day 19 1339
7th Mar 06 at 22:52
by Dom
 
Setting up email in outlook express nik Geek Day 1 685
16th Jan 07 at 12:01
by ed
 

Corsa Sport » Message Board » Off Day » Geek Day » Server Setup Question 29 database queries in 0.0129061 seconds