Try   HackMD

Pàgina web pujada per FTP

tags: FTP

Link d'aquest hackMD: https://hackmd.io/@Yeray/web-per-ftp
El meu perfil: @Yeray

Recorda que per fer aquesta activitat necesites tenir un servidor FTP actiu, si vols crear el servidor FTP que jo tinc segueix les instruccions de: https://hackmd.io/@Yeray/ftp-server-proftpd

Primer instal·larem els seguents paquets per continuar amb la pràctica:

$ sudo apt install apache2

A continuació farem el seguent per esborrar tots els arxius que hi ha dins de la carpeta que usarerem per pujar els arxius de la nostre web

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

$ sudo rm /var/www/html/*

Part en el client

Crearem un arxiu i l'editarem amb la comanda:

$ sudo touch index.html
$ sudo vim index.html

I introduirem algún codi per veure algo en la nostre web d'exemple

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

A continuació ens conectem al nostre server per Filezilla

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Per dnaronar permisos per a que tothom pugui escriure a la carpeta li donarem permisos amb la comanda:

$ sudo chmod 777 /var/www/html

Fem la nostre transferencia i mirem el comprovant:

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Busquem la nostre pàgina web i comprovem que es vegi correctament

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →