User login

Create New Site Procedure

UPDATE: Completely superseded by http://data.agaric.com/agaric-move-site-from-test-production-first-time-steps

NOTE: This information is specific to the Agaric's server set-up.

To create a new project newproject with site example.com

Create database by going to phpMyAdmin Privileges and Add a new User.

Name the user newproject_live (or newproject_test if starting with a test site)

Click "Generate" to make the password, and "Copy" to move it into the two fields, but first or immediately thereafter copy (e.g. with Control-C) that password into your clipboard and save it somewhere, you'll need it later!

(If you forget to get the password before submitting the page, you can change the password later.)

Under "Database for user" select "Create database with same name and grant all privileges".

Scroll down and click "Go".

Log into the server via SSH:

su root

addsite newproject example.com

If the domain name is already pointed to the server's nameservers, just go there and put your database info from the previous

Pick a reasonable domain and give it a subdomain like example or just reuse temporary:

ln -s example.com temporary.agaricdesign.com

on the admin/settings Site Information page, use this for the files directory:

sites/example.com/files

Take a working site from live to test, or vice versa

This is for taking a site from live to test:

We are here:

server:/srv/drupal-5/test-sites#

Type:

svn checkout https://66.135.41.18/svn/drupal/sbkenney/trunk/jandsproperties.net jandsproperties.net

now, copy in the files and settings.php (changing the settings.php to a different database, preferably)

cd /srv/drupal-5/live-sites/jandsproperties.net/

cp -pr files ../../test-sites/jandsproperties.net/
cp -p settings.php ../../test-sites/jandsproperties.net/

After updating modules

co https://66.135.41.18/svn/drupal/vendor/drupal-contrib/modules /srv/drupal-5/test-modules/

(how do you include the username in this command? I haven't been able to find that.)

Once it's checked out, we can just go to

cd /srv/drupal-5/test-modules
svn update

Can you do svn update /path/to/directory ?

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.