Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

A question of organization...


Reply


5 Posts   1657 Views

Avatar
nbc

17 Posts

20 September 2007 at 10:40am

Hi,

With a bit of help from this forum (thanks!) I now have your software installed. I'm new to the idea of using a system like this tho - I have had a small home website that I built by hand - writing the html and adding a couple of things like a photo gallery and a calendar to it. So I have a couple of startup questions related
to filesystem layout (and I don't mind wiping out the little I've done and starting over if that is the correct thing to do...)

My apache server has the document root set to /var/www/html. I installed your software in /var/www/SilverStripe/silverstripe-v2.0.2b. I put a link in /var/www/html/SilverStripe that points to your software and I did the install. But is that 'correct'? Or should my document root point directly to the directory where your software is located? Or should I just install your software in /var/www/html?

When I'm all done, I want people to come to www.mydomain.com and pick up my starting page - but right now that is in /var/www/html, and does not relate to your software. What is the correct way for me to get started? I'm planning to just experiment a bit with your stuff, but if someone can give me a hint it might save me some time....

Much obliged,

nbc

Avatar
Sean

Forum Moderator, 922 Posts

20 September 2007 at 4:11pm

You could install it directly into var/www/html ... then SilverStripe will be used at that level on Apache. I believe if you install it to var/www/html/silverstripe then you have to access mysite.com/silverstripe to access it.

Hope this helps!

Sean

Avatar
nbc

17 Posts

20 September 2007 at 10:16pm

So - just to be clear - I should copy all the files and subdirectories in the silverstripe directory into /var/www/html and then do the installation from there - yes?

Is there an easy way to 'uninstall' the system? Or can I move the files and do another install and have it set up from scratch automatically?

That does help - I'll try it tonight - thanks!

nbc

Avatar
Sean

Forum Moderator, 922 Posts

20 September 2007 at 11:01pm

Edited: 20/09/2007 11:10pm

Hi nbc,

That's correct.

To "uninstall", simply move all the SilverStripe directories and files somewhere else (don't forget the .htaccess file as well!) from the htdocs root (var/www/html).

Perhaps a good practice would be to install a 'staging' version of SilverStripe in var/www/html/silverstripe, by accessing it as mysite.com/silverstripe to install. Then, once you know it's all good to go, and everything is working correctly, you can go ahead and move all the files back to the root using mv * ../ and mv .htaccess ../ (which normally doesn't move using * because it's hidden) whilst in var/www/html/silverstripe.

This is the method I used to install SilverStripe on my host.

Cheers,
Sean

Avatar
nbc

17 Posts

21 September 2007 at 12:29am

Thanks Sean - basically, what you described is what I'm doing - I am installing it in a staging area now. I didn't realize I could then move the resulting files up a level and still have it work - that is great.

Now if I can just figure out how to get back into the CMS (which is my other open question) I'll be in good shape... I may just erase the whole thing and try starting over one time... Thanks again,

nbc