software:drupal
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:drupal [2017/10/08 18:46] – [Setup on Ubuntu for personal use] superwizard | software:drupal [2018/10/18 22:43] (current) – superwizard | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Setup Drupal with Composer ====== | + | ====== change Password of User using PHPMyAdmin ====== |
+ | |||
+ | From: https:// | ||
+ | |||
+ | < | ||
+ | PhpMyAdmin will show you a form with all the user information fields. | ||
+ | You will need to delete the value in the user_pass field and replace it with your new password. Under the function column, select MD5 from the drop down menu and click on the Go button. | ||
+ | |||
+ | Your password will be encrypted using the MD5 hash and then it will be stored in the database. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ====== Setup Drupal with Composer | ||
+ | |||
+ | NOTE: / | ||
+ | |||
+ | === First Setup LAMP === | ||
+ | |||
+ | From: http:// | ||
+ | |||
+ | < | ||
+ | sudo apt-get install lamp-server^ | ||
+ | http:// | ||
+ | |||
+ | Note: Ubuntu 16.4 has moved website to html directory and default www is: /var/www/ | ||
+ | sudo nano / | ||
+ | <?php phpinfo(); ?> | ||
+ | sudo service apache2 restart | ||
+ | http:// | ||
+ | |||
+ | cat /etc/hosts | grep localhost | ||
+ | |||
+ | Note: Ubuntu 16.4 has mysql configuration in "/ | ||
+ | sudo nano / | ||
+ | |||
+ | sudo apt-get install phpmyadmin | ||
+ | |||
+ | Note: must install some xtra for mbstring | ||
+ | sudo apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0 | ||
+ | sudo service apache2 restart | ||
+ | sudo systemctl restart apache2 | ||
+ | http:// | ||
+ | U: root | ||
+ | P: whatyouuse | ||
+ | </ | ||
+ | |||
+ | From: https:// | ||
+ | |||
+ | < | ||
+ | sudo a2enmod rewrite | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Next is the Database This case is MySql === | ||
+ | |||
+ | From: http:// | ||
+ | |||
+ | < | ||
+ | |||
+ | mysql -u root -p | ||
+ | |||
+ | Once Successful login to the Mysql Server, we'll use these command to create database for | ||
+ | drupal. In this case I will give the name of the drupal database as drupaldb, You can call | ||
+ | this whatever you would like. | ||
+ | |||
+ | CREATE DATABASE drupaldb; | ||
+ | |||
+ | Next, we are going to create a separate MySQL user account and give this user a password. On | ||
+ | this case we will call the new account “linoxideuser” and password for new account “drupaLinoxide1“, | ||
+ | you should definitely change the password for your installation and can name the user whatever you’d | ||
+ | like but make sure you don't forget the database name, | ||
+ | typing the following command: | ||
+ | |||
+ | CREATE USER linoxideuser@localhost IDENTIFIED BY ' | ||
+ | |||
+ | Next, grant all privileges on the database you just created to the new user by running the commands | ||
+ | below | ||
+ | |||
+ | GRANT ALL PRIVILEGES ON drupaldb.* TO linoxideuser@localhost; | ||
+ | |||
+ | We need to flush the privileges so that the current instance of MySQL knows about the recent | ||
+ | privilege changes we’ve made: | ||
+ | |||
+ | FLUSH PRIVILEGES; | ||
+ | |||
+ | And finally we exit the MySQL terminal by entering: | ||
+ | |||
+ | exit; | ||
+ | </ | ||
+ | |||
+ | === Setup Drupal website Without Composer See next section for Composer install === | ||
+ | |||
+ | From: http:// | ||
+ | |||
+ | < | ||
+ | sudo rsync -avP / | ||
+ | mv / | ||
+ | apache2ctl -M | ||
+ | sudo mkdir / | ||
+ | sudo chmod a+w / | ||
+ | sudo cp / | ||
+ | sudo chmod a+w / | ||
+ | |||
+ | rerun install | ||
+ | |||
+ | sudo chmod go-w / | ||
+ | sudo chmod go-w / | ||
+ | |||
+ | sudo nano / | ||
+ | |||
+ | < | ||
+ | Options Indexes FollowSymLinks | ||
+ | AllowOverride All | ||
+ | Require all granted | ||
+ | </ | ||
+ | |||
+ | sudo service apache2 restart | ||
+ | sudo systemctl restart apache2 | ||
+ | |||
+ | |||
+ | sudo chmod a+w / | ||
+ | sudo nano / | ||
+ | |||
+ | |||
+ | $settings[' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
+ | |||
+ | |||
+ | sudo chmod go-w / | ||
+ | </ | ||
==== Download Composer ==== | ==== Download Composer ==== | ||
Line 38: | Line 170: | ||
</ | </ | ||
- | From: | + | < |
+ | Ubuntu 17.04 | ||
+ | composer create-project drupal-composer/ | ||
+ | |||
+ | Results say: | ||
+ | Create a sites/ | ||
+ | Create a sites/ | ||
+ | </ | ||
+ | |||
+ | ==== Ubuntu Setup Virtual host for domain = wellcreateddomain.name ==== | ||
+ | |||
+ | From: https:// | ||
+ | |||
+ | < | ||
+ | Ubuntu 17.04 | ||
+ | |||
+ | sudo cp / | ||
+ | |||
+ | if need add to hosts | ||
+ | |||
+ | 127.0.0.1 wellcreateddomain.name | ||
+ | </ | ||
+ | |||
+ | sudo mkdir / | ||
+ | sudo chmod a+w / | ||
+ | sudo cp / | ||
+ | sudo chmod a+w / | ||
+ | |||
+ | rerun install | ||
+ | |||
+ | sudo chmod go-w / | ||
+ | sudo chmod go-w / | ||
+ | |||
+ | ==== Ubuntu after copy of Drupal to web location setup setting.php ==== | ||
+ | |||
+ | From: https:// | ||
+ | |||
+ | < | ||
+ | compose done - sudo mkdir / | ||
+ | compose done - sudo chmod a+w / | ||
+ | compose done - sudo cp / | ||
+ | compose done - sudo chmod a+w / | ||
+ | |||
+ | sudo chown -R www-data: | ||
+ | |||
+ | rerun install | ||
+ | |||
+ | sudo chmod go-w / | ||
+ | sudo chmod go-w / | ||
+ | |||
+ | </ | ||
software/drupal.1507488416.txt.gz · Last modified: 2017/10/08 18:46 by superwizard