geronimo171 — 2010-01-13T07:22:09-05:00 — #1
I have been asked to create some temporary sites (online for 12 months) that require a CMS. I would normally deploy a CMS using PHP/MYSQL, but i've also been asked if they can have the websites on a disc after the hosting expires so i wonder if there is some software that would allow me to write all files to the disc while also installing some server technology on the clients PC in order for the sites to run?
If this is not possible, what are the alternatives?
Thanks for any help
mittineague — 2010-01-13T13:10:46-05:00 — #2
Are you sure they don't just mean a copy of the files? Having a clone of the site that runs on a CD is a whole other thing. You might be able to get it to work for a particular setup, but a desktop app isn't a website. If it's a small site you might be able to save all the pages as HTML and they could run it in a browser that way. But for any dynamic PHP/MySQL stuff, they need the engines.
dr_john — 2010-01-13T14:28:19-05:00 — #3
push it through google to translate.
You build it on your own pc using this as the test server, then zip the entire usbwebserver folder and send it to them They unzip it, start the server (zero configuration) and use localhost to view their files. I was using it last week to build a system. Just note the bit about minirelay giving false anti-virus warnings - I've had them too, and try the version without minirelay as available from the site.
Zip prevents a cd copy becoming read only when copied to their PC.
d0nster — 2010-01-13T14:57:14-05:00 — #4
I've XAMPP before for that very purpose. I like that it already has phpmyadmin installed. It's meant to be used as a portable install.
Do a google search for XAMPP. (I'd give a link, but I just joined.)
geronimo171 — 2010-01-13T15:24:28-05:00 — #5
Thanks for the replies so far.
I don't want the client to be installing extra software, it has to be something that opens up in their browser on their computer.
I think the php/mysql is not going to work.
What about if it was just html files and xml based cms? That would work wouldn't it?
Anyone know of an xml based cms that might work?
Thanks for your help
dr_john — 2010-01-13T15:30:08-05:00 — #6
If you put an unzipped copy of the entire folder on a cd, they just start the server from the cd and view in their browser.
Or as the name suggests, give them it all on a small usb drive.
The point of usbwebserver (and related portable servers) is that you DON'T install it, you just copy the entire folder and run it. From a CD they can't edit it of course.
geronimo171 — 2010-01-13T15:33:48-05:00 — #7
Hi Dr John,
Oh right...in that case it sounds just what i'm after. I did go to the website but wasn't sure if there was a MAC version do you know if it's PC only?
I have a pc too so will use it in that if it is...just prefer working on the mac that's all.
Hold on does this mean i can build the website, host it so the client can make their updates and after the 12 months are up package the website in it's entirety via usbwebserver?
Thanks for the info.
dr_john — 2010-01-13T19:12:49-05:00 — #8
No idea about the Mac bit, but I'm using it on a PC, so I too can give a little database app to one of my clients.
Re. your hold on - the answer is yes. Copy all the online files and folders, and the database tables of course. The tables would need a database dump with create and data, then just run the sql through phpMyAdmin (in the system as well!) and check the DB connection (location, username etc) and it should work.
If you were even sneakier, you'd remove phpMyAdmin from the folders you passed to the client, so they can only use your web interface.
dan_grossman — 2010-01-13T20:12:11-05:00 — #9
You really don't want to be sending the MySQL server to someone in any form. That makes you a distributor of the code and binds you to the terms of the GPL license unless you purchase a commercial license from Sun. Bundle too tightly and you can end up covering the clients' code under GPL as well (it's a quite infectious license!).
geronimo171 — 2010-01-14T04:42:45-05:00 — #10
Dan - I had thought whether this might be an issue and will have to look into a little further.
Dr John - Thanks for clarifying that for me. I wonder if i might be able to contact you for assistance should i have any issues with the software? I probably won't be trying it out for a few weeks while i explore other options.
Thanks again for all replies.
wwb_99 — 2010-01-14T18:36:14-05:00 — #11
@Dan: very good point.
Comedy option: roll your own linux livecd which boots a server running your app.
freezea — 2010-01-15T01:00:04-05:00 — #12
I highly doubt that it's possible. php and mysql both require a web server running and a web server is going to require an OS.
dan_grossman — 2010-01-15T01:07:26-05:00 — #13
Ya know, if all they want is a copy of content sites on a disc after it's taken offline, then why not download a static version of the site for that purpose only? You can get a 'website downloader' easily enough, or if there are only a few pages, just right click and save them from a web browser. As long as you're not hard coding links with full domains, the site will still work as static HTML files. You can still put the source code on the disc if they want to be able to access it, but they'll have to put that on a hosting account somewhere to edit it.
If they just want an archive of their content then distributing live web and database servers on a disc and trying to get that to play well with everyone's PC is really overkill. It's got a 50/50 chance of failing depending on whether the version of Windows the end user has installed automatically installed IIS, which would've bound port 80 and prevent the web server you put on the disc from starting.
geronimo171 — 2010-01-15T07:23:14-05:00 — #14
A 'Website Downloader' is what i've found and it seems to work a treat.
Offline Explorer Pro is a Windows only app (would prefer mac) but converts all files to html and runs in a browser with file structure intact from a cd.
I didn't know such software existed but thanks for mentioning it in your last post.
Thanks also to all other responses.
dr_john — 2010-01-15T18:12:43-05:00 — #15
USBwebserver uses port 8080
I've had XAMPP and USBWebserver running simultaneously on the same laptop (Vista), as two different localhosts, then copied the usbWS folder to a four year old 256MB usb drive and connected that to my XP Pro desktop and it ran from there okay. XP Pro did have IIS installed as well, but I don't play with that.
As for a static copy, the original post said CMS, PHP, MySQL, so I provided a simple (very simple!) solution to the question asked.
wwb_99 — 2010-01-15T18:15:39-05:00 — #16
Or, that other port most people put their alternate web servers on . . .
spacephoenix — 2010-01-17T11:54:33-05:00 — #17
USBwebserver or XAMP sound like the best two options for the OP. Possibly with XAMP as the main one and USBwebserver for testing different combinations of PHP, MySQL and Apache without breaking XAMP.