You are on page 1of 2

======================================

Instalación de servidor OpenSSH

#sudo apt-get update


#sudo apt-get upgrade
#sudo apt-get dist-upgrade
#sudo apt-get install openssh-server
======================================
======================================
Configuracion red estatica

sudo nano /etc/netplan/01-netcfg.yaml

network:
version: 2
renderer: networkd #si utilizamos NetworkManager lo cambiamos por este
ethernets:
enp0s3: #nombre de nuestra tarjeta
dhcp4: no
dhcp6: no
addresses: [192.168.1.82/24]
gateway4: 192.168.1.254
nameservers:
addresses: [8.8.8.8, 8.8.4.4]

netplan apply

======================================

=== Apache ===

#sudo apt-get install apache2


======================================
== #sudo service apache2 start ==
== #sudo service apache2 stop ==
== #sudo service apache2 restart ==
======================================

===========Firewall================
sudo ufw status
sudo ufw enable
sudo ufw app list
sudo ufw app info "Apache Full"
sudo ufw allow "Apache Full"
======================================
===========MySQL================
sudo apt-get install mysql-server

sudo mysql -u root -p


h4732m3-t24
================================

===========PHP================
sudo apt-get install php libapache2-mod-php php-mysql
sudo service Apache

sudo service apache2 restart

================================

sudo chmod -R $USER:root /var/www/html


sudo chmod 777 /var/www/html

===========PHPMyadmin================

sudo apt-get install phpmyadmin


191705rdcm_512

acedemos al siguiente folder para modificarlo

#sudo nano /etc/apache2/apache2.conf

asta el final colo caremos la siguiente linea

Include /etc/phpmyadmin/apache.conf

y lo guadamo con control o

ponemos

#sudo /etc/init.d/apache2 restart

para reiniciar apache

phpmyadmin
1917005rdcm_512

sudo mysql -u root -p


use mysql
update user set authentication_string=PASSWORD("191705rdcm_512") where user =
'root';
select user, plugin from user;
update user set plugin='mysql_native_password' where user = 'root';
flush privileges;

==============================

Instalación de Servidor FTP

sudo apt-get install vsftpd


sudo ufw allow 20/tcp
sudo ufw allow 21/tcp

==============================

You might also like