Archive for April, 2006

How to Disable Wordpress2 Rich Text Editor

RantWordpress 2 by default, comes installed with a rich text editor. I’ve been struggling with some of my blogs as the alignments or formatting that I specify is consistently overwritten by Wordpress. I have no idea what or why this happens but it does.

To alleviate my headaches, all I need to do is turn off the rich text editor and write using HTML codes. The steps to do this is pretty straightforward:

  1. Go to your WordPress Dashboard
  2. Click on the “Users” link
  3. In “Your Profile“, scroll to the bottom of the page
  4. Under the heading “Personal Options“, untick the box next to “Use the visual rich editor when writing”
  5. Click “Update Profile

Done! You can now write your blog posts according to whatever formatting or alignments you desire.

Comments

Webmastering Magnet

WebmasterI have been a part-time webmaster for over a year now. Most of the time, I build and maintain my own sites (I now have about a dozen active sites which takes quite a bit of effort to maintain). Occassionally, when asked, I help others to build their sites (if the price is right).

My wife has been very supportive of my webmastering hobby but of late, she has been eyeing my revenue from advertisements. :eek: Drawn by the dollar signs in my online income report, she has decided to jump into webmastering as well.

She has just started a recipe site (took about a day for me to setup and customise) and has been diligently updating the site with new cooking contents. Officially, as of this post, she is a 2 day old webmaster and she’s taking quite a bit of effort to learn as much as she could. I’m sure she’s gonna be thrilled when she makes her first dollar off the Internet. I know I was.

Comments

Defaced by Mosavi1986

Mosavi1986I bloody pissed today. Not one but two of my sites was defaced by someone or some organisation that goes by the name Mosavi1986. One of the common defaced sites will look like the screenshot on the right. Basically the defaced website will say:

Mosavi1986
Special Thanks to Nobodycoder
A Hacker from Iran
and a Help with the link pointed to mosavi1986@gmail.com

I did some investigation and soon found that both the sites were on Mambo and Joomla respectively. I took a closer look and noticed that while most of the site structure remains intact and untouched, the configuration.php file was 328kB in site. As far as I could remember, the file should be no more than 4kB in size. I checked my other mambo sites and true enough, sizes varies between 2kB and 3kB.

Now, I am in a rut because I have no backup of my sites. I just assumed that my webhost will take care of that. Boy, was I wrong. Here’s how I recovered my sites:

  1. Copy an existing configuration.php file to my local machine
  2. Edit the configuration.php file to reflect the affected site. Here, typically, you need to set your MySQL data and other site information. Pay attention to the site’s path.
  3. Delete the affected configuration.php file (the one that is 328kB in size)
  4. Upload the edited file to your webhost

Note: if you have forgotten your MySQL password, simply access to your cPanel, delete the MySQL user and re-create again.
2 lessons learnt from this event. First, never set your configuration.php file permissions to 777 or 666. Make sure it’s set to 644. Secondly, backup, backup, backup. You just never know when you need that dreaded file.

Comments (3)

« Previous entries ·

 Subscribe to AmosWong.com

Buy Amos A Cup of Coffee

 
Locations of visitors to this page