/    Sign up×
Community /Pin to ProfileBookmark

System for generating static websites

I’m a programmer. Well, I have a MS in computer science but have spent the last 15 years in (ugh!) management so I’m more of a wannabe programmer right now. I totally “get” PHP, mySQL, HTML, CSS…so enough knowledge to be dangerous.

I want to learn the basic concepts behind how I could create a system that allows a client to select an existing CSS theme, “hit a button” and have their very own website generated – ready to go. Simple, static HTML sites.

So, not looking for an in depth technical tutorial, I realize that’s asking too much — just the high level idea behind how something like that would work. I would then go do the learning myself to implement, or at least have enough information to have an intelligent discussion with a hired gun to get it done.

Thanks…

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@rtretheweyMay 17.2012 — I'd suggest you begin by investigating the popular Content Management System and blog scripts like Joomla and WordPress to get an understanding of how they work. It generally consists of a template-based system in which the unique content of each page (title, meta tags, body content, etc.) is stored and retrieved from a database, accompanied by a control panel for the user.

From there you can create your own templates for your clients to use within such systems, or design your own. Good luck!
Copy linkTweet thisAlerts:
@chuckcintronauthorMay 18.2012 — Thanks, Rick. Yeah I am pretty familiar with WordPress; I modified it a bit and integrated it seamlessly with phpBB on the last site I developed.

For this problem though I think I need to approach it differently. I don't want a page generator -- I want a site generator. Like, a new root folder inside of public_html and a domain pointer that points to it (so the client can have their own site name www.foo.com or foo.parentsite.com).

Maybe I'm overthinking it and it is as simple as doing the directory create and copying the file structure over...
Copy linkTweet thisAlerts:
@rtretheweyMay 18.2012 — The site creation process can be automated if you're willing to use subdomains like foo.parentsite.com by creating a system that would modify the .htaccess file on parentsite.com and load the necessary files into an appropriate directory on parentsite.com. It would take some care to make it stable and secure, but its absolutely possible. I'm sure you could find some scripts online that would do it and explain the details.

Supporting independent domain names would require a dedicated server (or perhaps a virtual dedicated server). That end of things could be also automated, but it would still require that your clients update the DNS settings on their domain name to point to your server manually. So I don't think it's practical.

Even the subdomain approach will probably require at least a virtual dedicated server if you start getting more than a handful of clients using it because you can easily run into resource limits on shared hosts for things like MySQL server accesses, and terms of service that prohibit the practice.

But from there, you can do whatever you like. Make your own Content Management System or rely on one of the scripts we've discussed. Good luck!
×

Success!

Help @chuckcintron spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...