{"id":6848,"date":"2021-10-03T17:55:32","date_gmt":"2021-10-03T17:55:32","guid":{"rendered":"https:\/\/truehost.co.ke\/support\/?post_type=ht_kb&#038;p=6848"},"modified":"2024-06-21T08:31:09","modified_gmt":"2024-06-21T08:31:09","password":"","slug":"how-to-install-wordpress-on-lamp","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-wordpress-on-lamp\/","title":{"rendered":"How to Install WordPress on LAMPP"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Step 1: Download WordPress<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">#wget <a href=\"http:\/\/wordpress.org\/latest.tar.gz\">http:\/\/wordpress.org\/latest.tar.gz<\/a><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Extracting wordpress package<\/h2>\n\n\n\n<p>After downloading the zipped package, use <strong>tar command<\/strong> to extract it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#tar -xzvf latest.tar.gz <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Create a WordPress Database and User<\/h2>\n\n\n\n<p>After we unzip the wordpress files, they will be in a directory called wordpress in the home directory.<\/p>\n\n\n\n<p>Now we need to switch gears for a moment and create a new MySQL directory for wordpress.<\/p>\n\n\n\n<p>Go ahead and log into the MySQL Shell:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#mysql -u root -p<\/pre>\n\n\n\n<p>Log-in using your MySQL root password,<\/p>\n\n\n\n<p><strong>C<\/strong><strong>reate a wordpress database, a user in that database, and give that user a new password<\/strong>. Keep in mind that all MySQL commands must end with semi-colon. First, let&#8217;s make the database.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>Mysql&gt; CREATE DATABASE wordpress;<\/strong>\nQuery OK, 1 row affected (0.00 sec)<\/pre>\n\n\n\n<p>Then we need to create the new user. You can replace the database, name, and password, with whatever you prefer:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>mysql&gt; CREATE USER wordpressuser@localhost;<\/strong>\nQuery OK, 0 rows affected (0.00 sec)<\/pre>\n\n\n\n<p>Set the password for your new user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>mysql&gt; SET PASSWORD FOR wordpressuser@localhost= PASSWORD(\"password\");<\/strong>\nQuery OK, 0 rows affected (0.00 sec)<\/pre>\n\n\n\n<p>Finish up by granting all privileges to the new user. Without this command, the wordpress installer will not be able to start up:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>mysql&gt; GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY 'password';<\/strong>\nQuery OK, 0 rows affected (0.00 sec)<\/pre>\n\n\n\n<p>Then refresh MySQL:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>mysql&gt; FLUSH PRIVILEGES;<\/strong>\nQuery OK, 0 rows affected (0.00 sec)<\/pre>\n\n\n\n<p>Exit out of the MySQL shell:<\/p>\n\n\n\n<p>exit <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4 Setup the WordPress Configuration<\/h2>\n\n\n\n<p>The first step to is to copy the sample wordpress configuration file, located in the wordpress directory, into a new file which we will edit, creating a new usable wordpress config:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#cp ~\/wordpress\/wp-config-sample.php ~\/wordpress\/wp-config.php<\/pre>\n\n\n\n<p>Then open the wordpress config:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#vi ~\/wordpress\/wp-config.php\nexit<\/pre>\n\n\n\n<p>d below and substitute in the correct name for your database, username, and password:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ ** MySQL settings - You can get this info from your web host ** \/\/\n\/** The name of the database for WordPress *\/\ndefine('DB_NAME', 'wordpress');\n\n\/** MySQL database username *\/\ndefine('DB_USER', 'wordpressuser');\n\n\/** MySQL database password *\/\ndefine('DB_PASSWORD', 'password');<\/pre>\n\n\n\n<p>Save and Exit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 5 Copy the Files<\/strong><\/h2>\n\n\n\n<p>We are almost done uploading WordPress to the server. The final move that remains is to transfer the unzipped WordPress files to the website&#8217;s root directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># cp -r ~\/wordpress\/* \/var\/www\/html<\/pre>\n\n\n\n<p>From here, WordPress has its own easy to follow installation form online.<\/p>\n\n\n\n<p>However, the form does require a specific php module to run. If it is not yet installed on your server, download php-gd:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># yum install php-gd<\/pre>\n\n\n\n<p>Last of all restart Apache:<\/p>\n\n\n\n<p># service httpd restart <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 6 RESULTS: Access the WordPress Installation<\/strong><\/h2>\n\n\n\n<p>Once that is all done, the wordpress online installation page is up and waiting for you:<\/p>\n\n\n\n<p>Access the page by adding \/wp-admin\/install.php to your site&#8217;s domain or IP address (eg. example.com\/wp-admin\/install.php) and fill out the short online form<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Download WordPress #wget http:\/\/wordpress.org\/latest.tar.gz Step 2: Extracting wordpress package After downloading the zipped package, use tar command to extract it. #tar -xzvf latest.tar.gz Step 3: Create a WordPress Database and User After we unzip the wordpress files, they will be in a directory called wordpress in the home directory. Now we need to [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1838],"doc_tag":[],"class_list":["post-6848","docs","type-docs","status-publish","hentry","doc_category-wordpress"],"year_month":"2026-06","word_count":482,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Amicah","author_nicename":"amicah","author_url":"https:\/\/truehost.com\/support\/author\/amicah\/"},"doc_category_info":[{"term_name":"WordPress","term_url":"https:\/\/truehost.com\/support\/docs-category\/wordpress\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Wordpress on LAMPP -<\/title>\n<meta name=\"description\" content=\"Step 1; Download wordpress from the repository. Step2. Extracting wordpress package. Step 3. Create a WordPress Database and User.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-wordpress-on-lamp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Wordpress on LAMPP -\" \/>\n<meta property=\"og:description\" content=\"Step 1; Download wordpress from the repository. Step2. Extracting wordpress package. Step 3. Create a WordPress Database and User.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-wordpress-on-lamp\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-21T08:31:09+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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-wordpress-on-lamp\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-wordpress-on-lamp\\\/\",\"name\":\"How to Install Wordpress on LAMPP -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"datePublished\":\"2021-10-03T17:55:32+00:00\",\"dateModified\":\"2024-06-21T08:31:09+00:00\",\"description\":\"Step 1; Download wordpress from the repository. Step2. Extracting wordpress package. Step 3. Create a WordPress Database and User.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-wordpress-on-lamp\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-wordpress-on-lamp\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-wordpress-on-lamp\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install WordPress on LAMPP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Wordpress on LAMPP -","description":"Step 1; Download wordpress from the repository. Step2. Extracting wordpress package. Step 3. Create a WordPress Database and User.","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:\/\/truehost.com\/support\/knowledge-base\/how-to-install-wordpress-on-lamp\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Wordpress on LAMPP -","og_description":"Step 1; Download wordpress from the repository. Step2. Extracting wordpress package. Step 3. Create a WordPress Database and User.","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-wordpress-on-lamp\/","article_modified_time":"2024-06-21T08:31:09+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-wordpress-on-lamp\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-wordpress-on-lamp\/","name":"How to Install Wordpress on LAMPP -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"datePublished":"2021-10-03T17:55:32+00:00","dateModified":"2024-06-21T08:31:09+00:00","description":"Step 1; Download wordpress from the repository. Step2. Extracting wordpress package. Step 3. Create a WordPress Database and User.","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-wordpress-on-lamp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-wordpress-on-lamp\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-wordpress-on-lamp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Install WordPress on LAMPP"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=6848"}],"version-history":[{"count":3,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6848\/revisions"}],"predecessor-version":[{"id":7366,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/6848\/revisions\/7366"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=6848"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=6848"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=6848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}