If I install Drupal on my server as I saw in the tutorial is there any way to prevent possible visitors from seeing my site until I want it to be live?
Thanks

Comments

Garrett Albright’s picture

Go into Administration > Site configuration > Site maintenance and set the Site Status to "Off-line." You will still be able to view and use the site as normal, but those who are not administrators will see a "down for maintenance" message.

savantcreative’s picture

Thanks for your reply. Is there a way to change the :down for maintenance" message to something else?

Long Island Advertising Agency
Long Island Photographer

WorldFallz’s picture

You can uncheck the "access content" permission for anonymous role at admin/user/access.

They'll still get to the front page, but it will say "access denied". If you want to completely hide even the first page, you can create an index.html file in the drupal root directory (put whatever html you want there, or even leave it blank if you prefer) and then add "DirectoryIndex index.html index.php" to your .htaccess file. However, someone can still see the front page with "access denied" if they browse the full url (http://www.mysite.com/index.php) directly.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

savantcreative’s picture

Thanks for your reply. Isn't there a way to write a 301 redirect so that /index.php goes to http://www.mysite.com/ ?

Long Island Advertising Agency
Long Island Photographer

WorldFallz’s picture

Not sure about that-- but if there is and you set that up, how would you work on your site?

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

savantcreative’s picture

Sorry. That was a bad question. It doesn't seem to make sense to work locally because of probable later server issues, right? Does anyone work locally and then ftp the whole project up to the server?

I think maybe I should go with the advise to Go into Administration > Site configuration > Site maintenance and set the Site Status to "Off-line." You will still be able to view and use the site as normal, but those who are not administrators will see a "down for maintenance" message. If I can customize the down for maintenance" message

Thanks for your help.

Long Island Advertising Agency
Long Island Photographer

Garrett Albright’s picture

Okay, you're going to feel silly about this one… The field to customize the off-line message is on that same page where you set it to be off-line. It's at the bottom, labeled "Site off-line message."

savantcreative’s picture

Yes you are quite right. I do but thanks.

Long Island Advertising Agency
Long Island Photographer

WorldFallz’s picture

It doesn't seem to make sense to work locally because of probable later server issues, right? Does anyone work locally and then ftp the whole project up to the server?

I've done both and go back and forth between them. If i want constant access to a dev site without being online and have no need to grant others access, I setup dev on my laptop. If I need to show progress along the way I put it on the server and use the method I outlined above to control access. Other then occasional rare incompatibilities due to moving from windows to linux or vice versa, I haven't really had any issues.

Another method i forgot to mention, you could use http://drupal.org/project/front also.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

savantcreative’s picture

If I am developing on my machine which is running windows xp pro, should i go with a windows host? Does that make it any more compatible?

Long Island Advertising Agency
Long Island Photographer

WorldFallz’s picture

Interesting question. For my intranet site I was handcuffed to windows. I originally manually installed the wamp stack myself and was trying to use iis. After struggling with that for a while i gave up and went to the much simpler wampserver stack. I haven't had too many problems since then-- just the occasional file handling and pathing idiosyncrasies.

I have dev environments set up on both local windows and shared unix hosting environments. However, for me, it just seems easier to keep things linux based wherever possible. There's TONS more help and documentation for that environment. I'm actually going to be adding an unbuntu partition to my windows system after the next upgrade so I can have a local linux dev as well.

Also, in general, I find windows hosting plans with all the bells and whistles I need are a bit more expensive then their linux counterparts.

But I'm sure you'll find plenty of die hard windows enthusiasts as well. I guess it's all a matter of personal choice and what you're comfortable with.

Sorry, that doesn't really answer your question....
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

savantcreative’s picture

Thanks so much for your response. All input is appreciated.

Long Island Advertising Agency
Long Island Photographer

Anonymous’s picture

If you are running a mysql database people generally choose to take hosting that has mysql. The same goes for php.

If you are running a Microsoft database people generally choose to take Microsoft hosting. The same goes for asp.

If you run both you are best off in my opinion with a hosting provider that provides both.

Drupal runs standard on php and mysql.

Hope it clears things up a bit for you.

savantcreative’s picture

Yes it does. Thanks for your help.

Long Island Advertising Agency
Long Island Photographer