Jump to content

Designing a (supposed to be) LARGE website


xeronix

Recommended Posts

Hey guys, I've got some problems that I just can't figure out on my own about how to structure my website.

 

#1:

 

I do know that I'm planning on keeping all of the script's files on one server, then simply mounting that server on my Apache servers, hence letting me load balance between servers of the same script.

 

However, I'm having a little trouble as to if I should with subdomains or just working with the domain/login.php type structure.

 

I personally think that working with subdomains is cleaner, but that sort of messes up my concept of working with one library of code.

 

I'm trying to have 1 configuration file serve my information, but if I were to use subdomains, I would need multiple config files (at least I haven't thought of a way around it).

 

I did think about having the system mount the root of my script, for example, /site then simply storing different sectors such as /site/login in each respective folder, then simply calling /site/config into the script via fopen or some other script to keep my config file universal.

 

#2:

 

I'm thinking about using load balancing with Apache and MySQL servers, however, how will I be able to keep my user's login sessions valid?

 

It seems that if the Load Balancer were to switch servers while the user's session were still valid it would invalidate the cookie.

 

That's when I thought of using cloud computing to run the entire site, however there are faults to that as I don't have a big initial investment to be putting into servers and colocation.

 

 

If you have any ideas which you think would help me please post.

 

Thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.