I-WordPress ngaphezulu kwe-Lighttpd + APC ku-Squeeze (II neyokugcina)

amalambu alula ne-wordpress-logo

Lapha futhi ngendaba yokuKhanya ne-WordPress!. Uma ungakafundi i- Ingxenye i yalolu chungechunge, lapho-ke namanje akanalutho angalwenza lapha. Funda futhi ufunde okuqukethwe kwayo bese uyabuya. Ukuqedela ukufakwa nokulungiswa kombhangqwana, kufanele senze:

  • Faka i-WordPress: dala i-database kanye nomsebenzisi ku-MySQL bese uyinika amalungelo adingekayo; dala futhi ushintshe ifayili lokumiswa le-wp-config.php ngokuya ngokuxhumeka ne-database; bese uqedela ukufakwa kwe-WordPress ngokusebenzisa isikhombimsebenzisi sayo sewebhu.
  • Thuthukisa i-cache nge Athando PHP CUbuhlungu.

Faka i-WordPress

Ake sisuse ifayela index.php kudalwe ekuqaleni kokuhlola ukumiswa kwethu:

rm /srv/web.amigos.cu/htdocs/index.php

NgeNautilus noma ngeTheminali, sikopisha ifayili lokufaka leWordPress kumkhombandlela wezimpande zemibhalo, kulokhu singalikopisha/srv/web.amigos.cu/htdocs/.

Note: Ake sicabange ukuthi sine-WordPress version 3.4.1 yalesi sifundo.

Ngemuva kokukopisha, siya kuleso sikhombisi bese sivula iziphu, bese sihambisa konke okuqukethwe umkhombandlela wordpress kuya phambili / ama-htodcs / futhi sisusa isifaki:

cd /srv/web.amigos.cu/htdocs tar xvfz wordpress-3.4.1-es_ES.tar.gz mv wordpress / *. rm -r i-wordpress / i-wordpress-3.4.1-es_ES.tar.gz ekhethiwe -R www-data. * chmod -R + x * .php

Sakha umsebenzisi kanye ne-database ku-MySql: Nge-terminal sixhuma kukhonsoli yokuphatha, sisebenzisa i-mysql -p, futhi ngemuva kokuthayipha iphasiwedi yethu, senza imibuzo edingekayo ye-SQL:

i-mysql -p Faka iphasiwedi: Uyemukelwa kuqapha le-MySQL. Imiyalo iphela ngokuthi; noma \ g. I-id yakho yokuxhuma ye-MySQL inguqulo engu-40 Server: 5.1.49-3 (Debian) [---] DALA UMSEBENZI 'myuser' IDENTIFIED BY 'myipassword'; DALA IDATABASE UMA IKHONA `wp_friends`; SEBENZISA abangane_wp; NIKA WONKE AMALUNGELO KU-`amigos_wp`. * KU 'myuser' @ '%' NGOKUKHETHA NGOKUVELA; yeka

Iso ngezimpawu zokucaphuna lapho sizisebenzisa ukufaka igama ledatha phakathi kwazo. Qaphela ukuthi yini `abangane_wp` futhi cha 'abangane_wp'.

Sakha futhi siguqula ifayela le-wp-config.php:

cd /srv/web.amigos.cu/htdocs cp wp-config-sample.php wp-config.php nano wp-config.php

Imigqa okuwukuphela kwayo okufanele siyiguqule yile:

// ** izilungiselelo ze-MySQL. Cela le datha kumphathi wakho wewebhu. $ / ** Igama le-database yakho ye-WordPress * / define ('DB_NAME', 'amigos_wp'); / * Igama lakho lomsebenzisi le-MySQL * / chaza ('DB_USER', 'myuser'); / ** Iphasiwedi yakho ye-MySQL * / ichaza ('DB_PASSWORD', 'mipassword');

Sishiya lonke ifayili lisaqinile. Songa izinguquko.

