Downloading Drupal on a Web Server is as easy as 1 2 3, there are majorly two options to download Drupal on a Webserver and they are listed as follows
Manual Download
This method is recommended when you do not have SSH access of the server, you can download the latest version of drupal from https://www.drupal.org/project/drupal in a tar.gz or zip format.
Once you have downloaded the file you will need to upload the same on the Server using any of the FTP tools or Web Hosting provided panel on the web root (generally public_html directory) of the server, in case your hosting provider provides you with the achieve utility you can upload the tar.gz or .zip file directly and uncompress them to the public_html folder, in case this facility is not available you should uncompress the file and upload the extracted version directly in public_html directory.
Composer Based Download (Recommended)
We have already seen steps to install Composer in the previous chapter. I recommend this option for installing Drupal on a webserver as this provides a better dependency control mechanism. Once you have installed Composer on your webserver use the following steps to download Drupal
Creation of Project
Create a Project Directory on your webserver
[dev.nagar.me]$ composer create-project drupal/recommended-project project_name_dir
The above command will download the Latest Recommended Version (Currently Drupal 9.1.10) with all the dependencies into a directory named as project_name_dir. This Directory contains a sub-directory named as web which must be mapped as your Web Root Directory (generally public_html) for the website, this can be achieved by creating a symbolic link of web directory to the web root directory as follows
[dev.nagar.me]$ ln -s project_name_dir/web public_html
The above command works considering public_html directory as the Web Root Directory.
Once you have Downloaded Drupal by using any of the Options outlined above you can proceed to the installation as outlined in the next chapter.
- Log in to post comments