{"id":2638,"date":"2022-06-21T08:57:25","date_gmt":"2022-06-21T06:57:25","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2638"},"modified":"2022-06-21T08:59:52","modified_gmt":"2022-06-21T06:59:52","slug":"leaving-xampp","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2638","title":{"rendered":"leaving xampp"},"content":{"rendered":"\n<p>For many years I used xampp (for Linux: Lampp), because of its simplicity, unlike the \u201cnative\u201d Linux apache\/php\/mysql apps, wich seemed to me very difficult to configure.<\/p>\n\n\n\n<p>The <strong>pro<\/strong> of xampp is its simplicity (with few mouse clicks you can do all to install  and configure your local php\/mysql sever). But the <strong>con<\/strong> is that your xampp apps don&#8217;t are updated regularly, and there can raise conflicts with Linux \u201cnative\u201d mysql.<\/p>\n\n\n\n<p>Therefore I decided to learn how to configure \u201cnative\u201d (system-rooted, so to say) apache\/php\/mysql apps. I chose to install mariadb and not mysql.<\/p>\n\n\n\n<p>And in these last weeks I managed to configure the server, with the following steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>sudo apt install -y apache2 <\/code><\/li><li><code>sudo apt install -y php<\/code><\/li><li><code>sudo apt install mariadb*<\/code><\/li><li><code>sudo mysql_secure_installation<\/code><\/li><li><code>sudo mysql -u root -p (and within >mysql shell<\/code><ul><li><code>use mysql<\/code><\/li><li><code>GRANT ALL PRIVILEGES ON <em>.<\/em> TO 'root'@'localhost' WITH GRANT OPTION;<\/code><\/li><li><code>SHOW GRANTS FOR 'root'@localhost;  \/\/to check if it is all right<\/code><\/li><li><code>FLUSH PRIVILEGES;<\/code><\/li><li><code>exit;<\/code><\/li><\/ul><\/li><li><code>sudo systemctl enable mariadb.service<\/code><\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For many years I used xampp (for Linux: Lampp), because of its simplicity, unlike the \u201cnative\u201d Linux apache\/php\/mysql apps, wich seemed to me very difficult to configure. The pro of xampp is its simplicity (with few mouse clicks you can do all to install and configure your local php\/mysql sever). But the con is that &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=2638\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;leaving xampp&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[579,751],"tags":[169,294,34,11,277,763],"class_list":["post-2638","post","type-post","status-publish","format-standard","hentry","category-database","category-php","tag-lampp","tag-localhost","tag-mariadb","tag-mysql","tag-server-php-mysql","tag-xampp"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2638"}],"version-history":[{"count":3,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2638\/revisions"}],"predecessor-version":[{"id":2641,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2638\/revisions\/2641"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}