Drupal, which is found to be open source, is a building platform, which is used by people all around the world, to share their experiences online.
Below are the steps to install Drupal with Git.
LAMP server
Click here if you are having trouble installing LAMP server
phpmyadmin
Composer
Git
If, other than your homepage, other links are displaying 404 Page Not Found, you have to make sure mod_rewrite is enabled and running correctly on your lamp server.
How to check if mod_rewrite is enabled?
Open your browser and type 'localhost/phpinfo.php' and search for Loaded Modules. If mod-rewrite is there, then Drupal should be working properly.
If it's not enabled, run:
Then, Restart apache
Below are the steps to install Drupal with Git.
Requirements:
Steps:
- To start, you need to clone drupal repository from github Wait for it...
- Then move the necessary files from the cloned folder to your root directory
- Run Composer with root permission after moving all the necessary files Wait for it...
- From the terminal, access your mysql interface by running the following command: Don't forget to replace username with your actual username for your mysql-server.
- The following are mysql commands, which will be used to create the database, and grant some privileges to it, in order for drupal to create the necessary tables.
- You're just one step before the installation of drupal. The only thing remaining is the set proper permissions to the necessary folders inside drupal, and the settings.php file is to be present in the directory.
- You could change the permission of the whole root directory OR change permissions of settings.php and the folder sites/default/files
- After creating the database, Run the install script by opening up your Browser and type the ServerName, which is usually 'localhost'
- Installing Drupal
- You may face some errors on the next page, displaying requirements reviews. Make sure you meet all the requirements needed, specially, concerning the clean urls, before proceeding
- You're done. Drupal should now be running successfully on your browser.
Creating the database with mysql
CREATE DATABASE drupal;
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupal.* TO 'usernanme'@'localhost' IDENTIFIED BY '$Your$Pas$w0rd134';
FLUSH PRIVILEGES;
exit
Common Issues faced while installing Drupal
404- Page Not FoundIf, other than your homepage, other links are displaying 404 Page Not Found, you have to make sure mod_rewrite is enabled and running correctly on your lamp server.
How to check if mod_rewrite is enabled?
Open your browser and type 'localhost/phpinfo.php' and search for Loaded Modules. If mod-rewrite is there, then Drupal should be working properly.
If it's not enabled, run:
Then, Restart apache