Urcarea unui site pe un server de găzduire web implică transferul fișierelor site-ului tău (HTML, CSS, imagini, scripturi, etc.) pe serverul web. Există mai multe metode prin care poți face acest lucru, dar cele mai comune sunt utilizarea unui client FTP (File Transfer Protocol) sau a panoului de control al furnizorului tău de găzduire (cum ar fi cPanel sau Plesk). Iată cum poți face acest lucru pas cu pas:
1. Utilizarea unui client FTP
A. Instalează un client FTP
- Descarcă și instalează un client FTP. Câteva dintre cele mai populare opțiuni sunt:
- FileZilla (gratuit)
- WinSCP (gratuit, pentru Windows)
- Cyberduck (gratuit, pentru macOS și Windows)
B. Conectează-te la serverul tău
-
Deschide clientul FTP și creează o nouă conexiune.
-
Introdu informațiile de conectare:
- Host: Adresa serverului tău (de obicei,
ftp.domeniul-tau.com
sau IP-ul serverului). - Username: Numele de utilizator FTP (poate fi găsit în cPanel sau în emailurile de bun venit de la furnizorul de găzduire).
- Password: Parola asociată contului FTP.
- Port: 21 (de obicei, pentru FTP).
- Host: Adresa serverului tău (de obicei,
-
Conectează-te. Apasă pe butonul de conectare.
C. Urcă fișierele site-ului
- Navighează în directorul corect pe server. De obicei, acesta este
public_html
sauwww
(depinde de configurația serverului). - Pe partea locală a clientului, navighează la folderul unde ai fișierele site-ului pe computer.
- Selectează fișierele și folderul pe care vrei să le urci (poți selecta toate fișierele cu Ctrl+A).
- Trage fișierele în fereastra serverului sau folosește opțiunea de transfer (de obicei, un buton cu săgeată).
2. Utilizarea cPanel
Dacă furnizorul tău de găzduire oferă cPanel, poți folosi File Manager pentru a urca fișierele site-ului:
- Conectează-te la cPanel.
- Accesează "File Manager".
- Navighează în directorul corect (de obicei,
public_html
). - Apasă pe "Upload" în partea de sus a File Manager-ului.
- Selectează fișierele pe care vrei să le urci de pe computerul tău.
- Așteaptă să se finalizeze transferul fișierelor.
3. Utilizarea Plesk
Dacă folosești Plesk ca panou de control, poți urca fișierele astfel:
- Conectează-te la Plesk.
- Accesează "File Manager".
- Navighează în directorul dorit (de obicei,
httpdocs
). - Apasă pe "Upload" și selectează fișierele dorite de pe computerul tău.
- Așteaptă ca transferul să se finalizeze.
4. Testarea site-ului
După ce ai urcat toate fișierele site-ului:
- Deschide un browser.
- Introdu numele domeniului (de exemplu,
www.domeniul-tau.com
). - Verifică dacă site-ul se încarcă corect.
5. Considerații suplimentare
- Configurarea bazei de date: Dacă site-ul tău necesită o bază de date (de exemplu, un site WordPress), asigură-te că ai creat baza de date și ai configurat fișierul de configurare (de obicei
wp-config.php
pentru WordPress) cu informațiile corecte despre bază de date. - Permisiuni: Verifică permisiunile fișierelor și folderelor, mai ales dacă întâmpini probleme de acces.
- Erori: Dacă întâmpini probleme sau erori, verifică jurnalul de erori al serverului, disponibil în cPanel sau Plesk.
Concluzie
Urcarea unui site pe un server de găzduire web poate fi realizată rapid prin FTP sau prin intermediul panoului de control. Asigură-te că ai toate fișierele și configurațiile necesare înainte de a face transferul, pentru a te asigura că site-ul tău funcționează corect.