INSTALL WEB SERVER
Oh Snap!

Please turn off your ad blocking mode for viewing your site content

img

INSTALL WEB SERVER

/
/
/
299 Views

 

This Web tutorial is based on Ubuntu or any Linux derived from Debian  

 

Guide:

Note: I like to have my root password to use the su command and not automatically use sudo every time is totally ANNOYING:
 
So we enter: 
 
sudo passwd root 
 
Enter user password and we enter the new password
 
Ahora usaremos el comando su aunque los comando estarán con sudo porque se que más de uno no hará esto y creerá que la guía no le funciono 
 
his
And we enter the password of the root user 
 

IN THE TERMINAL 

 
1) We update the system
sudo apt-get update
 
 
2 We install apache
sudo apt install apache2
 
We see if it is installed in localhost for this we open the preferred browser
and we put localhost:

 

Demonstrative image.
 
 
3)We mess with our ip to the browser 
sudo ifconfig 
 
 
 
4) we edit the index as we want to want the web page of the web server
sudo nano /var/www/html/index.html 
 
5) Now we enter the host file 
sudo nano /etc/hosts 
 
 We edit the localhost with a url
 
 
6) install mysql 
 sudo apt install mysql-server 
 
 
 
7) we install php5 and phpmyadmin 
sudo apt install phpmyadmin
sudo apt install php7.0               7.0 = equal to php version 
 
Once the phpmyadmin is installed, this message will appear and we select apache2 and choose the Mysql password
 
 
8) Creamos panel de control para el phpmyadmin un acceso rápido para que se se encuentre en el link cuando let's go with the browser 
 
ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin 
 
Now in the browser it depends on the url that we have chosen, we are going to 
 
exampleUrl.com/phpmyadmin 
 
If we have not chosen Url
 
localhost/phpmyadmin
 
 
9) Finally to connect from client to server 
We go to the client browser and put the following
 
192.168.0.22/index.html  == L192… is the IP we found with ifconfig on the server side
 
In our client (IF IT IS LINUX)
change the folder nano /etc/hosts 
we put the ip of the server and we change the url so that we can enter with a url on the client side


This video to better demonstrate the Web tutorial

 
 

    This div height required for enabling the sticky sidebar
    en_USEN