Debugging for the Blog of my Pi

Run a blog on a Pi is interesting and satisfying, but being an amateur coder, I really got myself in a lot of troubles, including:

  • I changed my URL, but some relative addresses did not change correspondingly.
  • My WordPress can not download plugins and themes, for some firewall reason.
  • When it could download the plugin, it cannot install it…
  • I use my router to forward the requests on port 80 to my Pi. However, the router hosts a management website, which needs the port 80 as well. Some bug would derive from here.

Well, really funny.

I spend a day to solve them one by one.

What an exhausting work.

Trouble #1 :

I changed my URL, but some relative addresses did not change correspondingly.

It turns out that I modified the wrong file which is in charge of that “Could Apache modify my link?” thing. Use the following command to find out which file stores the configuration:

vim /etc/apache2/sites-available

And then assign the “AllowOverride” to “All”.

Trouble #2 :

My WordPress can not download plugins and themes, for some firewall reason.

When it could download the plugin, it cannot install it…

The owner of the directories of WordPress should be ‘www-data’, change it and ‘chmod’ it to 775, done.

Sounds easy… but it cost me more than 2 hours…

The last one:

I use my router to forward the requests on port 80 to my Pi. However, the router hosts a management website, which needs the port 80 as well. Some bug would derive from here.

Well, no solution. That’s why I end up immigrating my blog to Bandwagon.

Leave a Reply

Your email address will not be published. Required fields are marked *