Uyifaka njani i-XAMPP kwiLinux?

XAMPP

Namhlanje Ndiza kwabelana nawe ngendlela esingayifaka ngayo iXAMPP Esiza kuzixhasa ngayo ukuze sikwazi ukuseta iserver yethu yewebhu kwikhompyuter yethu, nokuba ukuze bakwazi ukwenza iimvavanyo zangaphakathi okanye uqalise iqela lethu ngolu hlobo.

Ukuba awuqhelananga XAMPP, mandikuxelele ukuba yintoni le Yiphakheji yezicelo zesoftware zasimahla ezisebenza kunye ukuze zisebenze njengomncedisi wewebhu.

I-XAMPP yenziwe kwinkqubo yolawulo lwedatha MariaDB, umncedisi wewebhu Apache kunye neetoliki ze I-PHP kunye nePerl ukubhala iilwimi.

Ngokwam, ndicinga ukuba le yindlela elula yokufumana yonke le phakheji, ethi, ngokungafaniyo nokufaka icandelo ngalinye ngokwahlukeneyo, lukhetho oluhle kakhulu kubasebenzisi abaphambili kunye neewbies.

Ukufaka i-XAMPP kwiLinux

Inyathelo lokuqala ekufuneka silithathile ukuze sikwazi ukufaka i-XAMPP kwinkqubo yethu yile yiya kwiwebhusayithi esemthethweni kwaye ukhuphele isifaki Basinika iLinux kwikhonkco le nto.

Emva koko siya kuvula i-terminal kwaye Siza kunika imvume yokuphumeza ifayile esiyikhuphelayo, siyenza ngolu hlobo lulandelayo.

Qaphela, okwangoku inguqulelo yeXAMPP ingu-7.2.4-0 ukuze igama lesidluli linokwahluka kule uyikhuphelayo, kuya kufuneka ulungise lo myalelo ngokunika igama ifayile oyikhuphelileyo.

sudo su

chmod + xampp-linux-x64-7.2.4-0-installer.run

./xampp-linux-x64-7.2.4-0-installer.run

Xa uqhuba i-installer, i-wizard yokufaka iya kuvula. apho siza kunika ngokulandelayo kwaye samkele yonke into, oku ukuba into oyifunayo kukufakwa rhoqo.

Ukuba ufuna ufakelo lwesiko, uya kuba nguwe oza kuguqula iinketho ezinikezelwa ngumfakeli ukuze ube lula kwaye uzifune.

fakela-xampp-linux

Ekupheleni kwesifaki uya kuba sele unayo i-XAMPP efakwe kwindlela yakho.

Uyisebenzisa kanjani i-XAMPP kwiLinux?

Ukuqhuba zonke iinkonzo ezenza i-XAMPP, ungayenza ngokuqhuba umphathi wayo, esinokuthi siqale ngayo okanye simise iinkonzo zedemoni.

Kuya kufuneka ujonge umphathi wakhe kwimenyu yesicelo.

Kananjalo ukuba uyafuna ungaziqhuba ezi nkonzo kwisiphelo sendlela, ukwenza oku kuya kufuneka usebenzise le miyalelo ilandelayo:

ukuba Qalisa i-XAMPP

sudo /opt/lampp/lampp start

ukuba yeka i-XAMPP

sudo /opt/lampp/lampp stop

ukuba qala kwakhona i-XAMPP

sudo /opt/lampp/lampp restart

Iphi ifolda yeXAMPP?

Ukuba awuyazi ukuba iphi indawo ekufuneka ubeke kuyo iiprojekthi zakho ukwenza uvavanyo okanye ubeke amaphepha akho ewebhu kwaye ukwazi ukuwajonga kwisikhangeli indlela imi ngolu hlobo lulandelayo:

/ opt / lampp / htdocs

/ Uwabona njani amaphepha am ewebhu ayilwe kwiXAMPP?

