Category Archives: Server configuration

this category in include Linux server configuration

How to install phpmyadmin in Ubuntu 18.04.1 LTS Server using source code.

Hello guys in this tutorial we are going to learn how to install phpmyadmin application using source code in ubuntu 18.04.1 LTS  Server. so without wasting time now we will start this tutorial step by step .
1 update our system package through below commands.

#sudo apt-get update 

2 now  we will install Apache server through below Commands.

#sudo apt-get install apache2 -y 

3 Then we will install php which one we want here in my case i want 7.2 version so i will be install 7.2 php version through below commands.

# apt install php7.2

4 Then we will install mysql-server through below commands.

#sudo apt-get install mysql-server -y

5 Then now we will going to /var/www/html directory and put phpadmin source code using wgit Command.

 #wget https://files.phpmyadmin.net/phpMyAdmin/4.8.0/phpMyAdmin-4.8.0-all-languages.zip

6 if you get error :Unable to establish SSL connection then you need to put below Commands  then continue stap 5 commands.

#openssl s_client -connect minecraft.net:443 -tls1

7 extract Phpmyadmin source code and rename the folder using below commands.

 
l# unzip phpMyAdmin-4.8.0-all-languages.zip
#rm -rf  phpMyAdmin-4.8.0-all-languages.zip
#mv phpMyAdmin-4.8.0-all-languages/ phpmyadmin

8 now we want to setup specify user for phpmyadmin directory we can do through below commands.

