Tutorial: Schimbarea Versiunii PHP în cPanel prin MultiPHP Manager
În acest tutorial, vă voi arăta cum să schimbați versiunea PHP pentru site-ul dvs. prin cPanel utilizând funcția MultiPHP Manager. Această funcționalitate este utilă atunci când doriți să rulați aplicații web care necesită o versiune specifică de PHP.
Pașii pentru Schimbarea Versiunii PHP
1. Accesați cPanel
- Deschideți un browser web.
- Introduceți adresa URL a cPanel-ului dvs. (de obicei,
http://domeniultau.com/cpanel
sauhttp://IP-ul-tau/cpanel
). - Introduceți numele de utilizator și parola pentru cPanel, apoi conectați-vă.
2. Găsiți MultiPHP Manager
- Odată ce sunteți conectat la cPanel, căutați secțiunea Software.
- Faceți clic pe MultiPHP Manager.
3. Selectați Domeniul
- În pagina MultiPHP Manager, veți vedea o listă cu toate domeniile și subdomeniile asociate contului dvs.
- Selectați domeniul pentru care doriți să schimbați versiunea PHP.
4. Alegeți Versiunea PHP
- După ce ați selectat domeniul, veți observa un meniu derulant lângă domeniu care afișează versiunea PHP curentă.
- Faceți clic pe meniul derulant și selectați versiunea PHP dorită din lista disponibilă.
- Asigurați-vă că alegeți o versiune PHP care este compatibilă cu aplicațiile sau site-ul dvs. web.
5. Aplicați Schimbările
- După ce ați selectat noua versiune PHP, faceți clic pe butonul Apply (Aplică) sau Save (Salvează) pentru a salva modificările.
- Veți primi o notificare că versiunea PHP a fost actualizată cu succes.
6. Verificați Schimbările
-
Pentru a verifica dacă schimbarea a avut succes, accesați site-ul dvs. web.
-
Puteți crea un fișier PHP (de exemplu,
info.php
) cu următorul cod:phpinfo();
-
Încărcați acest fișier în directorul rădăcină al site-ului dvs. și accesați-l prin browser (
http://domeniultau.com/info.php
). -
Verificați informațiile afișate pentru a confirma că versiunea PHP s-a schimbat conform așteptărilor.
7. Ștergeți Fișierul de Verificare
După ce ați verificat versiunea PHP, nu uitați să ștergeți fișierul info.php
pentru a evita expunerea informațiilor sensibile despre serverul dvs.
Concluzie
Acum ați învățat cum să schimbați versiunea PHP în cPanel folosind MultiPHP Manager. Este important să verificați compatibilitatea aplicațiilor dvs. cu versiunea PHP aleasă pentru a asigura funcționarea corectă a site-ului. Dacă aveți întrebări sau întâmpinați probleme, consultați documentația cPanel sau contactați suportul tehnic al providerului de găzduire.