{"id":141,"date":"2008-07-02T12:57:42","date_gmt":"2008-07-02T04:57:42","guid":{"rendered":"http:\/\/www.janleow.com\/life\/?p=141"},"modified":"2008-07-02T12:57:42","modified_gmt":"2008-07-02T04:57:42","slug":"wordpress-installation-crashed-fix","status":"publish","type":"post","link":"https:\/\/www.janleow.com\/life\/wordpress-installation-crashed-fix.html","title":{"rendered":"Crashed my WordPress installation but finally got it fixed"},"content":{"rendered":"<p>I&#8217;m actually quite pleased with this WordPress software for my blog website. It is quite easy to use and has many features. With each upgrade, some new features were added. But my last upgrade caused some problems and took me a whole day to fix it. <!--more--><\/p>\n<p>Ryan asked me whose fault was it. Come to think of it, it was not the upgrading installation fault, but an old issue. When I first installed it, I place it in a directory called journal. After making quite a number of posts, I decided I didn&#8217;t like that folder because the URL was affecting the kind of ads displayed from Google. I could of course just delete the installation and start all over again, but it would be very tedious to repost the blogs. Another way was to somehow back up the SQL and restore it to the new installation. However WordPress has a feature in which it allows the blog to be displayed on another directory. This feature was actually for those would like to keep their root directory of their website clear from clutter. So I decided to try it.<\/p>\n<p>Setting up was quite easy. Just go to the settings page and change the Blog address URL to where you want the WordPress to be displayed while keep the WordPress address URL pointing to where your installation is located.<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.janleow.com\/imgs\/wordpress_url.png\" alt=\"WordPress URL blog location\" title=\"wordpress_url\" width=\"474\" height=\"300\" class=\"aligncenter size-full wp-image-142\" \/><br \/>\n<script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-5685769204706262\";\ngoogle_alternate_color = \"eeeecc\";\ngoogle_ad_width = 336;\ngoogle_ad_height = 280;\ngoogle_ad_format = \"336x280_as\";\ngoogle_ad_type = \"text\";\n\/\/2007-08-06: JanLeow.com Blogs\ngoogle_ad_channel = \"5832813811\";\ngoogle_color_border = \"FFFFFF\";\ngoogle_color_bg = \"FFFFFF\";\ngoogle_color_link = \"CC0000\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"808080\";\ngoogle_ui_features = \"rc:0\";\n\/\/--><\/script><br \/>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><br \/>\n<\/center><br clear=\"all\"><\/p>\n<p>Next was to have your .htaccess file in the new blog folder to point it to your current WordPress installation location:<\/p>\n<blockquote><p>\n# BEGIN WordPress<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/blog\/<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule . \/blog\/index.php [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WordPress\n<\/p><\/blockquote>\n<p>This went on fine for a long time, I could make my post and it showed up in the folder that I wanted till I made a recent upgrade to WordPress version 2.5.1<\/p>\n<p>Somehow the post did not show up when the URL was clicked and I ended up on my Drupal site which was installed in my root directory. At first I thought it was my Drupal installation or the root .htaccess file that was messing up with my WordPress program. After tinkering with the root .htaccess with no success, I finally stumbled upon the problem when I reverted the WordPress to its original location. The post could be displayed without any problem but it was using the original installed directory, not the directory that I specified. I didn&#8217;t want to change back to the original directory because I have many incoming links pointing to the blog.<\/p>\n<p>To work around, I took a chance and shifted the entire installation by copying it over to the directory that I wanted. Not all program can be shifted just like that because of internal linking. However WordPress do not seem to have any problem after shifting it. All my URL addresses are correct again, though I now have to log in using the new location. To make sure it worked, I rename the old folder just to see whether WordPress would crash. It seems to work fine and I decided to keep it that way for now.<\/p>\n<p>Moving the installation did pose me one problem, the Fantastico DeLuxe that came with my <a href=\"http:\/\/www.bluehost.com\/track\/janleow\/article_wordpresscrash\" target=\"_blank\" rel=\"nofollow\">BlueHost hosting provider<\/a> would now not know where my WordPress is installed. If I were to use its automatic upgrade feature, it will not upgrade the new location. I would have to either manually upgrade it, or copy over any upgrades to the old WordPress location and keep my fingers crossed that it would not crash. One possible idea is to reinstall the whole WordPress installation to make use of the auto upgrade feature by first backing up the SQL database, then after installation, restore the SQL database. I&#8217;ll probably do this project next time after running some test to see if it would work.<\/p>\n<p>I&#8217;ll continue with this set up for now as the project seems tedious and I have other fishes to fry.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m actually quite pleased with this WordPress software for my blog website. It is quite easy to use and has many features. With each upgrade, some new features were added. But my last upgrade caused some problems and took me a whole day to fix it.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[12],"tags":[31,160,162,165],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1bS5F-2h","jetpack-related-posts":[{"id":728,"url":"https:\/\/www.janleow.com\/life\/make-drupal-website-cms-content-management-software.html","url_meta":{"origin":141,"position":0},"title":"Making a Drupal Web Site","author":"Jan","date":"22 July 2008","format":false,"excerpt":"Drupal is like a jack of all trades. You could use it for setting a proper website with tier like structure for easy navigation, you could use it to set up a forum, or you just use it to set up a blogging site. It is so versatile that according\u2026","rel":"","context":"In &quot;Website&quot;","block_context":{"text":"Website","link":"https:\/\/www.janleow.com\/life\/category\/website"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":859,"url":"https:\/\/www.janleow.com\/life\/fixed-wordpress-websites-auto-install-using-simple-script.html","url_meta":{"origin":141,"position":1},"title":"Fixed my WordPress websites auto install using Simple Script","author":"Jan","date":"3 November 2008","format":false,"excerpt":"During my last upgrade, I crashed my Wordpress websites and after I made the web site to work, it broke the Fantastico DeLuxe automatic upgrade feature. Manual upgrading was a little tedious and I had to go through several steps to make any update to the Wordpress installation. I did\u2026","rel":"","context":"In &quot;Website&quot;","block_context":{"text":"Website","link":"https:\/\/www.janleow.com\/life\/category\/website"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2887,"url":"https:\/\/www.janleow.com\/life\/b2evolution-for-blogging.html","url_meta":{"origin":141,"position":2},"title":"B2Evolution for Blogging","author":"Jan","date":"25 January 2011","format":false,"excerpt":"I was toying around with B2 Evolution which is used for blogging. Thought I try an alternate from the popular Wordpress installation and see how it goes. On the first look, the B2 Evolution looks great and it has multiple section for your blogging needs. You can create blog A\u2026","rel":"","context":"In &quot;Website&quot;","block_context":{"text":"Website","link":"https:\/\/www.janleow.com\/life\/category\/website"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":545,"url":"https:\/\/www.janleow.com\/life\/planning-to-tweak-my-website-again.html","url_meta":{"origin":141,"position":3},"title":"Planning to tweak my website again","author":"Jan","date":"27 September 2008","format":false,"excerpt":"I have been thinking about it awhile. With so many disparate SQL database and sub web site scattered around this personal domain of mine, I thought of cleaning it up a bit. After all, most of the incoming web site traffic is to this blog anyway. This might also meant\u2026","rel":"","context":"In &quot;Personal&quot;","block_context":{"text":"Personal","link":"https:\/\/www.janleow.com\/life\/category\/personal"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4174,"url":"https:\/\/www.janleow.com\/life\/raspberry-pi-getting-started.html","url_meta":{"origin":141,"position":4},"title":"Raspberry Pi Getting Started","author":"Jan","date":"1 November 2020","format":false,"excerpt":"Raspberry Pi is a nifty little single board computer (SBC) introduced many years back. I started to have an interest in this palm sized computer last year while looking for some PC tinkering projects. It was the time when Raspberry Pi4 model B was launched with much advancement over its\u2026","rel":"","context":"In &quot;Computer Devices&quot;","block_context":{"text":"Computer Devices","link":"https:\/\/www.janleow.com\/life\/category\/computer-devices"},"img":{"alt_text":"Raspberry Pi 4 model B","src":"https:\/\/i0.wp.com\/www.janleow.com\/imgs\/wp\/2019-08-17_rpi_JL1.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.janleow.com\/imgs\/wp\/2019-08-17_rpi_JL1.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.janleow.com\/imgs\/wp\/2019-08-17_rpi_JL1.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.janleow.com\/imgs\/wp\/2019-08-17_rpi_JL1.jpg?resize=700%2C400 2x"},"classes":[]},{"id":1195,"url":"https:\/\/www.janleow.com\/life\/finally-upgrade-to-windows-7.html","url_meta":{"origin":141,"position":5},"title":"Finally upgrade to Windows 7","author":"Jan","date":"29 December 2009","format":false,"excerpt":"Windows 7 is out in the market for some time now. And from what has been reviewed, it seems to be very popular and much more user friendly than Windows Vista. So without much ado, it was time for me to upgrade to Windows 7, well at least for my\u2026","rel":"","context":"In &quot;Computer Devices&quot;","block_context":{"text":"Computer Devices","link":"https:\/\/www.janleow.com\/life\/category\/computer-devices"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":0,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}