Agaric Design Collective

Make a new Drupal site project in the Agaric system

By Benjamin Melançon
on 30 Jul
0 comments

Key words and phrases

Set up new site the Agaric way roll out another site using the Agaric system install new site make new site Create new site procedure

Tags

Description

Run from anywhere on the test or development server:

sudo /srv/scripts/agaric-newproject.sh 5 myagaric myagaric.com my.agaricdesign.com

You'll see a fair amount of output, and the last line you see should be:

Site myagaric installed; run /etc/init.d/apache2 reload to enable.

Run once as a test and once without sudo to look for problems (other than permission denied on the one run without sudo). Look for Syntax OK after running the first command, and permission denied on "make_sock: could not bind to address" is the first error for the one without sudo.

sudo /usr/sbin/apache2ctl -t
/etc/init.d/apache2 reload
sudo /etc/init.d/apache2 reload

Currently a separate step, we should roll it in: installing the database.

sudo /srv/scripts/agaric-createdatabase.sh myagaric

I will show all the output because I love it so:

Connected to database server.
User myagaric created.
Granted usage.
Database myagaric created.
Granted privileges of user myagaric to database myagaric
Copy and save this password for use on the Drupal install page, if needed:
A4KDWFcVikttQu1x

@TODO:

edit settings.php directly and protect it.

Create sites/default/files and make it writeable by the web user.

Make an installation profile that sets this directory, turns on clean URLs, etc.

 

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup> <kbd> <s>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.