{"id":371,"date":"2020-05-04T14:45:40","date_gmt":"2020-05-04T11:45:40","guid":{"rendered":"https:\/\/small-service.com\/?p=371"},"modified":"2020-05-04T14:45:40","modified_gmt":"2020-05-04T11:45:40","slug":"install-latest-wordpress-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/small-service.com\/?p=371","title":{"rendered":"Install latest wordpress on Ubuntu 18.04"},"content":{"rendered":"<p>There is nothing special except PHP. WordPress require php7.3 or higher which is not available in default ubuntu repository. So this post will be mostly how to compile latest version of php. But let\u2019s proceed step-by-step.<\/p>\n<ul>\n<li>Install all required components:<br \/>\n<code>apt-get update<br \/>\n#general applications<br \/>\napt-get install vim pwgen nginx mysql-server certbot<br \/>\n#required for build<br \/>\napt-get install build-essential pkg-config libxml2-dev sqlite3 libsystemd libsystemd-dev libcurl4 libcurl4-openssl-dev libpng-dev libonig-dev libzip-dev<br \/>\n<\/code><\/li>\n<\/ul>\n<ul>\n<li>Install php:<br \/>\n<code>mkdir -p ~\/temp &amp;&amp; cd ~\/temp<br \/>\nwget https:\/\/www.php.net\/distributions\/php-7.4.5.tar.gz<br \/>\ntar -xzf php-7.4.5.tar.gz &amp;&amp; cd php-7.4.5<br \/>\n.\/configure --enable-fpm --with-mysqli --with-fpm-systemd --with-zip --enable-soap --with-xmlrpc --enable-mbstring --enable-intl --with-fpm-systemd --with-curl --enable-gd<br \/>\nmake<br \/>\nmake install<br \/>\ncp php.ini-production \/usr\/local\/php\/php.ini<br \/>\ncp \/usr\/local\/etc\/php-fpm.d\/www.conf.default \/usr\/local\/etc\/php-fpm.d\/www.conf<br \/>\ncp sapi\/fpm\/php-fpm \/usr\/local\/bin<br \/>\ncp sapi\/fpm\/php-fpm.service \/etc\/systemd\/system\/php-fpm.service<br \/>\nsystemctl daemon-reload<br \/>\nsystemctl start  php-fpm<br \/>\n<\/code><\/li>\n<\/ul>\n<ul>\n<li>Install wordpress:<code><br \/>\ncd \/var\/www<br \/>\nwget https:\/\/wordpress.org\/latest.tar.gz<br \/>\ntar -xzf latest.tar.gz<br \/>\n<\/code><\/li>\n<\/ul>\n<ul>\n<li>Configure nginx, fpm and\u00a0 mysql. Detailed steps you can find in official documentation<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Useful links:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.nginx.com\/resources\/wiki\/start\/topics\/recipes\/wordpress\/\">https:\/\/www.nginx.com\/resources\/wiki\/start\/topics\/recipes\/wordpress\/<\/a><\/li>\n<li><a href=\"https:\/\/www.php.net\/manual\/en\/install.unix.nginx.php\">https:\/\/www.php.net\/manual\/en\/install.unix.nginx.php<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/support\/article\/how-to-install-wordpress\">https:\/\/wordpress.org\/support\/article\/how-to-install-wordpress<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There is nothing special except PHP. WordPress require php7.3 or higher which is not available in default ubuntu repository. So this post will be mostly how to compile latest version of php. But let\u2019s proceed step-by-step. Install all required components: apt-get update #general applications apt-get install vim pwgen nginx mysql-server certbot #required for build apt-get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[102,106,107,103,105,101,104],"_links":{"self":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/371"}],"collection":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=371"}],"version-history":[{"count":3,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/371\/revisions"}],"predecessor-version":[{"id":374,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/371\/revisions\/374"}],"wp:attachment":[{"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}