# sudo adduser phpmyadmin
Adding user `phpmyadmin' ...
Adding new group `phpmyadmin' (1001) ...
Adding new user `phpmyadmin' (1001) with group `phpmyadmin' ...
Creating home directory `/home/phpmyadmin' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for phpmyadmin
Enter the new value, or press ENTER for the default
Full Name []: admin
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
root@vishnuhost:/var/www/html# 

9 After finish user creating work we need to setup phpMyAdmin install wizard in phpmyadmin directory we can do this through below commands.

# cd phpmyadmin/
# sudo mkdir config
# sudo chmod o+rw config
# sudo cp config.sample.inc.php config/config.inc.php 
# sudo chmod o+w config/config.inc.php

10 now we will go  to our machine localhost or ip address in browser and type following commands.

#sudo apt-get install php7.2-mysqlnd

11 then we need to create mysql super admin user we can do it through below commands

# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.23-0ubuntu0.18.04.1 (Ubuntu)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> CREATE USER 'admin'@'%' IDENTIFIED BY 'admin';
Query OK, 0 rows affected (0.06 sec)
mysql> GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
mysql>\q 

12. Then we need to restart mysql service through below commands.

# sudo /etc/init.d/mysql restart 

13 . Now we are going in browser and type our server machine ip and phpmyadmin setup path like below screen short.

 

phpmyadmin install in ubuntu

14 then we will going to new server option and create new server we will put mysql-server user name ans password

15. Then we will put in browser server IP Address and phpmyadmin path like this. for example my ip address is 192.168.2.253/phjpmyadmin . Then maybe it’s possible you get error like this screen short .phpmyadmin configuration with source code Don’t worry we can easily fix this error through below  commands .

sudo apt-get install php-mysqlnd  

Then refresh the browser and look your phpmyadmin application login screen.

how to install phpmyadmin in linux how to install phpmyadmin in ubuntu

if you have any problem in this process please comments here I will see your problem or error. If  possible i will gave you solution otherwise like and follow my blog

Thank you

By- Vishnu Sharma

Advertisements

How to Configure samba Server in redhat Linux

hello guys today we will learn how to configure samba server in RedHat Linux Server. samba server is a very important in every operating system. we cam share any data one machine to another machine through samba Server. before samba server configuration we need to install some important package. if we want that our Linux machine in all  Package will be install  very easy so we need to YUM Server Configuration i have already write tutorial on yum Server. If you want to know that how to configure yum Server so click on my link and look

samba server

so here i agree your system in have yum server then we will continue

Step 1 = we will install samba Server package through this Commands 

[root@localhost ~]# yum install samba* -y 

Step 2 then we will Create directory for samba server 

[root@localhost ~]# mkdir ishu 

Step 3 now we will Create New User For Samba Interface 

[root@localhost ~]# useradd ishu
[root@localhost ~]# passwd ishu
Changing password for user ishu.
New UNIX password:ishu
BAD PASSWORD: it is too short
Retype new UNIX password:ishu 
passwd: all authentication tokens updated successfully.

Step 5 now we will provide full Permission for user through below Commands

[root@localhost ~]# chmod 7 ishu

Step 5 then we will gave samba user password through this commands

[root@localhost ~]# smbpasswd -a ishu
New SMB password:ishu
Retype new SMB password:ishu 
Added user ishu.

Step 6 Then we will on samba Serves

[root@localhost ~]# service smb restart
Shutting down SMB services:                                [FAILED]
Shutting down NMB services:                                [FAILED]
Starting SMB services:                                     [  OK  ]
Starting NMB services:

Step 7 now we will  off our fire wall and selinux  below Commands

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Step 8 now we will look our linux machine ip address through this commands

[root@localhost ~]# ifconfig
eth2      Link encap:Ethernet  HWaddr 08:00:27:35:57:7A
          inet addr:192.168.56.103  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe35:577a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:392911 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30439 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:552717032 (527.1 MiB)  TX bytes:3537248 (3.3 MiB)
          Base address:0xd248 Memory:f0840000-f0860000

Step 9 then we will go in windows system  and open Run windows and type jut linux machine ip address ip address

Step 10 Then we will enter samba user name and password 

if you have any problem in this process so comments here i will solve your problem

Thank you

my Vishnu Sharma

how to create virtual IP Address through real IP address and host multiple Website

hello guys today we will learn how to create virtual IP Address through real IP address and host multiple website on singles system. It’s a very simple process in RedHat Linux Server. Before we will install some necessary package for hosting Virtual IP address. if we want that   all type package install easily in your linux machine  so we have to need YUM server we can configure YUM Server very easily you just lick on my link and look  how to configure YUM server. After YUM server configure you just follow my simple Step

Step 1  here i agree that you have YUM server in our Linux machine then we will continue

[root@localhost ~]# ifconfig
eth2      Link encap:Ethernet  HWaddr 08:00:27:35:57:7A
          inet addr:192.168.56.103  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe35:577a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1933 errors:0 dropped:0 overruns:0 frame:0
          TX packets:632 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:183768 (179.4 KiB)  TX bytes:107123 (104.6 KiB)
          Base address:0xd248 Memory:f0840000-f0860000

 Step2  then we will virtual IP address Here kind this

[root@localhost ~]# ifconfig eth1:0 192.168.56.108

Step3  then we will install php package through yum server

[root@localhost ~]# yum install php* -y

Step4 then we will going following directory /var/www/html/ and here create any folder for our website hosting for example here i create two folder for my two web pages one is php folder two is html folder. And both folder in we will create html file 

[root@localhost ~]# cd /var/www/html/
[root@localhost html]# mk dir php
[root@localhost html]# mkdir html

Step5 here php and html folder in we will create any html files or our past our website content

[root@localhost php]# vim php.php
<?echo
echo "hello this is php demo ";
echo "hello this is php website host demo";
?>
~
~
~
:wq
[root@localhost ~]# cd /var/www/html/html
[root@localhost html]# vim html.html
<html>
<head>this is demo</head>
<title>Demo</title>
<body>
<h1> this is dual webhosting deno in linux machine </h1>
<h2>this dual  webhosting Demo with Virtual IP Address</h2>
</body>
</html>
~
~
~
:wq

Step5 then we will go Apache Configuration File and do something  below configuration

#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost 192.168.56.103:80>
DocumentRoot /var/www/html/php/
DirectoryIndex php.php
</VirtualHost>
<VirtualHost 192.168.56.108:80>
DocumentRoot /var/www/html/html/
DirectoryIndex html.html
</virtualHost>
"/etc/httpd/conf/httpd.conf" 1000L, 33934C

here we will configure document root  Directory index with real and virtual ip Address

Step 6 then we will restart serves below commands 

[root@localhost ~]# service httpd restart

Step 7 now we will off our Linux machine firewall and selinux through below commands  

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Step 8 then we will going to any browser in put our IP address and Virtual ip address. now we will look that our website is looking here

how to create virtual ip address

if you have any problem in this process so please comment here i will solve your problem

Thank you

by Vishnu sharma

 

how to configure FTP server in Redhat Linux Server part 1

hello guys today we will discuss how can we configure FTP(File Transfer protocol) Server in Redhat Linux Server .FTP server through we can download and upload any file or content.Its a very simple process if you follow my artical steps .so before we will install YUM server in our Linux machine because YUM is a very helpful service in package installation.if you want to know how to configure YUM in our linux machine so click on link and look   ftp serverso guys here i agree you configure YUM server in our ReadHat Linux Machine then we will contunue

step1= we will install Ftp package below commands 

[root@localhost ~]# yum install vsftpd* -y

Step2= then we will verify and start FTP service

[root@localhost ~]# service vsftpd restart
Shutting down vsftpd:                                      [  OK  ]
Starting vsftpd for vsftpd:                                [  OK  ]
[root@localhost ~]# service vsftpd status
vsftpd (pid 5668) is running...
[root@localhost ~]# chkconfig vsftpd on

Step3= Then we will off our machine firewall and selinux below commands 

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Ftp server is share /var/ftp directory if we have any data in  in this directory so client can download data through ftp server

Step4= then we will go Windows machine in and open any browser and put our linux IP Address

Ftp derver

then your Browser in open /var/ftp/ folder here you can download to here .we can also open FTP server in command prompt

if you have any problem in this process so comments here i will solve your problem

thank you

writer- Vishnu Sharma

How to configure Stelnet in redhat linux server

hello guys today we will discuss about secure telnet Server. basically secure telnet is a custom telnet its same copy of telnet server but here we will configure with our customize port.If you  want to know how to configure simple telnet server so click on link. before we telnet package in our linux machine. if we want we can install every type package easily  so  we need  to Yum server configuration you just click on link and look how to configure yum. Stelnet Server

Here I agree that you have configured YUM server in your machine

For any Tutorial visit linuxtiwary.com

Continue reading

How to configure NFS (Network File System )server in linux redhat

hello guys today we will configure NFS server in Linux redhat.if we configure  NFS Server in our Linux machine we can share easily  data each other easily. actually NFS server in share folder take real  space on server but all connected system in show visually. Linux server in NFS server is a very batter source of data sharing. so if you want to configure NFS server in your system so before configure YUM server in your system. yum Server is a very important in Linux we can install any package easily through YUM server. if you want to know how to configure yum server in our linux machine so click link and look

NFS server   here i agree you install yum server in your linux machine .then we start next Continue reading

How to configure Apache Web Server in RedHat Linux

hello guys today we will learn how to configure Apache web Server  in Linux redhat and also host web page with Apache  web server. We will also understand concept of web server that how to host any website in Redhat Linux server. So before you need to  Configure YUM server in our  Linux machine. if you don’t know how to configure yum in linux so click on  link and look . After YUM server configuration we can install any package in Linux very easily

Step 1 here i accept you configure Yum in your Linux machine so fist we will install Http package

 

[root@localhost ~]# yum install http*

Step 2 then we off our Linux machine IP Address and also Disable Firewall and seLinux through below Commands 

[root@localhost ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:93:6D:E8
          inet addr:192.168.56.101  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe93:6de8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:227 errors:0 dropped:0 overruns:0 frame:0
          TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20134 (19.6 KiB)  TX bytes:25158 (24.5 KiB)

Here my ip address is 192.168.56.101

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Step 3 then we will Start httpd Service and go to any browser Url bar and put our Linux machine ip Address 

[root@localhost ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

then we will look Apache web server description and instruction here    

Apache web server in linux Apache web server in linux

Step 2 now we will go our Linux terminal  and put below commands 

[root@localhost ~]# cd /var/www/html
[root@localhost html]#

Step3 here this directory in we will create simple Html page 

for example here i create index.html file

[root@localhost html]# vim index.html
<html>
<head> demo</head>
<title> Demo index File</title>
<body>
<h1> This is  Apache web Server Demo </h1>
<h2> you can found linux server all configureation in visworlditsolution.com</h2>
<marqoee><h2> visworlditsolution.com is a very help full website in it fields</h2></marqoee>\
</body>
</html>
~
~
~
:wq

Step4 then we will go  to Apache man configuration file and do something configure like this

[root@localhost html]# vim /etc/httpd/conf/httpd.conf
979 #
980 # VirtualHost example:
981 # Almost any Apache directive may go into a VirtualHost container.
982 # The first VirtualHost section is used for requests without a known
983 # server name.
984 #
985 #<VirtualHost *:80>
986 #    ServerAdmin webmaster@dummy-host.example.com
987 #    DocumentRoot /www/docs/dummy-host.example.com
988 #    ServerName dummy-host.example.com
989 #    ErrorLog logs/dummy-host.example.com-error_log
990 #    CustomLog logs/dummy-host.example.com-access_log common
991 #</VirtualHost>
992 <virtualHost 192.168.56.101:80>
993 DocumentRoot /var/www/html/
994 Directoryindex index.html
995 </VirtualHost>
:wq

Step5- we will restart httpd servies

[root@localhost html]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Thu Jan 19 05:05:47 2017] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.56.101 (check DNS) -- or specify an explicit ServerName
                                                           [  OK  ]
[root@localhost html]#

also check httpd below commands

[root@localhost html]# httpd -t

then we will on httpd  server below commands

chkconfig httpd on

 Step 6 now go to internet browser and type your linux machine ip address

web server Apache

Its a very simple process .if you have any problem in this process so please comments here i will solve your problem if you like my tutorial so follow my website like ,share,

Thank you

by Vishnu Sharma