{"id":8488,"date":"2024-04-09T06:29:22","date_gmt":"2024-04-09T06:29:22","guid":{"rendered":"https:\/\/musilda.cz\/?p=8488"},"modified":"2024-04-09T06:29:22","modified_gmt":"2024-04-09T06:29:22","slug":"jak-nainstalovat-wordpress-lokalne-zdarma","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/jak-nainstalovat-wordpress-lokalne-zdarma\/","title":{"rendered":"Jak nainstalovat WordPress lok\u00e1ln\u011b zdarma"},"content":{"rendered":"\n
A\u0165 u\u017e vyv\u00edj\u00edme nov\u00e9 \u0161ablony a pluginy, nebo jednodu\u0161e testujeme WordPress jako takov\u00fd, a nechce se n\u00e1m platit za testovac\u00ed dom\u00e9nu a hosting, m\u016f\u017eeme jednodu\u0161e experimentovat lok\u00e1ln\u011b z na\u0161eho po\u010d\u00edta\u010de, a to zcela zdarma.<\/p>\n\n\n\n
Lok\u00e1ln\u00ed neboli m\u00edstn\u00ed hosting znamen\u00e1, \u017ee je web ulo\u017een na na\u0161em po\u010d\u00edta\u010di a budeme si muset nastavit sv\u016fj vlastn\u00ed server.<\/p>\n\n\n\n
Kdy\u017e se p\u0159ipoj\u00edme k internetu, obvykle odes\u00edl\u00e1me informace ze sv\u00e9ho po\u010d\u00edta\u010de do jin\u00e9ho po\u010d\u00edta\u010de n\u011bkde na webu. Naproti tomu, kdy\u017e pou\u017eijeme m\u00edstn\u00ed hosting, n\u00e1\u0161 po\u010d\u00edta\u010d ode\u0161le informace pouze m\u00edstn\u00edm po\u010d\u00edta\u010d\u016fm.<\/p>\n\n\n\n
Jak\u00e9 jsou v\u00fdhody lok\u00e1ln\u00edho WordPress webu?<\/strong><\/p>\n\n\n\n Jak\u00e9 jsou nev\u00fdhody lok\u00e1ln\u00edho WordPress webu?<\/strong><\/p>\n\n\n\n Zp\u016fsob\u016f, kter\u00fdmi lze WordPress instalovat lok\u00e1ln\u011b, je nespo\u010det, zde si uk\u00e1\u017eeme ty nej\u010dast\u011bj\u0161\u00ed:<\/p>\n\n\n\n Mezi m\u00e9n\u011b \u010dast\u00e9 pak pat\u0159\u00ed tak\u00e9 nap\u0159\u00edklad WAMP <\/strong>a LAMP<\/strong>.<\/p>\n\n\n\n Pokud hled\u00e1me co mo\u017en\u00e1 nejrychlej\u0161\u00ed konfiguraci <\/strong>WordPressu pro lok\u00e1ln\u00ed pou\u017eit\u00ed, aplikace Local <\/strong>je v tomto ohledu bezkonkuren\u010dn\u00ed. Pomoc\u00ed n\u011bkolika klik\u016f m\u016f\u017eeme nastavit verzi PHP<\/strong>, web server<\/strong>, verzi WordPressu<\/strong>, n\u00e1zev<\/strong> dom\u00e9ny <\/strong>a mnoho dal\u0161\u00edho… <\/p>\n\n\n\n Postup instalace:<\/strong><\/p>\n\n\n\n 1) – Stop site<\/strong> – vypneme WordPress XAMPP <\/strong>je bezplatn\u00e9 open-source prost\u0159ed\u00ed pro v\u00fdvoj v jazyce PHP. Jedn\u00e1 se o neziskov\u00fd projekt Apache Friends, kter\u00fd propaguje webov\u00fd server Apache<\/strong>. XAMP je k dispozici pro Linux, Windows, OS X a zahrnuje PHP<\/strong>, MariaDB<\/strong>, Apache<\/strong>, phpMyAdmin <\/strong>pro spr\u00e1vu datab\u00e1z\u00ed a \u0159adu dal\u0161\u00edch u\u017eite\u010dn\u00fdch n\u00e1stroj\u016f.<\/p>\n\n\n\n Na sv\u00e9m po\u010d\u00e1tku byl MAMP <\/strong>aplikac\u00ed dostupnou pouze pro MacOS<\/strong>, ale dnes je k dispozici i pro Windows<\/strong>. MAMP je zdarma<\/strong>, ale neobsahuje v\u0161echny funkce MAMP Pro. Verze Pro stoj\u00ed okolo 95 $, ale pro na\u0161e \u00fa\u010dely bohat\u011b posta\u010d\u00ed bezplatn\u00e1 verze.<\/p>\n\n\n\n V porovn\u00e1n\u00ed s XAMPP <\/strong>poskytuje MAMP <\/strong>v\u00edce mo\u017enost\u00ed pro serverov\u00e1 prost\u0159ed\u00ed a umo\u017e\u0148uje vytv\u00e1\u0159et vlastn\u00ed SSL<\/strong> certifik\u00e1ty<\/strong> b\u011bhem vytv\u00e1\u0159en\u00ed webu (tato funkce je dostupn\u00e1 pouze v placen\u00e9 verzi!).<\/p>\n\n\n\n V porovn\u00e1n\u00ed s ostatn\u00edmi zp\u016fsoby lok\u00e1ln\u00edho WordPressu je tento nejt\u011b\u017e\u0161\u00ed na konfiguraci. Za to nab\u00edz\u00ed pokro\u010dil\u00e9 mo\u017enosti <\/strong>pro zku\u0161en\u011bj\u0161\u00ed v\u00fdvoj\u00e1\u0159e, kte\u0159\u00ed mohou nap\u0159\u00edklad u pou\u017e\u00edv\u00e1n\u00ed aplikace XAMPP narazit na n\u011bkter\u00e1 omezen\u00ed. U Dockeru tak\u00e9 l\u00e9pe pozn\u00e1me, jak v\u0161e funguje, a jeho konfigurace a pou\u017e\u00edv\u00e1n\u00ed n\u00e1m m\u016f\u017ee poskytnout cenn\u00e9 zku\u0161enosti v oboru.<\/p>\n\n\n\n\n
\n
Instalace WordPressu lok\u00e1ln\u011b<\/h2>\n\n\n\n
\n
Lok\u00e1ln\u00ed WordPress pomoc\u00ed programu Local<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
2) – WP Admin<\/strong> – p\u0159esuneme se na p\u0159ihla\u0161ovac\u00ed str\u00e1nku
3) – Open site <\/strong>– otev\u0159eme n\u00e1hled webu<\/p>\n\n\n\n<\/a><\/figure>\n\n\n\n
Lok\u00e1ln\u00ed WordPress pomoc\u00ed XAMPP<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Postup instalace:<\/h4>\n\n\n\n
\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
Lok\u00e1ln\u00ed WordPress pomoc\u00ed MAMP<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Postup instalace<\/h4>\n\n\n\n
\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
Lok\u00e1ln\u00ed WordPress pomoc\u00ed Docker<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
Postup instalace<\/h4>\n\n\n\n
\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
\n
<\/a><\/figure>\n\n\n\n
\n
version: \"3.8\"\nservices:\n\n database:\n image: mariadb:10.6.4-focal\n restart: unless-stopped\n ports:\n - 3306:3306\n env_file: .env\n environment:\n MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}'\n MYSQL_DATABASE: '${MYSQL_DATABASE}'\n MYSQL_USER: '${MYSQL_USER}'\n MYSQL_PASSWORD: '${MYSQL_PASSWORD}'\n volumes:\n - db-data:\/var\/lib\/mysql\n networks:\n - wordpress-network\n deploy:\n resources:\n limits:\n memory: 2048m\n\n phpmyadmin:\n depends_on:\n - database\n image: phpmyadmin\/phpmyadmin\n restart: unless-stopped\n ports:\n - 8081:80\n env_file: .env\n environment:\n PMA_HOST: database\n MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}'\n networks:\n - wordpress-network\n\n wordpress:\n depends_on:\n - database\n image: wordpress:6.2.2-apache\n restart: unless-stopped\n ports:\n - 8080:80\n env_file: .env\n environment:\n WORDPRESS_DB_HOST: database:3306 # use the same name as database service\n WORDPRESS_DB_NAME: '${MYSQL_DATABASE}'\n WORDPRESS_DB_USER: '${MYSQL_USER}'\n WORDPRESS_DB_PASSWORD: '${MYSQL_PASSWORD}'\n volumes:\n - .\/wp-content:\/var\/www\/html\/wp-content\n networks:\n - wordpress-network\n\nvolumes:\n db-data:\n\nnetworks:\n wordpress-network:\n driver: bridge <\/code><\/pre>\n\n\n\n
\n
MYSQL_DATABASE=wordpress\nMYSQL_USER=wp_user\nMYSQL_PASSWORD=wp_password\nMYSQL_ROOT_PASSWORD=wp_password<\/code><\/pre>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n
<\/a><\/figure>\n\n\n\n
\n