Install XAMPP
keep the xampp-linux-x64-7.1.21-0-installer.run on the desktop
move the xampp-linux-x64-7.1.21-0-installer.run to the '/opt'
cd Desktop
sudo mv xampp-linux-x64-7.1.21-0-installer.run /opt/
change the directory to '/opt'
cd /opt/
give the read, write and execute command to the xampp file
sudo chmod 777 xampp-linux-x64-7.1.21-0-installer.run
run the xampp installer file by the command
sudo ./xampp-linux-x64-7.1.21-0-installer.run
bitnami window window will open-> click on next, next and then at last finish
xampp window will open -> go to manage servers -> start all servers
type localhost on the browser
Command to Start Xampp through GUI from terminal
sudo /opt/lampp/manager-linux-x64.run
Install Drupal 8.5.6
extract the drupal.tar.gz file by double clicking->select drupal folder-> click extract ->extract
rename the directory drupal-8.5.6 to dru (for our convenience and for first example)
go to the Desktop Directory from command prompt
sudo mv dru /opt/lampp/htdocs/
Test Drupal
we can now verify whether Drupal has installed correctly:
Open your web broswer.
Enter the following address:
http://localhost/dru
Create a Database
In this section, we create a new database for Dru to store data:
Open your web browser.
Enter the following address:
http://localhost/phpmyadmin/
create a new database by clicking new
give the database name as dru(NOTE: the database name should be same as drupal folder name)
in our case the name given is dru
database name:dru
utf8_general_ci
click on create
click on privileges-> Add user account
you can give any name
user name:dru
choose host name:local
password:dru
retype password:dru
in global privileges check the check all option
then click on go option
then in Administrator section check grant
then again click on go
go to the browser choose language for drupal
english -> save and continue
choose standard ->save and continue
--------------------------------------------------------------
in verify requirements you will get
Errors found
Hide File system
Writable (public download method)
The directory sites/default/files does not exist. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the installation, either create the directory and modify its permissions manually or ensure that the installer has the permissions to create it automatically. For more information, see INSTALL.txt or the online handbook.
----------------------------------------------------------------
to fix above error
create a directory in sites/default/files
cd /opt/lampp/htdocs/dru
sudo mkdir sites/default/files
sudo chmod a+w sites/default/files
---------------------------------------------------------------
Errors found
Hide Settings file
The Settings file does not exist.
The Drupal installer requires that you create a ./sites/default/settings.php as part of the installation process. Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php. More details about installing Drupal are available in INSTALL.txt.
---------------------------------------------------------------
go to the directory
/opt/lampp/htdocs/dru/sites/default
cp default.settings.php settings.php
sudo chmod a+w settings.php
click on try again
--------------------------------------------------------------
Warnings found
Hide PHP OPcode caching
Not enabled
PHP OPcode caching can improve your site's performance considerably. It is highly recommended to have OPcache installed on your server.
------------------------------------------------------------
go to the directory
/opt/lampp/etc
type sudo gedit php.ini
search for
zend_extension=opcache.so
delete the semicolon(;)symbol
max_execution_time = 3000
max_input_time = 1200
memory_limit = 1024M
save the php.ini file
go to the xampp window stop all server and restart all
back to the drupal page and click retry
----------------------------------------------------------
it will ask you database name
dru
database username
dru
database password
dru
save and continue
It will take some time
for installing all modules of drupal
After installing all modules remove write permission
sudo chmod go-w sites/default/files
go to the directory
/opt/lampp/htdocs/dru/sites/default
sudo chmod go-w settings.php
cd /opt/lampp/htdocs/dru
sudo chmod go-w sites/default/files