{"id":4131,"date":"2018-05-25T21:07:26","date_gmt":"2018-05-25T17:07:26","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/perfect-server-ubuntu-18.04-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig\/"},"modified":"2018-05-25T21:07:26","modified_gmt":"2018-05-25T17:07:26","slug":"the-perfect-server-ubuntu-18-04-bionic-beaver-with-apache-php-mysql-pureftpd-bind-postfix-dovecot-and-ispconfig-3-1","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/the-perfect-server-ubuntu-18-04-bionic-beaver-with-apache-php-mysql-pureftpd-bind-postfix-dovecot-and-ispconfig-3-1\/","title":{"rendered":"The Perfect Server &#8211; Ubuntu 18.04 (Bionic Beaver) with Apache, PHP, MySQL, PureFTPD, BIND, Postfix, Dovecot and ISPConfig 3.1"},"content":{"rendered":"<p>This tutorial shows the installation of an Ubuntu 18.04 (Bionic Beaver)\u00a0web hosting server with Apache 2.4, Postfix, Dovecot, Bind and PureFTPD to prepare it for the installation of <a href=\"http:\/\/www.ispconfig.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">ISPConfig 3.1<\/a>. The resulting system will provide a Web, Mail, Mailinglist, DNS and FTP Server.<\/p>\n<p>ISPConfig is a web hosting control panel that allows you to configure the following services through a web browser: Apache or Nginx web server, Postfix mail server, Courier or Dovecot IMAP\/POP3 server, MySQL, BIND or MyDNS nameserver, PureFTPd, SpamAssassin, ClamAV, and many more. This setup covers the installation of Apache (instead of Nginx), BIND (instead of MyDNS), and Dovecot (instead of Courier).<\/p>\n<h2 id=\"g0.0.2\">1. Preliminary Note<\/h2>\n<p>In this tutorial, I use the hostname <span class=\"system\">server1.example.com<\/span> with the IP address <span class=\"system\">192.168.1.100<\/span> and the gateway <span class=\"system\">192.168.1.1<\/span> \u00a0These settings might differ for you, so you have to replace them where appropriate.\u00a0 Before proceeding further you need to have a basic minimal installation of Ubuntu 18.04 as explained in the\u00a0<a href=\"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-minimal-server-install\/\" target=\"_blank\" rel=\"noopener noreferrer\">tutorial<\/a>.<\/p>\n<p>The commands in this tutorial have to be run with root permissions. To avoid adding sudo in front of each command, you&#8217;ll have to become root user by running:<\/p>\n<p class=\"command\">sudo -s<\/p>\n<p>before you proceed.<\/p>\n<h2 id=\"g0.0.8\">2. Edit \/etc\/apt\/sources.list And Update Your Linux Installation<\/h2>\n<p>Edit <span class=\"system\">\/etc\/apt\/sources.list<\/span>. Comment out or remove the installation CD from the file and make sure that the <span class=\"system\">universe<\/span> and <span class=\"system\">multiverse<\/span> repositories are enabled. It should look like this afterwards:<\/p>\n<p class=\"command\">nano \/etc\/apt\/sources.list<\/p>\n<pre readability=\"48\">#<p># deb cdrom:[Ubuntu-Server 18.04 LTS _Bionic Beaver_ - Release amd64 (20180425.1)]\/ bionic main restricted<\/p><p>#deb cdrom:[Ubuntu-Server 18.04 LTS _Bionic Beaver_ - Release amd64 (20180425.1)]\/ bionic main restricted<\/p><p># See http:\/\/help.ubuntu.com\/community\/UpgradeNotes for how to upgrade to<br\/># newer versions of the distribution.<br\/>deb http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic main restricted<br\/># deb-src http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic main restricted<\/p><p>## Major bug fix updates produced after the final release of the<br\/>## distribution.<br\/>deb http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic-updates main restricted<br\/># deb-src http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic-updates main restricted<\/p><p>## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu<br\/>## team. Also, please note that software in universe WILL NOT receive any<br\/>## review or updates from the Ubuntu security team.<br\/>deb http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic universe<br\/># deb-src http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic universe<br\/>deb http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic-updates universe<br\/># deb-src http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic-updates universe<\/p><p>## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu<br\/>## team, and may not be under a free licence. Please satisfy yourself as to<br\/>## your rights to use the software. Also, please note that software in<br\/>## multiverse WILL NOT receive any review or updates from the Ubuntu<br\/>## security team.<br\/>deb http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic multiverse<br\/># deb-src http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic multiverse<br\/>deb http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic-updates multiverse<br\/># deb-src http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic-updates multiverse<\/p><p>## N.B. software from this repository may not have been tested as<br\/>## extensively as that contained in the main release, although it includes<br\/>## newer versions of some applications which may provide useful features.<br\/>## Also, please note that software in backports WILL NOT receive any review<br\/>## or updates from the Ubuntu security team.<br\/>deb http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic-backports main restricted universe multiverse<br\/># deb-src http:\/\/de.archive.ubuntu.com\/ubuntu\/ bionic-backports main restricted universe multiverse<\/p><p>## Uncomment the following two lines to add software from Canonical's<br\/>## 'partner' repository.<br\/>## This software is not part of Ubuntu, but is offered by Canonical and the<br\/>## respective vendors as a service to Ubuntu users.<br\/># deb http:\/\/archive.canonical.com\/ubuntu bionic partner<br\/># deb-src http:\/\/archive.canonical.com\/ubuntu bionic partner<\/p><p>deb http:\/\/security.ubuntu.com\/ubuntu bionic-security main restricted<br\/># deb-src http:\/\/security.ubuntu.com\/ubuntu bionic-security main restricted<br\/>deb http:\/\/security.ubuntu.com\/ubuntu bionic-security universe<br\/># deb-src http:\/\/security.ubuntu.com\/ubuntu bionic-security universe<br\/>deb http:\/\/security.ubuntu.com\/ubuntu bionic-security multiverse<br\/># deb-src http:\/\/security.ubuntu.com\/ubuntu bionic-security multiverse<\/p><\/pre>\n<p>Then run<\/p>\n<p class=\"command\">apt-get update<\/p>\n<p>to update the apt package database and<\/p>\n<p class=\"command\">apt-get upgrade<\/p>\n<p>to install the latest updates (if there are any). If you see that a new kernel gets installed as part of the updates, you should reboot the system afterwards:<\/p>\n<p class=\"command\">reboot<\/p>\n<h2 id=\"g0.0.9\">3. Change the Default Shell<\/h2>\n<p><span class=\"system\">\/bin\/sh<\/span> is a symlink to <span class=\"system\">\/bin\/dash<\/span>, however we need <span class=\"system\">\/bin\/bash<\/span>, not <span class=\"system\">\/bin\/dash<\/span>. Therefore, we do this:<\/p>\n<p class=\"command\">dpkg-reconfigure dash<\/p>\n<p><span class=\"system\">Use dash as the default system shell (\/bin\/sh)?<\/span> <span class=\"highlight\">&lt;&#8211; No<\/span><\/p>\n<p>If you don&#8217;t do this, the ISPConfig installation will fail.<\/p>\n<h2 id=\"g0.0.10\">4. Disable AppArmor<\/h2>\n<p>AppArmor is a security extension (similar to SELinux) that should provide extended security. In my opinion, you don&#8217;t need it to configure a secure system, and it usually causes more problems than advantages (think of it after you have done a week of trouble-shooting because some service wasn&#8217;t working as expected, and then you find out that everything was ok, only AppArmor was causing the problem). Therefore, I disable it (this is a must if you want to install ISPConfig later on).<\/p>\n<p>We can disable it like this:<\/p>\n<p class=\"command\">service apparmor stop<br \/>update-rc.d -f apparmor remove <br \/>apt-get remove apparmor apparmor-utils<\/p>\n<h2 id=\"g0.0.11\">5. Synchronize the System Clock<\/h2>\n<p>It is a good idea to synchronize the system clock with an NTP (<strong>n<\/strong>etwork <strong>t<\/strong>ime <strong>p<\/strong>rotocol) server over the Internet when you run a physical server. In case you run a virtual server then you should skip this step. Just\u00a0run<\/p>\n<p class=\"command\">apt-get -y install ntp<\/p>\n<p>and your system time will always be in sync.<\/p>\n<h2 id=\"g0.0.12\">6. Install Postfix, Dovecot, MariaDB, rkhunter, and\u00a0binutils<\/h2>\n<p>For installing postfix, we need to ensure that sendmail is not installed and running. To stop and remove sendmail run this command:<\/p>\n<p class=\"command\">service sendmail stop; update-rc.d -f sendmail remove<\/p>\n<p>The error message:<\/p>\n<p class=\"system\">Failed to stop sendmail.service: Unit sendmail.service not loaded.<\/p>\n<p>Is ok, it just means that sendmail was not installed, so there was nothing to be removed.<\/p>\n<p>Now we can install Postfix, Dovecot, MariaDB (as MySQL replacement), rkhunter, and binutils with a single command:<\/p>\n<p class=\"command\">apt-get -y install postfix postfix-mysql postfix-doc mariadb-client mariadb-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve dovecot-lmtpd\u00a0sudo<\/p>\n<p>You will be asked the following questions:<\/p>\n<p class=\"system\">General type of mail configuration: <span class=\"highlight\">&lt;&#8211; Internet Site<\/span><br \/>System mail name: <span class=\"highlight\">&lt;&#8211; server1.example.com<\/span><\/p>\n<p>It is important that you use a subdomain as &#8220;system mail name&#8221; like server1.example.com or server1.yourdomain.com and not a domain that you want to use as email domain (e.g. yourdomain.tld) later.<\/p>\n<p>Next, open the TLS\/SSL and submission ports in Postfix:<\/p>\n<p class=\"command\">nano \/etc\/postfix\/master.cf<\/p>\n<p>Uncomment the <span class=\"system\">submission<\/span> and <span class=\"system\">smtps<\/span> sections as follows &#8211; add the line <span class=\"system\">-o smtpd_client_restrictions=permit_sasl_authenticated,reject<\/span> to both sections and leave everything thereafter commented:<\/p>\n<pre>[...]&#13;\nsubmission inet n - y - - smtpd&#13; -o syslog_name=postfix\/submission&#13; -o smtpd_tls_security_level=encrypt&#13; -o smtpd_sasl_auth_enable=yes&#13; <strong>-o smtpd_client_restrictions=permit_sasl_authenticated,reject<\/strong>&#13;\n# -o smtpd_reject_unlisted_recipient=no&#13;\n# -o smtpd_client_restrictions=$mua_client_restrictions&#13;\n# -o smtpd_helo_restrictions=$mua_helo_restrictions&#13;\n# -o smtpd_sender_restrictions=$mua_sender_restrictions&#13;\n# -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject&#13;\n# -o milter_macro_daemon_name=ORIGINATING&#13;\nsmtps inet n - y - - smtpd&#13; -o syslog_name=postfix\/smtps&#13; -o smtpd_tls_wrappermode=yes&#13; -o smtpd_sasl_auth_enable=yes&#13; <strong><span>-o smtpd_client_restrictions=permit_sasl_authenticated,reject<\/span><\/strong>&#13;\n# -o smtpd_reject_unlisted_recipient=no&#13;\n# -o smtpd_client_restrictions=$mua_client_restrictions&#13;\n# -o smtpd_helo_restrictions=$mua_helo_restrictions&#13;\n# -o smtpd_sender_restrictions=$mua_sender_restrictions&#13;\n# -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject&#13;\n# -o milter_macro_daemon_name=ORIGINATING&#13;\n[...]<\/pre>\n<p><strong>NOTE:<\/strong> The whitespaces in front of the &#8220;-o &#8230;. &#8221; lines are important!<\/p>\n<p>Restart Postfix afterward:<\/p>\n<p class=\"command\">service postfix restart<\/p>\n<p>We want MySQL to listen on all interfaces, not just localhost. Therefore, we edit <span class=\"system\">\/etc\/mysql\/mariadb.conf.d\/50-server.cnf<\/span> and comment out the line <span class=\"system\">bind-address = 127.0.0.1<\/span>:<\/p>\n<p class=\"command\">nano\u00a0\/etc\/mysql\/mariadb.conf.d\/50-server.cnf<\/p>\n<pre>[...]&#13;\n# Instead of skip-networking the default is now to listen only on&#13;\n# localhost which is more compatible and is not less secure.&#13;\n<strong>#<\/strong>bind-address = 127.0.0.1<p>[...]<\/p><\/pre>\n<p>Now we set a root password in MariaDB. Run:<\/p>\n<p class=\"command\">mysql_secure_installation<\/p>\n<p>You will be asked these questions:<\/p>\n<p class=\"system\">Enter current password for root (enter for none): <span class=\"highlight\">&lt;&#8211; press enter<\/span><br \/>Set root password? [Y\/n] <span class=\"highlight\">&lt;&#8211; y<\/span><br \/>New password: <span class=\"highlight\">&lt;&#8211; Enter the new MariaDB root password here<\/span><br \/>Re-enter new password: <span class=\"highlight\">&lt;&#8211; Repeat the password<\/span><br \/>Remove anonymous users? [Y\/n] <span class=\"highlight\">&lt;&#8211; y<\/span><br \/>Disallow root login remotely? [Y\/n] <span class=\"highlight\">&lt;&#8211; y<\/span><br \/>Reload privilege tables now? [Y\/n] <span class=\"highlight\">&lt;&#8211; y<\/span><\/p>\n<p>Set the password authentication method in MariaDB to native so we can use PHPMyAdmin later to connect as root user:<\/p>\n<p class=\"command\">echo &#8220;update mysql.user set plugin = &#8216;mysql_native_password&#8217; where user=&#8217;root&#8217;;&#8221; | mysql -u root<\/p>\n<p>Edit the file\u00a0\/etc\/mysql\/debian.cnf and set the MYSQL \/ MariaDB root password there twice in the rows that start with password.<\/p>\n<p class=\"command\">nano \/etc\/mysql\/debian.cnf<\/p>\n<p>The MySQL root password that needs to be added is shown in read, in this example the password is &#8220;howtoforge&#8221;.<\/p>\n<p class=\"system\"># Automatically generated for Debian scripts. DO NOT TOUCH!<br \/>[client]<br \/>host = localhost<br \/>user = root<br \/>password =\u00a0<span class=\"highlight\">howtoforge<\/span><br \/>socket = \/var\/run\/mysqld\/mysqld.sock<br \/>[mysql_upgrade]<br \/>host = localhost<br \/>user = root<br \/>password = <span class=\"highlight\">howtoforge<\/span><br \/>socket = \/var\/run\/mysqld\/mysqld.sock<br \/>basedir = \/usr<\/p>\n<p>Then we restart MariaDB:<\/p>\n<p class=\"command\">service mysql restart<\/p>\n<p>Now check that networking is enabled. Run<\/p>\n<p class=\"command\">netstat -tap | grep mysql<\/p>\n<p>The output should look like this:<\/p>\n<p class=\"system\"><a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"e5978a8a91a5968097938097d4\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>:~# netstat -tap | grep mysql<br \/>tcp6 0 0 [::]:mysql [::]:* LISTEN 30591\/mysqld<br \/><a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"c4b6ababb084b7a1b6b2a1b6f5\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>:~#<\/p>\n<h2 id=\"-install-amavisdnew-spamassassin-and-clamav\">7. Install Amavisd-new, SpamAssassin, and Clamav<\/h2>\n<p>To install amavisd-new, SpamAssassin, and ClamAV, we run<\/p>\n<p class=\"command\">apt-get -y install amavisd-new spamassassin clamav clamav-daemon unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl postgrey<\/p>\n<p>The ISPConfig 3 setup uses amavisd which loads the SpamAssassin filter library internally, so we can stop SpamAssassin to free up some RAM:<\/p>\n<p class=\"command\">service spamassassin stop<br \/>update-rc.d -f spamassassin remove<\/p>\n<p>To start ClamAV use:<\/p>\n<p class=\"command\">freshclam<br \/>service clamav-daemon start<\/p>\n<p>The following error can be ignored on the first run of freshclam.<\/p>\n<p class=\"system\">ERROR: \/var\/log\/clamav\/freshclam.log is locked by another process<br \/>ERROR: Problem with internal logger (UpdateLogFile = \/var\/log\/clamav\/freshclam.log).<\/p>\n<p>The amavisd-new program has currently a bug in Ubuntu 18.04 which prevents that emails\u00a0get signed with Dkim correctly. Run the following commands to patch amavisd-new.<\/p>\n<p class=\"command\">cd \/tmp<br \/>wget https:\/\/git.ispconfig.org\/ispconfig\/ispconfig3\/raw\/stable-3.1\/helper_scripts\/ubuntu-amavisd-new-2.11.patch<br \/>cd \/usr\/sbin<br \/>cp -pf amavisd-new amavisd-new_bak<br \/>patch &lt; \/tmp\/ubuntu-amavisd-new-2.11.patch<\/p>\n<p>In case you get an error for thelast &#8216;patch&#8217; command, then Ubuntu has probably fixed the issue in the meantime, so it should be safe to ignore that error then.<\/p>\n<h2 id=\"-install-metronome-xmpp-server-optional\">7.1 Install Metronome XMPP Server (optional)<\/h2>\n<p>The Metronome XMPP Server provides an XMPP chat server. This step is optional, if you do not need a chat server, then you can skip this step. No other ISPConfig functions depend on this software.<\/p>\n<p>Install the following packages with apt.<\/p>\n<p class=\"command\">apt-get -y install git lua5.1 liblua5.1-0-dev lua-filesystem\u00a0libidn11-dev libssl-dev lua-zlib lua-expat lua-event lua-bitop lua-socket lua-sec luarocks\u00a0luarocks<\/p>\n<p class=\"command\">luarocks install lpc<\/p>\n<p>Add a shell user for Metronome.<\/p>\n<p class=\"command\">adduser &#8211;no-create-home &#8211;disabled-login &#8211;gecos &#8216;Metronome&#8217; metronome<\/p>\n<p>Download Metronome to the \/opt directory and compile it.<\/p>\n<p class=\"command\">cd \/opt; git clone https:\/\/github.com\/maranda\/metronome.git metronome<br \/>cd .\/metronome; .\/configure &#8211;ostype=debian &#8211;prefix=\/usr<br \/>make<br \/>make install<\/p>\n<p>Metronome has now be installed to \/opt\/metronome.<\/p>\n<nav> <\/nav>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fperfect-server-ubuntu-18.04-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/the-perfect-server-ubuntu-18-04-bionic-beaver-with-apache-php-mysql-pureftpd-bind-postfix-dovecot-and-ispconfig-3-1.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fperfect-server-ubuntu-18.04-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig%2F&amp;text=The+Perfect+Server+-+Ubuntu+18.04+%28Bionic+Beaver%29+with+Apache%2C+PHP%2C+MySQL%2C+PureFTPD%2C+BIND%2C+Postfix%2C+Dovecot+and+ISPConfig+3.1&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/the-perfect-server-ubuntu-18-04-bionic-beaver-with-apache-php-mysql-pureftpd-bind-postfix-dovecot-and-ispconfig-3-1-1.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/the-perfect-server-ubuntu-18-04-bionic-beaver-with-apache-php-mysql-pureftpd-bind-postfix-dovecot-and-ispconfig-3-1-2.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fperfect-server-ubuntu-18.04-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/05\/the-perfect-server-ubuntu-18-04-bionic-beaver-with-apache-php-mysql-pureftpd-bind-postfix-dovecot-and-ispconfig-3-1-3.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial shows the installation of an Ubuntu 18.04 (Bionic Beaver)\u00a0web hosting server with Apache 2.4, Postfix, Dovecot, Bind and PureFTPD to prepare it for the installation of ISPConfig 3.1. The resulting system will provide a Web, Mail, Mailinglist, DNS and FTP Server. ISPConfig is a web hosting control panel that allows you to configure [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-4131","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/4131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=4131"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/4131\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=4131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=4131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=4131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}