Bring site down to install?

Bring site down to install?

Posted by: accommodator
Posted on: 2009-09-25 08:53:00

When reading a user manual, it advises when deploying the new software to an existing live site, to bring the site down to normal site visitors before installing. One way given is to install a temporary password on the site so that visitors cannot access it until the update is finished.

How does one do this 'temporary password'?

Re: Bring site down to install?

Posted by: Atropos7
Posted on: 2009-09-25 09:40:00

In reply to:

When reading a user manual, it advises when deploying the new software to an existing live site, to bring the site down to normal site visitors before installing. One way given is to install a temporary password on the site so that visitors cannot access it until the update is finished.

How does one do this 'temporary password'?


In your home directory (path = /home/username):

make a text file called .htaccess:
$ nano ~/.htaccess

AuthType Basic
AuthUserFile /home/uswername/.htpasswd
AuthName Duh
Require user temp

make a text file called .htpasswd:
$ htpasswd -c .htpasswd temp
New password:
Re-type new password:
Adding password for user temp[/pre]

This will apply to all web sites though, I'm not sure if your installation process would overwrite .htaccess or not...if it doesn't you could put the .htaccess in /home/username/domain

Just delete the .htaccess or remove those line to stop requiring a password





Customer since 2000 cool openvein.org

Re: Bring site down to install?

Posted by: sXi
Posted on: 2009-09-25 14:11:00

I usually add this to the top of the .htaccess file:

order deny,allow
deny from all
allow from x.x.x.x

Replacing x.x.x.x with your IP.

Remember to remove those lines after the upgrade is complete.




How To Install PHP.INI / ionCube on DreamHost

Tags: new software