{"id":525,"date":"2016-04-08T10:38:43","date_gmt":"2016-04-08T09:38:43","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=525"},"modified":"2016-04-08T11:41:36","modified_gmt":"2016-04-08T10:41:36","slug":"installing-drupal-8-hard-way","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/04\/08\/installing-drupal-8-hard-way\/","title":{"rendered":"Installing Drupal 8 the hard way"},"content":{"rendered":"<p>Many people use phpmyadmin, but we&#8217;re going to do this properly to add users, databases and privileges. Heres how I did it.<br \/>\nPlease note that this is a work in progress and is <strong> not finished yet <\/strong>.<\/p>\n<h2> Install httpd and mysql-server<\/h2>\n<pre>\r\nyum install httpd mariadb-server php php-mysql\r\n<\/pre>\n<p>What you might find is that drupal 8 requires php5.5.9 lets install that;<\/p>\n<pre>\r\n[root@web-test-centos7 html]# yum install centos-release-scl\r\n[root@web-test-centos7 html]# yum install php55-php-mysqlnd\r\n<\/pre>\n<h2> Open Firewall port 80 http for CentOS <\/h2>\n<pre>\r\n     sudo iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT\r\n     sudo iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT\r\n<\/pre>\n<h2> Save firewall rules in CentOS <\/h2>\n<pre>\r\n\/etc\/init.d\/iptables save\r\n<\/pre>\n<h2> Alternatively, save firewall rules Ubuntu <\/h2>\n<pre>\r\niptables-save > \/etc\/iptables.rules\r\n<\/pre>\n<h2> Save firewall rules for all other distros <\/h2>\n<pre>\r\niptables-save > \/etc\/sysconfig\/iptables\r\n<\/pre>\n<h2> Connect to MysQL to configure database user &#8216;drupal&#8217; <\/h2>\n<pre>\r\n# mysql -u root\r\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\r\nYour MariaDB connection id is 3\r\nServer version: 5.5.47-MariaDB MariaDB Server\r\n\r\nCopyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n<\/pre>\n<h2> Create Drupal database <\/h2>\n<p>MariaDB [(none)]> create database drupal;<\/p>\n<h2> Grant ability to connect with drupal user <\/h2>\n<pre>\r\nMariaDB [(none)]> grant usage on *.* to drupal@localhost identified by '@#@DS45Dfddfdgj334k34ldfk;DF';\r\nQuery OK, 0 rows affected (0.00 sec)\r\n<\/pre>\n<h2> Grant all Privileges to the user drupal for database drupal<\/h2>\n<pre>\r\nMariaDB [(none)]> grant all privileges on drupal.* to drupal@localhost;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Many people use phpmyadmin, but we&#8217;re going to do this properly to add users, databases and privileges. Heres how I did it. Please note that this is a work in progress and is not finished yet . Install httpd and &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/04\/08\/installing-drupal-8-hard-way\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[15,44,45,2,20],"tags":[],"class_list":["post-525","post","type-post","status-publish","format-standard","hentry","category-cloud","category-cms","category-drupal","category-mysql","category-webhosting"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=525"}],"version-history":[{"count":6,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/525\/revisions"}],"predecessor-version":[{"id":531,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/525\/revisions\/531"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}