{"id":56,"date":"2010-02-25T17:05:13","date_gmt":"2010-02-25T16:05:13","guid":{"rendered":"http:\/\/rahulthewall.wordpress.com\/?p=56"},"modified":"2019-02-05T11:03:28","modified_gmt":"2019-02-05T10:03:28","slug":"installing-wordpress-locally-on-gentoo","status":"publish","type":"post","link":"https:\/\/segfault.co.in\/?p=56","title":{"rendered":"Installing WordPress Locally on Gentoo"},"content":{"rendered":"<p>There are already a <a title=\"Article 1\" href=\"http:\/\/wojciechbednarski.com\/articles\/installing-wordpress-locally-on-gentoo-linux\" target=\"_blank\" rel=\"noopener\">couple<\/a> <a title=\"Article 2\" href=\"http:\/\/www.mormanski.net\/2005\/12\/20\/installing-wordpress-on-gentoo\" target=\"_blank\" rel=\"noopener\">of<\/a> informative articles on this. Good as they are, I managed to run into a couple of problems that are not detailed on these articles possibly due to the fact that they were written a long time ago. Therefore this article, to help others (and me) who in the future wish to achieve the same that I did.<\/p>\n<p><strong>USE Flags<\/strong><\/p>\n<ul>\n<li>dev-lang\/php apache2 mysql (in addition to ones already enabled by default)<\/li>\n<li>www-apps\/wordpress vhosts<\/li>\n<\/ul>\n<p><strong>Emerge WordPress<\/strong><\/p>\n<ul>\n<li>emerge -av wordpress<\/li>\n<\/ul>\n<p><strong>Install WordPress <\/strong>using webapp-config<\/p>\n<ul>\n<li>webapp-config -I wordpress 2.9 -d wordpress<\/li>\n<\/ul>\n<p><strong>Configure the MySql database<\/strong><\/p>\n<ul>\n<li>mysql -u root -p (login to MySql)<\/li>\n<li>CREATE DATABASE databasename; (create a database, replacing databasename with the name that you wish to choose)<\/li>\n<li>GRANT ALL PRIVILEGES ON databasename.* TO username@localhost IDENTIFIED by &#8216;password&#8217;; (Create a user for the above database, replacing username with the name that you intend to use. Similarly with password)<\/li>\n<li>FLUSH PRIVILEGES;<\/li>\n<li>exit<\/li>\n<\/ul>\n<p><strong>Configure WordPress<\/strong><\/p>\n<ul>\n<li>vi \/var\/www\/localhost\/htdocs\/wordpress\/wp-config.php (and verify the following settings)<\/li>\n<\/ul>\n<blockquote><p>&nbsp;<\/p>\n<pre>\/\/ ** MySQL settings ** \/\/\ndefine('DB_NAME', 'wordpress');     \/\/ The name of the database\ndefine('DB_USER', 'username');     \/\/ Your MySQL username\ndefine('DB_PASSWORD', 'password'); \/\/ ...and password\ndefine('DB_HOST', 'localhost');<\/pre>\n<\/blockquote>\n<p><strong>Configure apache2<\/strong><\/p>\n<ul>\n<li>vi \/etc\/apache2\/httpd.conf<\/li>\n<li>Comment out the following line: LoadModule unique_id_module modules\/mod_unique_id.so<\/li>\n<li>Add the following to the end: ServerName localhost<\/li>\n<li>vi \/etc\/conf.d\/apache2<\/li>\n<li>Add the &#8220;-D PHP5&#8221; to the options passed in APACHE2_OPTS<\/li>\n<\/ul>\n<p><strong>You are set to go<\/strong><\/p>\n<ul>\n<li>Start apache2: \/etc\/init.d\/apache2 start<\/li>\n<li>Point your browser to http:\/\/localhost\/wordpress<\/li>\n<li>Have fun<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There are already a couple of informative articles on this. Good as they are, I managed to run into a couple of problems that are not detailed on these articles possibly due to the fact that they were written a long time ago. Therefore this article, to help others (and me) who in the future&hellip; <a class=\"more-link\" href=\"https:\/\/segfault.co.in\/?p=56\">Continue reading <span class=\"screen-reader-text\">Installing WordPress Locally on Gentoo<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12,10,5],"tags":[16,27,39,41,45,51],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-gentoo-linux-open-source-open-source","category-linux-open-source","category-open-source","tag-apache2","tag-gentoo","tag-linux","tag-locally-install-wordpress-on-gentoo","tag-php","tag-wordpress","entry"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p34yOJ-U","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/segfault.co.in\/index.php?rest_route=\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/segfault.co.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/segfault.co.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/segfault.co.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/segfault.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56"}],"version-history":[{"count":4,"href":"https:\/\/segfault.co.in\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":872,"href":"https:\/\/segfault.co.in\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions\/872"}],"wp:attachment":[{"href":"https:\/\/segfault.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/segfault.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/segfault.co.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}