Ungayikhetha kanjani inguqulo ye-PHP ku-cPanel
Ukushintsha inguqulo yakho ye-PHP iye enguqulweni entsha njengo-8.1 noma ngaphezulu kuzokhuphula isivinini sewebhusayithi yakho, ukusebenza nokuvikeleka.
Ukukhetha inguqulo ye-PHP ku-cPanel, landela lezi zinyathelo:
- Ngena ngemvume ku-akhawunti yakho ye-cPanel.
- Chofoza kuthebhu "Isofthiwe".
- Chofoza isixhumanisi "Khetha inguqulo ye-PHP".
- Engxenyeni ethi "Khetha Inguqulo ye-PHP", khetha inguqulo ye-PHP ofuna ukuyisebenzisa.
- Chofoza inkinobho ethi "Setha Njengeyamanje".
Inguqulo yakho entsha ye-PHP izosethwa njengemisiwe ye-akhawunti yakho.
Nawa amanye amathiphu wokukhetha inguqulo ye-PHP ku-cPanel:
- Sebenzisa inguqulo yakamuva ye-PHP esekelwa umhlinzeki wakho wokusingatha. Lokhu kuzosiza ukuqinisekisa ukuthi iwebhusayithi yakho ivikelekile futhi isebenza kahle.
- Uma usebenzisa i-plugin noma uhlelo lokusebenza oludinga inguqulo ethile ye-PHP, khetha leyo nguqulo.
- Qinisekisa ukuthi inguqulo ye-PHP oyikhethayo iyahambisana nesofthiwe yewebhusayithi yakho.
- Uma unezinkinga ngenguqulo ethile ye-PHP, zama ukushintshela enguqulweni entsha noma endala.
- Kuwumqondo omuhle ukuhlola iwebhusayithi yakho ngemva kokushintsha inguqulo ye-PHP ukuze uqiniseke ukuthi yonke into isebenza kahle.
- Uma ungenaso isiqiniseko sokuthi iyiphi inguqulo ye-PHP ongayisebenzisa, xhumana nomhlinzeki wakho wokusingatha ukuze uthole usizo.
Ngokulandela lawa macebiso, ungakhetha inguqulo engcono kakhulu ye-PHP yewebhusayithi yakho.
Nazi ezinye zezinzuzo zokusebenzisa inguqulo yakamuva ye-PHP:
- Ukusebenza okuthuthukisiwe: Izinguqulo zakamuva ze-PHP zivame ukushesha kunezinguqulo ezindala.
- Ukuvikeleka okukhulisiwe: Izinguqulo zakamuva ze-PHP zifaka amapeshi okuvikela angasiza ukuvikela iwebhusayithi yakho ekuhlaselweni.
- Izici ezintsha: Izinguqulo zakamuva ze-PHP ngokuvamile zihlanganisa izici ezintsha ezingenza iwebhusayithi yakho ibe namandla futhi isebenzise izinto ezihlukahlukene.
Ngokusebenzisa inguqulo yakamuva ye-PHP, ungasiza ukuqinisekisa ukuthi iwebhusayithi yakho ivikelekile, iyashesha, futhi isesikhathini samanje.
Izandiso zesikhethi se-PHP
Izandiso zesikhethi se-PHP ziyisici se-cPanel esikuvumela ukuthi unike amandla noma ukhubaze izandiso ze-PHP kuwebhusayithi yakho. Izandiso ze-PHP zingamamojula angeza izici ezengeziwe ku-PHP. Ezinye izandiso ze-PHP ezijwayelekile zifaka i-MySQL, i-GD, ne-PDO.
Ukuze unike amandla noma ukhubaze isandiso se-PHP ku-cPanel, landela lezi zinyathelo:
- Ngena ngemvume ku-akhawunti yakho ye-cPanel.
- Chofoza isigaba Isofthiwe .
- Chofoza isikhethi se-PHP isixhumanisi.
- Khetha inguqulo ye-PHP ofuna ukuyihlela kumenyu yokudonsela phansi.
- Chofoza ithebhu Yezandiso .
- Ukuze unike amandla isandiso, khetha ibhokisi eliseduze negama laso.
- Ukuze ukhubaze isandiso, susa ukumaka ibhokisi eliseduze negama laso.
- Chofoza inkinobho Londoloza .
Izinguquko zakho zizokwenzeka ngokushesha.
Nazi ezinye izinto okufanele uzikhumbule lapho uvumela noma ukhubaza izandiso ze-PHP:
- Qinisekisa ukuthi isandiso se-PHP osivumelayo noma usivala sihambisana nesofthiwe yewebhusayithi yakho.
- Uma unezinkinga ngesandiso esithile se-PHP, zama ukusivala.
- Kuwumqondo omuhle ukuhlola iwebhusayithi yakho ngemva kokunika amandla noma ukukhubaza isandiso se-PHP ukuze uqiniseke ukuthi yonke into isebenza kahle.
Nazi ezinye zezinzuzo zokusebenzisa izandiso zesikhethi se-PHP:
- Ikuvumela ukuthi wenze ngendlela oyifisayo indawo ye-PHP yewebhusayithi yakho.
- Ingakusiza ukuxazulula izinkinga ngewebhusayithi yakho.
- Ingathuthukisa ukusebenza kwewebhusayithi yakho.
Uma unezinkinga ngewebhusayithi yakho, ungase ufune ukuzama ukunika amandla noma ukukhubaza isandiso se-PHP. Lokhu ngokuvamile kungalungisa inkinga.
Nalu uhlu lwezandiso ze-PHP ezivame kakhulu:
- MySQL: Lesi sandiso sikuvumela ukuthi uxhume kusizindalwazi se-MySQL.
- GD: Lesi sandiso sikuvumela ukuthi udale futhi ulawule izithombe.
- I-PDO: Lesi sandiso sihlinzeka ngesixhumi esibonakalayo esihlanganisiwe sokuxhuma kusizindalwazi.
- mcrypt: Lesi sandiso sihlinzeka ngemisebenzi yokubethela nokususa ukubethela.
- curl: Lesi sandiso sikuvumela ukuthi wenze izicelo ze-HTTP.
- zip: Lesi sandiso sikuvumela ukuthi udale futhi ukhiphe amafayela e-ZIP.
- openssl: Lesi sandiso sihlinzeka ngemisebenzi ye-cryptographic.
- mbstring: Lesi sandiso sihlinzeka ngosekelo lweyunithi yezinhlamvu ze-multibyte.
- exif: Lesi sandiso sinikezela ngosekelo lwedatha ye-EXIF ezithombeni.
- I-Tokenizer: Lesi sandiso sihlinzeka ngosekelo lweyunithi yezinhlamvu zamathokheni.
- DOM: Lesi sandiso sihlinzeka ngosekelo lwe-DOM API.
- I-XML: Lesi sandiso sinikezela ngosekelo ekuhlukaniseni i-XML.
- JSON: Lesi sandiso sinikezela ngosekelo lokuncozulula kwe-JSON.
- imagick - Lesi sandiso sihlinzeka ngosekelo lokuhlela nokukhohlisa izithombe zedijithali.
- redis - Lesi sandiso sihlinzeka ngokusekela kwenqolobane ye-lightspeed.
- i-memcached - Lesi sandiso sihlinzeka ngosekelo lwenqolobane ye-lightspeed.
- ioncube_loader - Lesi sandiso sihlinzeka ngosekelo lekhodi ye-PHP ehlanganiswe kusengaphambili.
- yazisa - Lesi sandiso sihlinzeka ngosekelo lokwengamela amafayela namafolda ngesikhathi sangempela.
- pdf - Lesi sandiso sihlinzeka ngosekelo lokudala amafayela e-PDF.
- oauth - Lesi sandiso sihlinzeka ngosekelo kumthengi we-OAuth nokubophezela kwabahlinzeki.
Lezi ezimbalwa nje kweziningi zezandiso ze-PHP ezitholakalayo. Uma udinga ukusebenzisa isici esithile esitholakala kuphela kusandiso se-PHP, ungakwazi ukunika amandla leso sandiso ku-cPanel.
Izinketho Zokukhetha PHP
Izinketho zesikhethi se-PHP ku-cPanel zikuvumela ukuthi wenze ngendlela oyifisayo indawo ye-PHP yewebhusayithi yakho. Lezi zinketho zihlanganisa:
- Inguqulo ye-PHP: Ungakhetha ukuthi iyiphi inguqulo ye-PHP iwebhusayithi yakho ezoyisebenzisa.
- Izandiso ze-PHP: Unganika amandla noma ukhubaze izandiso ze-PHP.
- Izilungiselelo ze-PHP: Ungakwazi ukushintsha izilungiselelo ze-PHP ezihlukahlukene, njengomkhawulo wememori kanye nesikhathi esiphezulu sokwenza.
Uma unezinkinga ngewebhusayithi yakho, ungase ufune ukuzama ukushintsha izinketho zesikhethi se-PHP. Lokhu ngokuvamile kungalungisa inkinga.
Nalu uhlu lwezinye izilungiselelo ezivame kakhulu ze-PHP:
- memory_limit: Lesi silungiselelo silawula umkhawulo wenani lememori elingasetshenziswa i-PHP.
- max_execution_time: Lesi silungiselelo silawula umkhawulo wesikhathi esingasebenza iskripthi se-PHP.
- post_max_size: Lesi silungiselelo silawula umkhawulo kasayizi wesicelo OKUTHUNYELWE.
- upload_max_filesize: Lesi silungiselelo silawula umkhawulo kasayizi wefayela elilayishiwe.
Lezi izilungiselelo ezimbalwa kweziningi ze-PHP ezitholakalayo. Uma udinga ukushintsha isilungiselelo esithile se-PHP, ungakwenza lokho ezinkethweni zesikhethi se-PHP ku-cPanel.