User Tools

Site Tools


software:drupal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:drupal [2017/10/07 04:44] superwizardsoftware:drupal [2018/10/18 22:43] (current) superwizard
Line 1: Line 1:
-====== Setup Drupal with Composer ======+====== change Password of User using PHPMyAdmin ======
  
-==== Download Composer ==== +From: https://www.wpbeginner.com/beginners-guide/how-to-reset-a-wordpress-password-from-phpmyadmin/
- +
- +
- +
- +
- +
-From: https://getcomposer.org/download/+
  
 <code> <code>
-Download Composer+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. 
  
-Run this in your terminal to get the latest Composer version:+Your password will be encrypted using the MD5 hash and then it will be stored in the database. 
  
-php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" 
-php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" 
-php composer-setup.php 
-php -r "unlink('composer-setup.php');" 
 </code> </code>
  
 +====== Setup Drupal with Composer Setup on Ubuntu for personal use ======
  
-From: https://github.com/drupal-composer/drupal-project +NOTE: /var/www/html/web/core has very good install txt files.
- +
-<code> +
-Composer template for Drupal projects +
- +
-This project template should provide a kickstart for managing your site dependencies with Composer. +
- +
-If you want to know how to use it as replacement for Drush Make visit the Documentation on drupal.org. +
-</code> +
- +
-From:  +
- +
- +
-====== Turnkey Drupal ====== +
- +
-From: https://hub.turnkeylinux.org/pricing/ +
- +
-<code> +
-Rapidly explore and deploy 100+ ready-to-use server apps in the Amazon EC2 cloud. Only a browser required. +
- +
-You asked us to make TurnKey even easier. We did. Deploying TurnKey on-demand in the cloud frees you from having to download of hundreds of MBs per appliance image, setup extra software and hardware for virtualization, or ask special favors from IT staff. +
-</code> +
- +
-====== Setup on Ubuntu for personal use ======+
  
 === First Setup LAMP === === First Setup LAMP ===
Line 70: Line 39:
 sudo apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0 sudo apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0
 sudo service apache2 restart sudo service apache2 restart
 +sudo systemctl restart apache2
 http://localhost/phpmyadmin/ http://localhost/phpmyadmin/
 U: root U: root
Line 119: Line 89:
 </code> </code>
  
-=== Setup Drupal website ===+=== Setup Drupal website Without Composer See next section for Composer install ===
  
 From: http://linoxide.com/ubuntu-how-to/install-drupal-7-x-apache-2-x-ubuntu/ From: http://linoxide.com/ubuntu-how-to/install-drupal-7-x-apache-2-x-ubuntu/
Line 146: Line 116:
  
 sudo service apache2 restart sudo service apache2 restart
 +sudo systemctl restart apache2
  
-sudo nano /var/www/html/sites/default/settings.php+ 
 +sudo chmod a+w /var/www/html/web/sites/default/settings.php 
 +sudo nano /var/www/html/web/sites/default/settings.php
  
  
Line 156: Line 129:
 ); );
  
 +
 +sudo chmod go-w /var/www/html/web/sites/default/settings.php
 +</code>
 +
 +==== Download Composer ====
 +
 +From: https://getcomposer.org/download/
 +
 +<code>
 +Download Composer
 +
 +Run this in your terminal to get the latest Composer version:
 +
 +php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
 +php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
 +php composer-setup.php
 +php -r "unlink('composer-setup.php');"
 +</code>
 +
 +==== Install Globally ====
 +
 +From: https://getcomposer.org/doc/00-intro.md
 +
 +<code>
 +mv composer.phar /usr/local/bin/composer
 +</code>
 +
 +==== create the project ====
 +
 +From: https://github.com/drupal-composer/drupal-project
 +
 +<code>
 +composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction
 +
 +Composer template for Drupal projects
 +
 +This project template should provide a kickstart for managing your site dependencies with Composer.
 +
 +If you want to know how to use it as replacement for Drush Make visit the Documentation on drupal.org.
 +</code>
 +
 +<code>
 +Ubuntu 17.04
 +composer create-project drupal-composer/drupal-project:8.x-dev  /var/www/html/ --stability dev --no-interaction
 +
 +Results say:
 +Create a sites/default/settings.php file with chmod 0666
 +Create a sites/default/files directory with chmod 0777
 +</code>
 +
 +==== Ubuntu Setup Virtual host for domain = wellcreateddomain.name ====
 +
 +From: https://help.ubuntu.com/14.04/serverguide/serverguide.pdf
 + 
 +<code>
 +Ubuntu 17.04
 +
 +sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/wellcreateddomain.conf
 +
 +if need add to hosts
 +
 +127.0.0.1 wellcreateddomain.name
 +</code>
 +
 +sudo mkdir /var/www/html/sites/default/files
 +sudo chmod a+w  /var/www/html/sites/default/files
 +sudo cp /var/www/html/sites/default/default.settings.php  /var/www/html/sites/default/settings.php
 +sudo chmod a+w /var/www/html/sites/default/settings.php
 +
 +rerun install
 +
 +sudo chmod go-w /var/www/html/sites/default/settings.php
 +sudo chmod go-w  /var/www/html/sites/default
 +
 +==== Ubuntu after copy of Drupal to web location setup setting.php ====
 +
 +From: https://linoxide.com/ubuntu-how-to/install-drupal-7-x-apache-2-x-ubuntu/
 + 
 +<code>
 +compose done - sudo mkdir /var/www/html/web/sites/default/files
 +compose done - sudo chmod a+w  /var/www/html/web/sites/default/files
 +compose done - sudo cp /var/www/html/web/sites/default/default.settings.php  /var/www/html/sites/default/settings.php
 +compose done - sudo chmod a+w /var/www/html/web/sites/default/settings.php
 +
 +sudo chown -R www-data:www-data /var/www/html/web
 +
 +rerun install
 +
 +sudo chmod go-w /var/www/html/web/sites/default/settings.php
 +sudo chmod go-w  /var/www/html/web/sites/default
 +
 +</code>
 +
 +
 +====== Turnkey Drupal ======
 +
 +From: https://hub.turnkeylinux.org/pricing/
 +
 +<code>
 +Rapidly explore and deploy 100+ ready-to-use server apps in the Amazon EC2 cloud. Only a browser required.
 +
 +You asked us to make TurnKey even easier. We did. Deploying TurnKey on-demand in the cloud frees you from having to download of hundreds of MBs per appliance image, setup extra software and hardware for virtualization, or ask special favors from IT staff.
 </code> </code>
  
software/drupal.1507351458.txt.gz · Last modified: 2017/10/07 04:44 by superwizard