{"id":30,"date":"2008-02-24T00:07:11","date_gmt":"2008-02-23T22:07:11","guid":{"rendered":"http:\/\/lisas.de\/~alex\/?p=30"},"modified":"2008-02-24T00:07:11","modified_gmt":"2008-02-23T22:07:11","slug":"to-each-his-own","status":"publish","type":"post","link":"https:\/\/lisas.de\/~alex\/?p=30","title":{"rendered":"To Each His Own"},"content":{"rendered":"<p>Now that <a href=\"http:\/\/lisas.de\/~patrick\/blog\" title=\"Patick's Blog\">Patrick<\/a> joined the <a href=\"http:\/\/lisas.de\">planet<\/a>, I decided to collect all steps necessary to make use of our local RPM-based multi-user <a href=\"http:\/\/wordpress.org\">WordPress<\/a> (WP from now on) setup so I won&#8217;t have to remember all of this next time. When Adrian agreed to running WP here, he insisted (and rightly so) on an RPM based installation (check for WP related CVEs if you wonder why).<\/p>\n<p>To run WP here, perform the following steps:<\/p>\n<ul>\n<li>Ask me to create a WP database for you<\/li>\n<li>Choose a path underneath your <code>~\/.public_html<\/code> you want to use for WP<\/li>\n<li><code>cd ~\/.public_html\/your\/blog\/dir<\/code><\/li>\n<li><code>ln -s \/usr\/share\/wordpress\/*.php .<\/code><\/li>\n<li><code>ln -s \/usr\/share\/wordpress\/wp-admin .<\/code><\/li>\n<li><code>ln -s \/usr\/share\/wordpress\/wp-includes .<\/code><\/li>\n<li><code>mkdir wp-content<\/code><\/li>\n<li><code>cd wp-content<\/code><\/li>\n<li><code>mkdir upload<\/code><\/li>\n<\/ul>\n<p>If you want to upload through WP, you will have to allow <em>apache<\/em> to write to the\u00a0<code>upload<\/code> directory. I would suggest using ssh for uploads instead.<\/p>\n<ul>\n<li><code>ln -s \/usr\/share\/wordpress\/wp-content\/plugins .<\/code><\/li>\n<li><code>ln -s \/usr\/share\/wordpress\/wp-content\/themes .<\/code><\/li>\n<\/ul>\n<p>If you want to use your own plugins or themes, you can also recreate these directories and symlink to your liking. Note that you will have to take care of security issues for these components yourself then.<\/p>\n<ul>\n<li>Now go back to the main blog dir (<code>cd ..<\/code> if you didn&#8217;t do anything fancy)<\/li>\n<li><code>rm wp-config.php<\/code><\/li>\n<li><code>cp wp-config-sample.php wp-config.php<\/code><\/li>\n<li>Edit <code>wp-config.php<\/code> and adjust all the DB_* defines<\/li>\n<li>Let me know the path to your <code>wp-config.php<\/code>, so I can adjust the global <code>wp-config.php<\/code> to use yours for your blog<\/li>\n<li>Setup your blog just like a &#8220;regular&#8221; WP installation<\/li>\n<\/ul>\n<p>Yes, it is a lengthy procedure, but it will give you the freedom of your own, customizable blog with the comfort of regular security updates by <a href=\"http:\/\/lisas.de\/blog\/adrian\" title=\"Root does the blog\">root<\/a>. Oh, and never copy and paste shell commands from forum posts or blog entries.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that Patrick joined the planet, I decided to collect all steps necessary to make use of our local RPM-based multi-user WordPress (WP from now on) setup so I won&#8217;t have to remember all of this next time. When Adrian agreed to running WP here, he insisted (and rightly so) on an RPM based installation [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,17],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-metablog","category-wordpress"],"_links":{"self":[{"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=30"}],"version-history":[{"count":0,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=\/wp\/v2\/posts\/30\/revisions"}],"wp:attachment":[{"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lisas.de\/~alex\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}