linux n00b

WordPress “Unable to locate WordPress Content directory (wp-content).”

Posted in Wordpress by downforce on February 15, 2012

Got stumped on this and a whole bunch of Google results gave a bunch of random fixes.

I personally try and avoid hacking core wp files as future upgrades break my hacks.

Found a plugin that does it here: Third Party Host Fix.

Advertisements
Tagged with:

Migrating Magento to new (sub)domain

Posted in Applications, Howto by downforce on August 12, 2010

UPDATE: Well it turns out this fixes the store, but not the downloader/PEAR updater. More work to figure that one out!

I’ve been trialing Magento on and off for a few years and one day I’ll get my butt into gear to migrate my whole store from Zen Cart (which desperately needs to be patched anyway) to Magento, but I’ve been trying to tie it into a new automated pricing script I’ve been developing (also for a year or so).

I’ve also rationalised my count of subdomains on my domain and moved my old magento development environment from dev.domain.com to store.domain.com. Previously migrating domains has been a major PITA for Magento but today I decided to screw around in the database and found it to be rather painless!

The database is in the same location with same username/password so all I needed to do was to update the base_url and here’s all I did:

So a few steps, confirm that the two config_data fields are where you want them:

select * from mag_core_config_data where path like 'web/%/base_url';

I have the following output:

+-----------+---------+----------+-----------------------+---------------------------------+
| config_id | scope   | scope_id | path                  | value                           |
+-----------+---------+----------+-----------------------+---------------------------------+
|        19 | default |        0 | web/unsecure/base_url | http://dev.domain.com/ |
|        20 | default |        0 | web/secure/base_url   | http://dev.domain.com/ |
+-----------+---------+----------+-----------------------+---------------------------------+

So it was a simple case of updating these values:

update mag_core_config_data set value = 'http://store.domain.com/' where path like 'web/%/base_url';

BUT unfortunately it still wasn’t rendering properly. I discovered that the pages get cached! OH NOES!

Oh well, let’s just purge the cache and start again:

#rm -Rf /path/to/magento/install/var/cache

And good to go! Now to upgrade to the latest version.

Tiny Tiny RSS – Web-based RSS feed aggregator

Posted in Administration, Applications by downforce on May 21, 2007

Linux.com did a great article on Tiny Tiny RSS (“TT-RSS”).

As with all my software, I like my server to run the function if possible. I have my torrents, calender/PIM, knowledge base and now my RSS feeds all accessible via the web from my webserver.

TT-RSS is a great piece of software, it’s AJAXified PHP so the interface is smooth as but nice and responsive.

Couple of great features, it can be single or multi-user, there is a grouping + tagging/label function. This involves setting SQL strings, but I haven’t used it yet. TT-RSS can be set to download in the background or when you load it.

I imported my OPML from Akregator and now I’m up and running, just needed to sort the categories as it only supports 1 level of grouping as opposed to nested in Akregator.

I recommend giving it a go!

EDIT: Added links, some reason I didn’t before .. weird!

My possible knowledge base solution … Google Docs

Posted in Applications, Knowledge Base by downforce on May 9, 2007

Another follow-up to my online knowledge base ….

After my previous post about “GKnow“, I checked out Google Docs ….

Amazingly (or maybe not so amazingly but logically?) Google Docs actually does a lot of what I want. Here’s a summary:

  • By nature it’s in edit mode, I can still click [most] links in edit mode with Ctrl-LMouse.
  • Every document is private unless I mark it public. I actually like this idea, more than my original proposal.
  • There is an option “Edit HTML”. I can effectively import all my previous documents from Knowledgebasepublisher to Google Docs via C&P’ing the HTML source!
  • There is an extensive list of export options, HTML, PDF, OO.
  • Of course there are negatives otherwise I’d be raving on like a mad man saying I’ve solved the worlds [which is my] problems!

  • Google services do not support Opera [Which leads me to two new articles, My love/hate relationship with Opera and How to get Google Services working with Opera, neither are written yet, but will add links when I do]
  • I’m at the mercy of the Google servers. I did want to host it on my own machine, therefore I know who and what is being accessed when. I have a innate scepticism for Google since they went public. Call it paranoia, but it’s there.

Well, I’m going to give it a go and see how it pans out until I find exactly what I want.

FreeMind

Posted in Applications by downforce on April 27, 2007

I found this software a few weeks ago to help organise some thoughts on a new project I’m undertaking at work.

I just found the latest beta 0.9.0 Beta 9 and all I can say is wow! v0.8.0 was impressive but v0.9 takes it to a new level.

You can add embedded HTML notes and can even publish it to a website with either an applet or as flash.

It’s a tool that’s becoming a regular in my arsenal of computer apps and being developed in java, works on any platform!

Setting Opera Searches to your local Google/Google Linux

Posted in Applications, Desktop, Howto by downforce on April 19, 2007

One of the thing Opera can do it address bar searches. I like this feature alot, as around 75% of new tabs I open lead are for doing some sort of Google search.

The keyboard shortcut to enter the address bar is either ctrl-l or F8. I used to use F8 more until I started using Epiphany which is only ctrl-L.

To do a normal google search simply type “g I want to search for this

Easy as hey?

So now I live in Australia I want this to default to Google Aus. To change it do this:

  • Tools -> Preferences or ctrl-F12 then Search tab.
  • Click on Google and press Edit.
  • Click on Details
  • Just change http://www.google.com to your local Google, in my case I added .au to the end so the string became http://www.google.com.au/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8
  • Whilst you are there, you might as well check that Google is the default and tick both default search engine and Speed Dial search engine.

    Now, I also use Google Linux alot, so I’ve created a new search called gl. Can you guess why?

    To do this:
    Press Add
    Name: Google Linux
    Keyword: gl
    Address: http://www.google.com/linux?num=50&hl=en&q=%s&btnG=Search
    If you want to use this as default, then check the default boxes.

    Now you can type gl wajig and it uses Google Linux!

    On a side note, change the part of the string num=50 to another number to change the number of results on each page.

    Nifty hey!