Izilungiselelo zokugcina zokufaka: Sivuselela ikhasi esipheqululini sethu (http://web.amigos.cu) futhi sesivele sisenqubweni edumile yokufaka i-WordPress yemizuzu emi-5!.

Yiba nomcabango nobuciko. Gcwalisa izinkambu ezicelwe isifaki ngokuya ngezidingo zakho. Uma isiza sakho sibhekene ne-Intanethi (evikelwe kakhulu yi-Firewall) ungavumela izinjini zokusesha ezifana ne-Google nezinye ukuthi ziyikhombe. Njengoba eyami ingeye-Enterprise LAN kuphela, ngiyeke ukumaka leyo ndlela bese ngichofoza inkinobho yomlingo ethi "Qhubeka".

Ezinye izinyathelo zijwayelekile zeWordPress futhi iqiniso ukuthi angisiye ozokusiza ukuthi ulisebenzise nhlobo. Bheka imanuwali noma ubuze abanye asebevele bengongoti ekusetshenzisweni kwayo.

Sithuthukisa isilondolozi sekhodi eliphakathi ku-PHP sisebenzisa i-APC:

Ngerekhodi, ANGIKusho! UKBeezie usho kanjalo endatshaneni enesihloko esithi “Ukubaluleka Kwe-Caching WordPress”(Ukubaluleka kwesilondolozi ku-WordPress) lapho ethi:

"I-WordPress, kuyo yonke inkazimulo yayo ... ingulube enobudlabha kabi"

Okuthi ngokuhumusha okunzima kusho ukuthi "i-WordPress kuyo yonke inkazimulo yayo ... ingulube enganakwa enegazi." Sincoma ukufunda le ndatshana ethakazelisa kakhulu futhi efundisayo. Kunezindlela eziningana zokwenza ngcono i-cache ye-WordPress ngokuya ngemibhalo ekhethekile, kungaba nge- "W3 Total Cache", "WP Super Cache", nezinye. Uma sikhipha

aptitude show php-apc

sizothola incazelo emfushane, ehunyushwe ngokuthi:

“I-Alternative PHP Cache, eyaziwa nangokuthi i-APC, inguhlaka lomthombo ovulekile, olukhululekile futhi oluqinile, ukwenza inqolobane nokwandisa ikhodi ye-PHP emaphakathi. I-APC yisixazululo esisheshayo sokusungula i-cache yendawo yekhodi ye-PHP. Ayisatshalalwanga njenge-MencacheD, kepha ingasetshenziswa ndawonye ukuthola i-cache ephelele ". Ukuyifaka siyayisebenzisa:

ukufaneleka ukufaka php-apc

Kamuva, safunda amafayela /usr/share/doc/php-apc/README.Debian futhi iKonke kusuka kufolda efanayo. Ngokwalokho okunconywe kowokuqala, senza okulandelayo:

gunzip /usr/share/doc/php-apc/apc.php.gz cp /usr/share/doc/php-apc/apc.php /srv/web.amigos.cu/htdocs/ chown www-data: impande / srv / web.amigos.cu / htdocs / apc.php chmod + x /srv/web.amigos.cu/htdocs/apc.php

Kufanele simemezele iphasiwedi kufayela i-apc.php ukuyenza isebenze ngokugcwele. Sihlela ifayela elivele lisezimpandeni /htdocs/apc.php, siya kulayini 41 bese sithola:

okuzenzakalelayo ('ADMIN_USERNAME', 'apc'); okuzenzakalelayo ('ADMIN_PASSWORD', 'password');

'Iphasiwedi' kufanele iguqulwe ibe yiphasiwedi yethu okungelona igama iphasiwedi. Songa izinguquko futhi ngaphambi kokwenza noma yini enye kufanele siqale kabusha insiza:

ukuqala kabusha kwe-lighttpd service

Sikhomba isiphequluli sethu ku-URL web.amigos.cu/apc.php futhi sizobona ukuthi enye i-cache ye-PHP isebenza kanjani.

Bangani, ngithemba ukuthi konke okubhaliwe kuzoba wusizo kini. Sizokubona ku-adventure elandelayo!


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-4, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   eliotime3000 kusho

    Isifundo esihle.

    Isiphakamiso esisodwa: Futhi kungani ungasebenzisi i-apt-get?

    1.    UFederico A. Valdes Toujague kusho

      Siyabonga ngokuphawula kwakho. Ngisebenzisa ukufaneleka ngaphandle komkhuba. Kusuka kwaSarge noma kuDebian 3.

    2.    UFederico A. Valdés Toujague kusho

      Ngiyabonga kakhulu ngokuphawula kwakho. Ngisebenzisa ukufaneleka komkhuba kusukela ku-Debian 3.0 noma eSarge. Azisekho izimfihlakalo.

      1.    eliotime3000 kusho

        Ah vele. Ngisebenzisa i-apt-get ngoba uma ngisebenzisa ukufaneleka kungahle kwephule imvelo yokuqhafaza (sengivele ngenze isivivinyo esitebeleni futhi kwasongela ukuqeda i-GNOME nezinye izinto) futhi kuphephe kakhulu.