18.11.2015 Views

Beginning Drupal 8

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

Todd Tomlinson - Beginning Drupal 8 (The Expert's Voice in Drupal) - 2015

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A ■ Installing <strong>Drupal</strong><br />

Next, set the permissions on the settings.php file so that anyone can read and update the file. <strong>Drupal</strong><br />

must have the ability to update this file during the update process. Check your operating system’s directions<br />

for setting permissions if you’re unsure about how to do this.<br />

Creating the files Directory<br />

<strong>Drupal</strong> stores all uploaded files and images in a directory on the server. The standard name for that directory<br />

is files and the location is in the sites/default directory. Create a new directory, named files, and set<br />

the permissions so that the web server can write to that directory.<br />

Creating the <strong>Drupal</strong> Database<br />

Creating the database is a relatively simple process. If you are using XAMPP or a hosting provider, you<br />

should have access to the phpMyAdmin administrator’s tool. To access the admin tool on your laptop or<br />

desktop, visit the http://localhost/xampp page (if you are using XAMPP) or the appropriate dashboard<br />

URL for the AMP stack that you have installed. In the Tools section, you will see a link to “phpMyAdmin.”<br />

Please click that link to launch the phpMyAdmin administrator’s page.<br />

On this page, locate the text box that is right below the “Create database” label. In this text box, type<br />

in a name that is easy for you to remember and is representative of what your website is about (using this<br />

approach makes it easier in the future to figure out which database goes with which website, especially<br />

when you have multiple <strong>Drupal</strong> sites running on your server). MySQL is extremely flexible, and you can<br />

name your databases anything that you wish; however, there are generally accepted standards that you may<br />

want to follow:<br />

• Only use lowercase characters.<br />

• Separate words with underscores.<br />

• Keep the database name shorter than 64 characters (a MySQL restriction).<br />

For demonstration purposes, I have created a new database named “drupal8testsite.” After entering the<br />

database name, click the Create button. See Figure A-1.<br />

Figure A-1. Creating a new MySQL database<br />

The next screen that appears shows that the database was created. We don’t have to create any<br />

tables, which is what this screen can be used for, because <strong>Drupal</strong> will create the tables for us as part of the<br />

installation script.<br />

270

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!