{"id":473,"date":"2019-02-06T23:04:22","date_gmt":"2019-02-07T07:04:22","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=473"},"modified":"2020-04-26T23:39:18","modified_gmt":"2020-04-27T06:39:18","slug":"wordpress","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/raspian-linux-programs\/wordpress\/","title":{"rendered":"WordPress"},"content":{"rendered":"\n<p>After Setting up LAMP server Download WordPress using wget into the directory \/var\/www\/html\/  and delete the default contents<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/var\/www\/html\/ <br>sudo rm * <br>sudo wget http:\/\/wordpress.org\/latest.tar.gz<\/pre>\n\n\n\n<p>Extract the contents of the file which creates wordpress directory<br>Move the contents of the extracted wordpress directory into \/var\/www\/html\/<br>validate the move 3 directories and 16 files by using tree command, Remove the tar.gz file then change the ownership of www-data to pi user <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo tar xzf latest.tar.gz \nsudo mv wordpress\/* .\ntree -L 1 \nsudo chown -R www-data: .<\/pre>\n\n\n\n<p>Next the database for the wordpress site needs to be setup by running the MySQL secure installation command. <br>Run mysql with root permission <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mysql -u root -p<\/pre>\n\n\n\n<p>After entering the password the Welcome to the MariaDB monitor prompt will appear. Create the database then grant root privileges,  then flush the database privileges to apply the new privileges. A message confirming database was created will appear Query OK, 1 row affected (0.01 sec)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">create database wordpress;\nGRANT ALL PRIVILEGES ON wordpress.* TO 'root'@'localhost' IDENTIFIED BY 'ROOTPASSWORD';\nFLUSH PRIVILEGES;\n\\q<\/pre>\n\n\n\n<p> *Pressing Ctrl+d  will also exit MariaDB Prompt<br>The WordPress website should now be running. open web browser and enter http:\/\/localhost this should open the setup-config.php webpage.  <br><br>***At this point an image of the sd card should be archived in case of data corruptions setting up WordPress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After Setting up LAMP server Download WordPress using wget into the directory \/var\/www\/html\/ and delete the default contents cd \/var\/www\/html\/ sudo rm * sudo wget http:\/\/wordpress.org\/latest.tar.gz Extract the contents of the file which creates wordpress directoryMove the contents of the extracted wordpress directory into \/var\/www\/html\/validate the move 3 directories and 16 files by using tree &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/raspian-linux-programs\/wordpress\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;WordPress&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":261,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-473","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/473\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/261"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}