Enye ye ezona mpazamo zixhaphakileyo kukuba abazibeki iifayile ngaphakathi kwifolda ebonisiweyo, Kwinqanaba elidlulileyo indlela yanikwa, enye ehlala isenzeka kakhulu kwi-newbies kukuba abanayo i-Apache okanye i-daemon ye-MariaDB.

Ukuba wenza i-HTML kuphela, i-CSS JavaScript ayizukuba nangxaki kuba abakhangeli batolika ezi lwimi ngaphandle kwengxaki enkulu.

Kodwa ukuba yi- PHP kulapho kuvela ingxaki, Kuya kufuneka uqiniseke ukuba iinkonzo ze-Apache kunye neMariaDB zisebenza ngaphandle kweengxaki.

Ulujonga njani uvavanyo lwam lweXAMPP kwisikhangeli?

Ukuba sele uyibekile iprojekthi yakho, zama ngaphakathi kwifolda yeXAMPP kwaye ufuna ukuyibona kwisikhangeli Kuya kufuneka uchwetheze ibha yedilesi yendawo yangoku okanye i-127.0.0.1.

Umzekelo:

Ukuba ubeka ifayile "test.php" kwi / opt / lampp / htdocs /, kwibhar yedilesi uchwetheza i-localhost / test.php.

Umzekelo 2:

Ukuba iprojekthi yakho ikwi /opt/lampp/htdocs/web/index.php, kwibhar yedilesi uchwetheza i-localhost / web / index.php.

Uphi ifayile ye-php.ini kwi-XAMPP?

Le fayile yoqwalaselo ihlala iluncedo kuba ulungiselelo oluhlala luza ne-PHP alonelanga.

Ukuhlengahlengisa kwimfuno yethu kufuneka sihlele kuphela amaxabiso php.ini ukuba isendleleni:

/opt/lamp/etc/php.ini

Ngale nto, ndiyakholelwa ukuba zezona ngcinga zisisiseko zokusebenzisa i-XAMPP eya kusetyenziswa ngaphezulu kwe-novice enye.


Izimvo ezi-6, shiya ezakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Inoxanduva lwedatha: I-AB Internet Networks 2008 SL
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   Iker sitsho

    Inqaku elilungileyo. Kwiposti elandelayo uyifaka njani i-xdebug kunye ne-debug php evela kwiinetbeans.

  2.   Oscar sitsho

    Molo, ngenkonzo, xa ufaka inkqubo ye-xampp kwi-Fedora distro, indibonisa lo myalezo ulandelayo UKUXELWA KWE-COMMA EXCEPTION ('CORE' GENERATED) kwaye uhlala ngaphandle kokubonisa nantoni na kwisiphelo sendlela.
    Isisombululo sisithini, nceda undixhase.
    Enkosi kuwe.

  3.   UNelson fernando sitsho

    Kwi Linux Mint isebenze ngolu hlobo lulandelayo:

    chmod 777 xampp-linux-x64-7.2.4-0-installer.run

    NgeChmod + ayisebenzi

    1.    Cress sitsho

      Molo Nelson, ukuba umbuzo wakho umalunga noBuntu, ndikushiyela isifundo esihlaziyiweyo ukuya ku-2021. Indincede kakhulu, ukuba uyayilandela inyathelo ngenyathelo awuyi kuba nangxaki, Uyifaka njani iXampp kwi-Ubuntu?

    2.    UCarlos Acosta sitsho

      Enkosi uNelson Fernando, ku-ubuntu 20.04 isebenze ngokufanayo nge-777

  4.   UJuan Jose sitsho

    Sawubona,

    Umyalelo wokwabela iimvume emva kokukhuphela i-Xampp unempazamo: Kukho i-x ​​emva kwe- + yokunikezela iimvumelwano zophumezo kwaye ufakelo aluzukwenziwa.

    Indlela echanekileyo yile:

    chmod + x xampp-linux-x64-7.2.4-0-installer.run

    A ubingelele.