{"id":233,"date":"2020-06-21T15:24:35","date_gmt":"2020-06-21T15:24:35","guid":{"rendered":"http:\/\/www.snapwhole.com\/?page_id=233"},"modified":"2023-01-17T01:05:10","modified_gmt":"2023-01-17T01:05:10","slug":"install-wordpress-on-ubuntu","status":"publish","type":"page","link":"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/","title":{"rendered":"Install WordPress on Ubuntu"},"content":{"rendered":"\n<p class=\"has-text-align-center\"><span class=\"has-inline-color has-vivid-red-color\">Install WordPress on Ubuntu<\/span><\/p>\n\n\n\n<center><a style=\"color:Tomato;\" href=\"https:\/\/www.snapwhole.com\">Return to Snapwhole.com Main Page<\/a><\/center><br><br>\n\n\n\n<p>While installing WordPress is easy, it contains multiple steps, and if these install steps are followed, you will end up with a successful website<\/p>\n\n\n\n<p>Start by updating the existing software and install the underlying software required for WordPress to function<\/p>\n\n\n\n<p>sudo apt-get update &amp;&amp; sudo apt-get upgrade<br>sudo apt-get install net-tools<br>sudo apt-get install apache2<br>sudo apt-get install mysql-server libapache2-mod-auth-mysql php7.4-mysq<\/p>\n\n\n\n<p>Secure you mysql installation:<br>sudo mysql_secure_installation<\/p>\n\n\n\n<p>Download WordPress Software<\/p>\n\n\n\n<p>sudo mkdir \/var\/www\/YOURWEBSITENAME<br>cd \/var\/www\/YOURWEBSITENAME<br>sudo wget https:\/\/wordpress.org\/latest.tar.gz<br>sudo tar -xzvf latest.tar.gz<br>sudo mv wordpress\/* .\/<br>sudo rmdir wordpress<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>sudo mysql -u root -p &#8212;&#8212;&#8216;YOURPASSWORD!<br>CREATE DATABASE YOURDATABASE;<br>CREATE USER &#8216;YOURWORDPRESSUSER&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;YOURPASSWORD!&#8217;;<br>GRANT ALL ON YOURPASSWORD.* TO &#8216;wpuser&#8217;@&#8217;localhost&#8217;;<br>user YOURWORDPRESSUSER &#8211; database YOURDATABASE<br>sudo nano \/var\/www\/YOURWEBSITENAME\/.htaccess<br>add Directory Index \/snap\/index.php to file<br>user@ubuntu-server:~\/wordpress\/wordpress<\/p>\n\n\n\n<p>sudo cp * \/var\/www\/html\/snap\/ -r<br>sudo nano \/etc\/apache2\/apache2.conf<br><br>Options FollowSymLinks<br>AllowOverride None<br>Require all denied<br><br>sudo nano \/etc\/apache2\/sites-available\/000-default.conf<br>change &#8211;<br>change ServerAdmin admin@yoursite.com<br>change DocumentRoot \/var\/www\/YOURWEBSITENAME<br>sudo a2dissite 000-default<br>sudo apache2ctl configtest<br>sudo systemctl reload apache2<br>https:\/\/YOURWEBSITENAME<br>sudo nano \/etc\/apache2\/mods-enabled\/dir.conf<br>sudo systemctl reload apache2<br>nano \/var\/www\/YOURWEBSITENAME\/info.php<br>&lt;?php<br>phpinfo();<br>https:\/\/www.snapwhole.com\/info.php<br>sudo rm \/var\/www\/snapwhole\/info.php<br>sudo mysql<br>CREATE DATABASE example_database;<br>CREATE USER &#8216;example_user&#8217;@&#8217;%&#8217; IDENTIFIED WITH mysql_native_password BY &#8216;PASSWORD&#8217;;<br>GRANT ALL ON example_database.* TO &#8216;example_user&#8217;@&#8217;%&#8217;;<br>exit<br>mysql -u example_user -p<br>SHOW DATABASES;<br>CREATE TABLE example_database.todo_list (<br>item_id INT AUTO_INCREMENT,<br>content VARCHAR(255),<br>PRIMARY KEY(item_id)<br>);<br>INSERT INTO example_database.todo_list (content) VALUES (&#8220;My first important item 1&#8221;);<br>INSERT INTO example_database.todo_list (content) VALUES (&#8220;My first important item 2&#8221;);<br>INSERT INTO example_database.todo_list (content) VALUES (&#8220;My first important item 3&#8221;);<br>SELECT * FROM example_database.todo_list;<br>exit<br>nano \/var\/www\/snapwhole\/todo_list.php<br>&lt;?php<br>$user = &#8220;example_user&#8221;;<br>$password = &#8220;YOURPASSWORD&#8221;;<br>$database = &#8220;example_database&#8221;;<br>$table = &#8220;todo_list&#8221;;<\/p>\n\n\n\n<center><a style=\"color:Tomato;\" href=\"https:\/\/www.snapwhole.com\">Return to Snapwhole.com Main Page<\/a><\/center><br><br>\n<div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_233\" class=\"pvc_stats all  \" data-element-id=\"233\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.snapwhole.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Install WordPress on Ubuntu Return to Snapwhole.com Main Page While installing WordPress is easy, it contains multiple steps, and if these install steps are followed, you will end up with a successful website Start by updating the existing software and install the underlying software required for WordPress to function sudo apt-get update &amp;&amp; sudo apt-get [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_233\" class=\"pvc_stats all  \" data-element-id=\"233\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.snapwhole.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"a3_pvc":{"activated":true,"total_views":208,"today_views":1},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install Wordpress on Ubuntu - SnapWhole.com<\/title>\n<meta name=\"description\" content=\"Install Wordpress on Ubuntu\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Wordpress on Ubuntu - SnapWhole.com\" \/>\n<meta property=\"og:description\" content=\"Install Wordpress on Ubuntu\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"SnapWhole.com\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-17T01:05:10+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/\",\"url\":\"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/\",\"name\":\"Install Wordpress on Ubuntu - SnapWhole.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.snapwhole.com\/#website\"},\"datePublished\":\"2020-06-21T15:24:35+00:00\",\"dateModified\":\"2023-01-17T01:05:10+00:00\",\"description\":\"Install Wordpress on Ubuntu\",\"breadcrumb\":{\"@id\":\"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.snapwhole.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install WordPress on Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.snapwhole.com\/#website\",\"url\":\"https:\/\/www.snapwhole.com\/\",\"name\":\"SnapWhole.com\",\"description\":\"Your Cool Refreshing Eclectic Destination\",\"publisher\":{\"@id\":\"https:\/\/www.snapwhole.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.snapwhole.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.snapwhole.com\/#organization\",\"name\":\"Snapwhole\",\"url\":\"https:\/\/www.snapwhole.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.snapwhole.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.snapwhole.com\/wp-content\/uploads\/2021\/04\/radioactive.jpg\",\"contentUrl\":\"https:\/\/www.snapwhole.com\/wp-content\/uploads\/2021\/04\/radioactive.jpg\",\"width\":282,\"height\":268,\"caption\":\"Snapwhole\"},\"image\":{\"@id\":\"https:\/\/www.snapwhole.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install Wordpress on Ubuntu - SnapWhole.com","description":"Install Wordpress on Ubuntu","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"Install Wordpress on Ubuntu - SnapWhole.com","og_description":"Install Wordpress on Ubuntu","og_url":"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/","og_site_name":"SnapWhole.com","article_modified_time":"2023-01-17T01:05:10+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/","url":"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/","name":"Install Wordpress on Ubuntu - SnapWhole.com","isPartOf":{"@id":"https:\/\/www.snapwhole.com\/#website"},"datePublished":"2020-06-21T15:24:35+00:00","dateModified":"2023-01-17T01:05:10+00:00","description":"Install Wordpress on Ubuntu","breadcrumb":{"@id":"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.snapwhole.com\/index.php\/install-wordpress-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.snapwhole.com\/"},{"@type":"ListItem","position":2,"name":"Install WordPress on Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/www.snapwhole.com\/#website","url":"https:\/\/www.snapwhole.com\/","name":"SnapWhole.com","description":"Your Cool Refreshing Eclectic Destination","publisher":{"@id":"https:\/\/www.snapwhole.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.snapwhole.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.snapwhole.com\/#organization","name":"Snapwhole","url":"https:\/\/www.snapwhole.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.snapwhole.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.snapwhole.com\/wp-content\/uploads\/2021\/04\/radioactive.jpg","contentUrl":"https:\/\/www.snapwhole.com\/wp-content\/uploads\/2021\/04\/radioactive.jpg","width":282,"height":268,"caption":"Snapwhole"},"image":{"@id":"https:\/\/www.snapwhole.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/pages\/233"}],"collection":[{"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/comments?post=233"}],"version-history":[{"count":6,"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/pages\/233\/revisions"}],"predecessor-version":[{"id":115574,"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/pages\/233\/revisions\/115574"}],"wp:attachment":[{"href":"https:\/\/www.snapwhole.com\/index.php\/wp-json\/wp\/v2\/media?parent=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}