devilbox@php-7.0.20 in /shared/httpd/my-craft $ mysql -u root -h 127.0.0.1 -p -e 'CREATE DATABASE my_craft CHARACTER SET utf8 COLLATE utf8_unicode_ci;'
6. DNS record
-------------
If you **have** Auto DNS configured already, you can skip this section, because DNS entries will
be available automatically by the bundled DNS server.
If you **don't have** Auto DNS configured, you will need to add the following line to your
host operating systems ``/etc/hosts`` file (or ``C:\Windows\System32\drivers\etc`` on Windows):
..code-block:: bash
:caption:/etc/hosts
127.0.0.1 my-craft.loc
..seealso::
*:ref:`howto_add_project_hosts_entry_on_mac`
*:ref:`howto_add_project_hosts_entry_on_win`
*:ref:`setup_auto_dns`
7. Run setup wizard
-------------------
After everything is setup, you need to run the setup wizard. CraftCMS bundles a commandline tool
that you can use.
7.1 Via command line tool
^^^^^^^^^^^^^^^^^^^^^^^^^
..code-block:: bash
devilbox@php-7.0.20 in /shared/httpd/my-craft $ php craftcms/craft setup
Which database driver are you using? [mysql,pgsql,?]: mysql
Database server name or IP address: [localhost] 127.0.0.1
Database port: [3306]
Database username: [root]
Database password:
Database name: my_craft
Database table prefix:
Testing database credentials... success!
Saving database credentials to your .env file... done
Install Craft now? (yes|no) [yes]:
Username: [admin]
Email: admin@devilbox.org
Password:
Confirm:
Site name: craftcms
Site URL: [@web] my-craft.loc
Site language: [en-US]
...
*** installed Craft successfully (time: 14.660s)
7.2 Via browser
^^^^^^^^^^^^^^^
If you do not feel too comfortable on the command line, you can also run the setup wizard via
the browser. See their official documentation for screenshots.