Local computer: Ubuntu 18.04 Instance Simple Hosting: PHP 7.3 + MySQL 5.7 Drupal : 8.9.1 On your personal computer, please follow these steps to install the latest version of Drupal.
sam@sam:~$ mkdir -p INSTALL/DRUPAL sam@sam:~$ cd INSTALL/DRUPAL/ sam@sam:~/INSTALL/DRUPAL$
sam@sam:~/INSTALL/DRUPAL$ wget https://ftp.drupal.org/files/projects/drupal-8.9.1.tar.gz
sam@sam:~/INSTALL/DRUPAL$ tar xvfz drupal-8.9.1.tar.gz
sam@sam:~/INSTALL/DRUPAL$ rm drupal-8.9.1.tar.gz
sam@sam:~/INSTALL/DRUPAL$ mv drupal-8.9.1 htdocs
sam@sam:~/INSTALL/DRUPAL$ mv htdocs/composer.* .
Open :
composer.json
Search :
"drupal-scaffold": { "locations": { "web-root": "./" } }, "installer-paths": { "core": [ "type:drupal-core" ], "libraries/{$name}": [ "type:drupal-library" ], "modules/contrib/{$name}": [ "type:drupal-module" ], "profiles/contrib/{$name}": [ "type:drupal-profile" ], "themes/contrib/{$name}": [ "type:drupal-theme" ], "drush/Commands/contrib/{$name}": [ "type:drupal-drush" ], "modules/custom/{$name}": [ "type:drupal-custom-module" ], "themes/custom/{$name}": [ "type:drupal-custom-theme" ] },
Replace by :
"drupal-scaffold": { "locations": { "web-root": "./htdocs" } }, "installer-paths": { "htdocs/core": [ "type:drupal-core" ], "htdocs/libraries/{$name}": [ "type:drupal-library" ], "htdocs/modules/contrib/{$name}": [ "type:drupal-module" ], "htdocs/profiles/contrib/{$name}": [ "type:drupal-profile" ], "htdocs/themes/contrib/{$name}": [ "type:drupal-theme" ], "htdocs/drush/Commands/contrib/{$name}": [ "type:drupal-drush" ], "htdocs/modules/custom/{$name}": [ "type:drupal-custom-module" ], "htdocs/themes/custom/{$name}": [ "type:drupal-custom-theme" ] },
sam@sam:~/INSTALL/DRUPAL$ git init .
sam@sam:~/INSTALL/DRUPAL$ git add -A
sam@sam:~/INSTALL/DRUPAL$ git commit -m "Version 0.0.1"
sam@sam:~/INSTALL/DRUPAL$ git remote add gandi git+ssh://3918075@git.sd3.gpaas.net/26caca6510ba42b3b7147bec779f491c.yatu.ws.git
sam@sam:~/INSTALL/DRUPAL$ git push gandi master
sam@sam:~/INSTALL/DRUPAL$ ssh 3918075@git.sd3.gpaas.net deploy 26caca6510ba42b3b7147bec779f491c.yatu.ws.git
http://26caca6510ba42b3b7147bec779f491c.yatu.ws/
sftp> pwd Remote working directory: /lamp0/web/vhosts/26caca6510ba42b3b7147bec779f491c.yatu.ws sftp> ls composer.json composer.lock htdocs vendor sftp>
sftp> pwd Remote working directory: /lamp0/web/vhosts/26caca6510ba42b3b7147bec779f491c.yatu.ws/htdocs sftp> ls INSTALL.txt LICENSE.txt README.txt autoload.php core example.gitignore index.php modules profiles robots.txt sites themes update.php web.config