• Home
  • WordPress
  • web Hosting
    • Free hosting
    • Cheap Hosting
    • comparison cloud , vps, shared, wordpress
    • managed wordpress hosting
    • managed cloud hosting
  • page Speed
  • Deals
  • Services
  • About

RAaz Kumar .com

wordpress tutorials seo hosting etc


Lamp stack install on Ubuntu 20.4 LTS apache, mysql, php 7.4(Debian 9 & Ubuntu 18.04 lts)

#1. Update software packages

To update os 20.4
you may wanna upgrade ubuntu 18.04 to 20.04 lts ,#here
sudo apt update  && sudo apt upgrade

#2 install apache server

sudo apt install -y apache2 apache2-utils
check apache2 sever status by this command.
systemctl status apache2
or
service apache2 status
if not running start the server manually
by this command
sudo systemctl start apache2
If unable to starts
check config errors by this command sudo apache2ctl -t
fix restart the server. Remove reinstall server by above command.
It’s a good idea to run this command to enable apache on boot (by default it’s run on boot). But just try this
sudo systemctl enable apache2
check apache 2 version
apache2 -v
Server version: Apache/2.4.41 (Ubuntu)
Now type your server ip address
You will see default index page of apache server.
Incase of blocked
first add exception to firewall
sudo ufw allow http
If ufw not installed,
Just install by this command
sudo apt install ufw (frontend of iptables)
sudo ufw allow http
assign apache server gruop to web directory
to avoid write permissions (, unable install WordPress plugins)
sudo chown www-data:www-data -R /var/www/html/

Domain mapping virtual hosts

sudo nano /etc/apache2/conf-available/servername.conf
servername yourwebsite.com
sudo a2enconf servername.conf && sudo service apache2 reload
Incase any errors.
check detailed information by this command
apache2ctl -t

Install MySQL server

Mariadb or MySQL
(MySQL community version improving much more than mariadb)
MySQL bought by Oracle, but free MySQL version continuing its legacy by name of mariadb contributing open source devolopers.
while MySQL free version by Oracle, along with their premium Oracle software.
sudo apt install mysql-server
follow instructions install 8.2 5.7 based on availability of repository with latest ubuntu 20.04
otherwise you can manually add MySQL 8.24 version repository to improved performance.
set MySQL password.
after installation completes.
systemctl status mysql-server
or
systemctl status mysql
2nd step securing
sudo mysql_secure_installation
set strong password && remove otherusers except root.
 
install php 7.4 through mod php (7.4 latest)
sudo apt install php7.4 libapache2-mod-php7.4 php7.4-
by above command you have installed, php 7 and php module for apache
to enable php_mod use this command
sudo a2enmod php7.4
but other php extensions required to run apache webserver
mysql php extensions
installing php -fpm on apache server
php-mod or php-fpm
(Note: you can only use only one either php_mod or php-fpm mod)
php-fpm has some advantages when you are using apache core module
as mpm-prefork
(threads ready to handle save memory)
Disable apache 7.4 module
sudo a2dismod php7.4
Install php-fpm module
sudo apt install php7.4-fpm
enable php-fpm module
sudo a2enconf php7.4-fpm
or
sudo a2enmod php7.4-fpm
Enable proxy_fcgi and setenvif module.
sudo a2enmod proxy_fcgi setenvif
sudo service  apache2 restart

Install phpmyadmin on Ubuntu 20.04

sudo apt update && sudo apt install phpmyadmin
select webserver as
apache2
create database & user as phpmyadmin
NO.(yes means a database & phpmyadmin user will be created, later you have to grant root permissions to phpmyadmin user).
Accessing phpmyadmin page
example.com/phpmyadmin
Vhost file
/etc/apache2/conf-enabled/phpmyadmin.conf
automatically generated while installing,
Otherwise manually configure it.
accessing phpmyadmin from subdomain or new
just edit the conf file
Add domain
sudo a2ensite phpmyadmin.conf
sudo systemctl reload apache2
Note: same commands works for Debian 9 & ubuntu 18.04 even with ubuntu 16.04.
if you are here for reshat family like CentOS,fedora
just change repository name apt to yum all works fine.

Related topics:

  1. phpmyadmin install / configure on nginx ubuntu 20.04 apache2 debian 10
  2. redis install ubuntu 20.04 with wordpress php redis mysql configuration
  3. install wordpress on ubuntu apache nginx debian command line
  4. letsencrypt install configure on ubuntu / debian nginx
  5. Letsencrypt SSL Installation on apache/Nginx ubuntu / debian wordpress

