Drupal - danwu960/MyDocument GitHub Wiki
#use composer to create a project and manage the drupal version
-
- composer create-project drupal/recommended-project my-project
-
- cd my-project #Add new modules and themes
-
- composer require drupal/pathauto #add new theme
-
- composer require --dev drupal/devel #add new development module
#change apache2 configuration
- cd /etc/apache2/
- sudo vi apache2.conf
- add the web direct as, where the path is the project web folder
<Directory /home/danwu960/demo/web/>\
- Options Indexes FollowSymLinks
- AllowOverride None
- Require all granted
</Directory>
#restart the apache2 service
- sudo service apache2 restart #create a user CREATE USER 'username'@'host' IDENTIFIED WITH BY 'password';
start mysql
- sudo mysql