• 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

install wordpress via command line apache nginx ubuntu debian

install WordPress via command line for ngix and apache lamp & lemp stack.
LAMP installation on ubuntu & debian  //Apache
sudo apt install apache2
sudo apt install mysql-server
sudo apt install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php
sudo service apache2 restart
LEMP nginx
sudo apt install nginx
sudo apt install mysql-server
sudo apt install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml sudo service nginx restart
check browser and then follow wp installation
//  Take care of errors
Start here if already have live server.

WordPress installation on Apache / nginx ubuntu Debian goes here

step 1: Navigate to the directory where you want to install or create new directory and navigate there
Sudo mkdir /home/user/www/burnbelly.in
chmod to 755
chmod -R 755 /home/pubclubindia/epf/burnbelly.in
cd /home/pubclubindia/epf/burnbelly.in
step 2: Download WordPress & Unzip
wget http://wordpress.org/latest.tar.gz
unzip tar
tar xfz latest.tar.gz
By default WordPress extracts in WordPress folder. then you have to move top level folder
step 3:  and delete the existing WordPress folder.
mv wordpress/* ./
step 4: Delete folder and zip archive
rmdir ./wordpress/
rm -f latest.tar.gz
Creation  database from command line
mysql -u username -p  u=seranme p=passowrd
mysql -u root -p enter this command and enter sql password.
Step 2 create database dbname;
 
create database burnbelly;
 
For mysql root no need to assign privileges.
 
grant usage on *.* to username@localhost identified by ‘password’;
grant all privileges on dbname.* to username@localhost;
use burnbelly;
 
you get message like database changed
 
 
 
 
Edit wp-config.php
 
added db details.
 
 
sudo nano ./wp-config-sample.php
 
 
by deaflut wp-config.php not present in new install
we have added changes to wp-config-sample.php
Delete a MySQL Database on Linux via Command Line
DROP DATABASE burnbelly;
i have not added vhost file in apache.

sudo nano /etc/apache2/sites-available/epfouanloginportal.co.in.conf

sudo chown pubclubindia:pubclubindia /etc/apache2/sites-available/epfouanloginportal.co.in.conf

if root permission not there

past this
<VirtualHost *:80>
ServerAdmin pubclubindia@gmail.com
ServerName eaadharcarddownload.co.in
ServerAlias www.eaadharcarddownload.co.in
DocumentRoot /home/user/eaadharcarddownload.co.in
<Directory /home/user/eaadharcarddownload.co.in/>
Options Indexes FollowSymLinks MultiViews
Options All
AllowOverride All
Require all granted
</Directory>
ErrorLog /home/user/eaadharcarddownload.co.in/error.log
</VirtualHost>

sudo ln -s /etc/apache2/sites-available/aeaadharcarddownload.co.in.conf /etc/apache2/sites-enabled/aeaadharcarddownload.co.in.conf

or you can navbigate to cd /etc/apache2/sites-available/

and run this command sudo ln -s /etc/apache2/sites-available/burnbelly.in.conf

sudo here root level access i am not root user but own apachge directory

apachectl configtest

check for syntax error before restart becuase apache not able to start again.

sudo service apache2 reload

cheeck your website on browser.

 

2nd way (check back)

install wordpress via command line

step 1: Navigate to the directory where you want install or create new directory and naigate there

sudo mkdir /home/user/eaadharcarddownload.co.in
chmod to 755

sudo chown pubclubindia:pubclubindia /home/user/eaadharcarddownload.co.in

chmod -R 755 /home/user/eaadharcarddownload.co.in

cd /home/user/eaadharcarddownload.co.in

step 2: Download wordpress & Unzip

wget http://wordpress.org/latest.tar.gz

unzip tar

tar xfz latest.tar.gz

By deafult wordrepss extracts in wordpress folder. then you have to move uplevel folder

step 3: and delete the exiting wordpress foder.

mv wordpress/* ./

step 4: Delete folder and zip archive

rmdir ./wordpress/
rm -f latest.tar.gz

Creation database from command line

mysql -u username -p u=seranme p=passowrd

mysql -u root -p enter this command and enter sql passwoprd.
mysql -u root -pRajuginne23@#

Step 2 create database dbname;

create database adhar;

For mysql root no need to assign privileges.

grant usage on *.* to username@localhost identified by ‘password’;
grant all privileges on dbname.* to username@localhost;

use adhar;

you get message like databse changed

CTRL+C to exit mysql

Edit wp-config.php (we can add database details 3 ways command line, browser and filemanager client)

add db details.
change table prefix

sudo nano ./wp-config-sample.php

or sudo nano ./wp-config.php

by deaflut wp-config.php not present in new install

we have added chages to wp-config-sample.php

rename filename in linux

mv wp-config-sample.php wp-config.php

rename -v wp-config-sample.php wp-config.php

Delete a MySQL Database on Linux via Command Line

DROP DATABASE burnbelly;

i have not added vhost file in apache

link vhost conf file from sites-avilable to sites-enabled in apache directory

chown

sudo chown -R netjob.p.871:netjob.p.871 /var/www/

change apache.conf

apache htaccess allow rewrite

sudo nano /etc/apache2/sites-available/default

Once inside that file, find the following section, and change the line that says AllowOverride from None to All. The section should now look like this:

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

sudo chown -R pubclubindia:pubclubindia /home/user/
rm -rf /home/user/wp-content/cache/object

<Directory /home/user/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

sudo chown -R jagdisshanandh:jagdisshanandh /var/www/*

 

nginx wp install

Part 1 DB creation part

1.mysql -u root -prootpass -e “create database dbname;”

user creation example below:

sudo mysql -e “CREATE USER ‘datadog’@’localhost’ IDENTIFIED BY ‘h3ub7BmyGv UL5TskBFlG9rF’;”
mysql -u root -prootpasss -e “CREATE USER ‘datadog’@’localhost’ IDENTIFIED BY ‘h3ub7BmyGv UL5TskBFlG9rF’;”

Part 2 wp & db details add

sudo mkdir /var/www/html/website.com && cd /var/www/html/website.com && wget https://wordpress.org/latest.tar.gz && tar xfz latest.tar.gz && mv wordpress/* ./ && rmdir ./wordpress/ && rm -f latest.tar.gz && mv wp-config-sample.php wp-config.php && sudo nano ./wp-config.php

b. Change database details c. save file and exit by (CTRLX+X and Then type and Press Enter)

tail /var/log/nginx/error.log

Part 3 Vhosts setup

cat >/etc/nginx/sites-enabled/website <<EOF
server {
listen 80;
root /var/www/html/website/;
server_name website.com www.website.com;
include /etc/nginx/conf.d/global.config;
}
EOF

nginx -t && nginx -s reload

//ln -s /etc/nginx/sites-available/website.com /etc/nginx/sites-enabled/website.com

chown www-data:www-data -R /var/www/html/

1.
Point domain IP to Server IP.

 

migration server apache to nginx

 

navigate to the directory

cd /home/pubclubindia/epf/theonlineking.com

zip -r zipfilename.zip folder name

zip -r king.zip theonlineking.com

backup sql

know the database name by wp-config.php

export

mysql -u root -psqlpass king > /home/pubclubindia/epf/theonlineking.com/a.sql

import command
mysql -u root -psqlpass king < /var/www/html/king.sql

mysql login

mysql -u root -p

mysql -u root -psqlpass

create database king;

Next vhost nnginx

 

grant permissions to server user

chown www-data:www-data -R /var/www/html/

 

Related topics:

  1. phpmyadmin install / configure on nginx ubuntu 20.04 apache2 debian 10
  2. install lemp Linux, Nginx 1.15.12, MySQL 8, PHP fpm 8 on Ubuntu 20.04 #wordpress #digital ocean
  3. Lamp stack install on Ubuntu 20.4 LTS apache, mysql, php 7.4(Debian 9 & Ubuntu 18.04 lts)
  4. Letsencrypt SSL Installation on apache/Nginx ubuntu / debian
  5. letsencrypt install configure on ubuntu / debian nginx

Ask a Question: Cancel reply

Your email address will not be published. Required fields are marked *

eleven − 6 =

 

PUBG Mobile Tips & Tricks

free fire how to play (a-z guide) guns, tips &#038; tricks etc

Windows 10 tips & tricks

Pagespeed optimization

Pc building tips & tricks

nginx server tutorials

apache server tutorials

linux sysadmin tutorials

mysql Commands list pdf

Android studio tutorials

Gaming/ streaming tips

Airtel dth channel list

 

wordpress tutorials for beginners advanced complete guide to run WordPress

  • Wordpress errors and fix
  • How to add adsense amp ads to wordpress
  • wordpress password reset in 3 ways mail, phpmyadmin, mysql command
  • how i recovered hacked website site 5 times ft wordpress?
  • enable browser caching in wordpress apache nginx caching headers explained
  • W3TC w3 total cache plugin setup guide review comparison with wp rocket and wp super cache
  • Wordpress database optimization (don't neglect) plugins & phpmyadmin manually
  • Optimize css delivery inline critical css, remove unused css, render blocking css
  • Converting WordPress into static website speed after 1 second dynamic 3 seconds
  • website cache best caching plugins wordpress w3tc cloudflare
  • Rules to get 100/100 in Google pagespeed insights score
  • Install xamp & wordpress on localhost windows
  • Change / Add / Disable favicon in wordpress Ft Genesis Theme or any theme
  • recommended php memory limit for wordpress (which one) 40MB , 64 MB 128 MB or 512 MB maybe 1024MB
  • wp cron job check working or not disable enable change schedule
  • google analytics plugins for wordpress 2021 #sitekit #monsterinsights gadwp back as gainwp
  • Lazy Load Adsense to improve core web vitals - Vs revenue
  • xmlrpc php wordpress uses, disable without 403 error log message
  • wordpress plugins that slow down your site and its alternatives
  • best wordpress plugins social, seo, Backup, speed up your blog
  • TOP 10 Wordpress Themes Premium/ Free & providers
  • Wordpress Adsense Plugins & Manually
  • Social share buttons for website Wordpress Blogger
  • How to bulk delete in wordpress posts, pages, Media Images, tags and categories
  • TOP 5 Best wordpress comment plugins 2020 (disable pingback, replytocom, customize form)
  • all in one seo pack vs yoast seo pressor
  • Auto post to Facebook, twitter, Google Plus Wordpress Posts 2019
  • wordpress speed optimization 2021 - Speed up wordpress Score on Google pagespeed
  • How to use wordpress tags and categories
  • Wordpress duplicate thin content Issues {FIXED}
  • how to increase wordpress memory & file upload size
  • combine rss feeds wordpress
  • Reduce the impact of third-party code ,optimize JS delivery, Minify, remove unused js, pre connect, inline, lazy load etc
  • change wordpress site url
  • install wordpress via command line apache nginx ubuntu debian
  • Top 3+ Wordpress Security Plugins 2020 (Brute force, Login lockdown, Malware scanner etc)

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

© 2021 - All Rights Reserved Disclaimer & Privacy Policy