tutorials

  • Vivek Bindra Videos Transcription (business strategy)
  • git commands
  • new relic php agent install in 3 steps
  • new relic mysql install integration - 2 ways fix problems
  • new relic installation linux (infrastructure agent , php, mysql , nginx)
  • xampp tutorials 2021 installation errors fix wordpress phpmyadmin mysql apache
  • Redis performance metrics & tuning for nginx apache ubuntu & debian
  • Devops course Syllabus topics PDF AWS, Azure, cisco, redhat
  • CCNA Syllabus pdf (CCNA / CCNP vs devops vs mcsa /MCSE)
  • how to create a website free of cost on google
  • what is vpn vs proxy vs tor, http vs https, http2, tcp vs udp, kali linux sql source code injection
  • nginx server tutorials (installation, configuration, performance tuning, security)
  • MySQL Tutorial (create,connect database, update tables, export etc) Documentation & TIPS
  • AUdio Editing Background Noise removal (Audacity, Adobe Premiere Addition, Camtasia Filmora Windows Obs)
  • Android Studio tutorials syllabus Topics Course details #AndroidApplicationDevelopment
  • [INTRO] Ethical hacking / cyber Security / Penetration testing Tutorial -{updates frequently}
  • redis install ubuntu 20.04 with wordpress php redis mysql configuration
  • ubuntu tutorials installation download issues etc
  • Php tutorials
  • HTML & CSS Tutorials
  • Core Java Tutorial Free online
  • Linux sysadmin tutorials linux system administrator
  • apache server tutorial (install,config, performance tuning, security, error handling)
    • what is If-Modified-Since HTTP header how to add to Wordpress website
    • htaccess tutorial tips for wordpress #redirect #leverage browser cache #Gzip #KeepAlive
    • apache modules list (explained, enable disable)
    • connect to server by SSH client Putty SFTP client winscp LAMP, LEMP nginx apache etc linux
    • Lamp stack install on Ubuntu 20.4 LTS apache, mysql, php 7.4(Debian 9 & Ubuntu 18.04 lts)
    • apache performance tuning mpm-worker vs prefork vs event modules
    • enable caching in apache server (mod cache disk cache) vs fastcgi cache
    • how to enable KeepAlive connections in apache nginx wordpress
    • Cache control Header & expires headers How to set Properly
    • apache2 conf sample explained apache configuration file modules etc
    • restart apache in ubuntu (start | stop | reload | config test) centos debian mac linux windows 10 xampp
    • uninstall apache2 ubuntu in 3 steps Debian

 

 

wordpress Pagespeed optimization

Digitalocean free $100 Credit

Cloudways Review pricing promo codes

Siteground cpu limits Pricing

Shared Hosting

Managed wordpress Hosting

Managed Hosting Cloud server

VPS Hosting

Cloud Hosting – Unmanaged

Google cloud Pricing

Aws Pricing

Azure pricing

nginx server tutorials

apache server tutorials

linux sysadmin tutorials

mysql Commands list pdf

LEMP Install Ubuntu

Mysql Performance Tuning

Nginx Performance tuning

Linux Performance tuning

Php -fpm performance tuning

Redis Performance tuning

linux server security

nginx security best practices

wordpress security plugins

 

 

wordpress

 

Top 5  WP Google Analytics Plugins

WP Backup Plugins

Wp Comment Plugins

Top wordpress Security Plugins

WP Seo Plugins

WP Caching Plugins

Best Adsense Plugins for WordPress

Wp social Sharing Plugins

autoshare social media plugins

WP speed Optimization Plugins

Speedup WordPress google Score

More Wp tuts

Server Admin Cloud

 

Installing Nginx LEMP On ubuntu

Installing apache Lamp ubuntu

nginx fastcgi cache enable

php – fpm install  & Configuration

Opcache install & Configure

php -fpm pool manager explained

Mysql Install & Configuration

Redis Object cache install & configure

 

Nginx as Reverse Proxy and Load balancer

Load Balance / auto scaling in google cloud

Linux Commands PDF

Mysql Commands Pdf

Letsencrypt tutorial

mysqldump export & import 

Pagespeed Module install & configure

nginx.conf best file

mysql.conf best file

upgrade ubuntu

© 2023 - All Rights Reserved Disclaimer & Privacy Policy