Drupal 8.9.1 on Simple Hosting ‘PHP 7.3 + MySQL 5.7’
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.
1/ Create your working directory.
sam@sam:~$ mkdir -p INSTALL/DRUPAL
sam@sam:~$ cd INSTALL/DRUPAL/
sam@sam:~/INSTALL/DRUPAL$
2/ Download the latest version of Drupal.
sam@sam:~/INSTALL/DRUPAL$ wget https://ftp.drupal.org/files/projects/drupal-8.9.1.tar.gz
3/ Uncompress the archive.
sam@sam:~/INSTALL/DRUPAL$ tar xvfz drupal-8.9.1.tar.gz
4/ Remove the archive.
sam@sam:~/INSTALL/DRUPAL$ rm drupal-8.9.1.tar.gz
5/ Rename the main directory to ‘htdocs’.
sam@sam:~/INSTALL/DRUPAL$ mv drupal-8.9.1 htdocs
6/ Move ‘composer’ file to the root directory.
sam@sam:~/INSTALL/DRUPAL$ mv htdocs/composer.* .
7/ Directory paths modification.
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"
]
},
8/ Initialize the local git repository.
sam@sam:~/INSTALL/DRUPAL$ git init .
9/ Add all files.
sam@sam:~/INSTALL/DRUPAL$ git add -A
10/ Create a commit with a comment.
sam@sam:~/INSTALL/DRUPAL$ git commit -m "Version 0.0.1"
11/ Add the Gandi remote branch.
sam@sam:~/INSTALL/DRUPAL$ git remote add gandi git+ssh://3918075@git.sd3.gpaas.net/26caca6510ba42b3b7147bec779f491c.yatu.ws.git
12/ Push the commit to the Gandi remote branch.
sam@sam:~/INSTALL/DRUPAL$ git push gandi master
13/ Deploy the application in the ‘htdocs’ directory with all components.
sam@sam:~/INSTALL/DRUPAL$ ssh 3918075@git.sd3.gpaas.net deploy 26caca6510ba42b3b7147bec779f491c.yatu.ws.git
14/ Create a new database with PhpMyAdmin.
15/ Drupal configuration page from the test internet address of your website.
http://26caca6510ba42b3b7147bec779f491c.yatu.ws/
16/ Delete the ‘vendor’ directory in ‘htdocs’ because the real ‘vendor’ directory is in the same level of ‘htdocs’.
17/ The structure of Drupal website.
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
Comments are closed, but trackbacks and pingbacks are open.