Change your PHP handler from mod_php (DSO) to suPHP

Finally, I decided to change my server’s PHP handler to suPHP from mod_php. It’s more secure and I can update my plugins and WordPress files automatically without annoying permission errors.

Here’s what my php config looks like after the update:


php.conf updated to:
# This file was automatically generated by the Cpanel PHP Configuration system
# If you wish to change the way PHP is being handled by Apache on your system,
# use the /usr/local/cpanel/bin/rebuild_phpconf script or the WHM interface.
#
# Manual edits of this file will be lost when Apache is updated.
# SuPHP configuration for PHP5
LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine on
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml

    suPHP_AddHandler application/x-httpd-php5

# End of autogenerated PHP configuration.
Updating user configurable PHP settings.
[info] recursion depth is set to: 2
Restarting Apache

Now, I can update WordPress hassle free!

To change your php handler, you should have WHM root access. This is the only way I know. I think you can change it via SSH, but I haven’t tried it yet.

Once you’re logged in as root, just go to Service Configuration > Configure PHP and SuExec > Alter Configuration > PHP 5 Handler > Select suPHP.

Once you’ve selected suPHP, just click “Save New Configuration”.

That’s it!

CHMOD folders, sub-folders, sub-sub-folders, and so on

If you recently changed your PHP handler to suPHP from mod_php or DSO, then you need to CHMOD all your folders, its sub-folders, sub-sub-folders, and so on to 744 to avoid any internal server errors, specifically internal server 500 errors.

And also, you need to CHMOD all of your files to 644.

In order to do this automatically, login as root in your server and go to your home directory, then enter this command via SSH.

For folders:
find {path to the folder} -type d -exec chmod 755 {} \\;

For files:
find {path to the folder} -type f -exec chmod 644 {} \\;

And that’s it! It will change the permissions of all your files and folders under your home directory automatically! It’s like magic!

Lumix LX5: An LX3, but much better

Finally, Panasonic unveiled the LX3’s successor! It’s the Panasonic Lumix DMC-LX3. Is much more powerful and better than the superb LX3. Almost all of its specs are upgraded and I can say, even if I didn’t get my hands on it yet, that it’s better compared to LX3.

Why it’s better? Because it’s a much improved version of the LX3, and there’s no reason that it will not be better than the LX3, because it’s LX5, and it’s obviously an upgrade of the LX3.

Ok, I think I’m being redundant here. Once I get my hands on the LX3, I will surely share it with you guys! Oh boy, LX3 is hot, sexy, and mouth-watering!

It’s January 2010, Happy New Year!

Happy New Year my dear readers, if you’re reading this. If you’re not reading this, then you’re not my dear reader. Whoever reads this post, is a dear reader. So if you’ve read the phrase: “If you’re not reading this, then you’re not my dear reader.”, then you’re already a dear reader of my blog!

What do to this new year? Hmmmm… I don’t know. I think I’ll just blog and share some cool stuff that I want to. I will post more often in the months to come. That’s a promise!

Hi There!

Welcome to my blog! I just want to welcome you all and have fun! I will post more often when I’m not busy. As of now, I just want to write my first post in this awesome blog! Finally, I have my own domain! Thanks to all who helped me set up my brand new blog. Once again, thank you!

This is my very first post on this blog. It’s the last month of year 2009. I will blog once again next year because I’m busy right now doing some offline stuff. I’ll be back on January 2010 and I promise to post more interesting articles in this blog of mine.

Oh well, that’s all for now. Chiti chat chat, chiti chat.