Nowdays WordPress is ran by million of blogs and websites all around the net. I myself run wordpress for this blog in general wordpress behaves quite well in terms of performance. However as with time the visitors tend to increase, on frequently updated websites or blogs. As a consequence, the blog / website performance slowly starts to decrease as result of the MySQL server read / write operations creating I/O and CPU load overheads. Buying a new hardware and migrating the wordpress database is a possible solution, however for many small or middle size wordpress blogs en sites like mine this is not easy task. Getting a dedicated server or simply upgrading your home server hardware is expensive and time consuming process… In my efforts to maximize my hardware utilization and increase my blog decaying performance I've stumbled on the article Optimize WordPress performance with wp-config.php
According to the article there are 4 simple wp-config.php config directvies useful in decreasing a lot of queries to the MySQL server issued with each blog visitor.
1. WP_HOME and WP_SITEURL wp-config.php directvies
The WP_HOME and WP_SITEURL variables are used to hard-code the address of the wordpress blog or site url, so wordpress doesn't have to check everytime in the database on every user request to know it is own URL address.
So far I have tested the vars on a couple of wordpress based installs with caching enabled and even on them it seems the pages load faster than before, but I cannot say this for sure as I did not check the site loading time in advance before hardcoding the vars.
Anyways even if the suggested variables couldn't make positive impact on performance, having the four variables in wp-config.php is a good practice for blogs or websites which are looking for extra clarity.
For multiple wordpress installations living on the same server, having defined the 4 vars in different wordpress seems like a good idea too.
I've recently decided to add Comment as OpenID functionality to my wordpress blog. The reasons to do that is that I myself have today created an OpenID account. Already million of people have OpenID account without even knowing. Most major search engines and social websites like Google, Yahoo, Live Journal, Hyves, Blogger, Flicker, MySpace automatically creates an OpenID account for newly registered users.
It is up to the user to check with each of the aforementioned providers what is the URL of their OpenID account.
Even though OpenID popularity is steadly rising, I'm sure there are still plenty of users who did not heard, used or noticed OpenID yet.
So What the heck is OpenID?
For all those who still haven't heard about it, OpenID is a universal web site login system With just one "unified" OpenID account the user can login to multiple websites with no need to create multiple accounts across each and every different website on the internet.
The only requirement for the user to be able to use OpenID is that the website in question to have (support) for OpenID credential and the user to have existing OpenID account.
Therefore using one single OpenID you can sign in as a certain user to multiple websites on the internet with no need for annoying registration process to each and every new website you encounter. Another benefit OpenID gives to the user is that you don't have to memorize or keep notes of a tens or thousands of different login accounts across the many different websites on the net.
Using OpenID also saves the user from troubles with forgotten password or username as just one OpenID login is used to login you everywhere.
For WordPress blogging platform the Russian Igor Korolev, has written a wordpress plugin – comments-to-wordpress . This plugin adds support for OpenID authentication in WordPress comments.
Here is how to OpenID to WordPress:
1. Download the comments-with-wordpress plugin and unzipAs of writting of this article latest comments-to-wordpress plugin is ver. 1.4.
Download the plugin to blog path directory lets say, /var/www/blog/wp-content/plugins/ and unzip:
Save the comments.php file and you Identification for new comments with OpenID will appear in your wordpress Comments form.
The OpenID plugin will add a number of service OpenIDs to choose between like you can see in my blog's plugin section or the screenshot below:
The URL https://www.google.com/accounts/o8/id is just a sample and showed because I clicked on the Google icon. If you have a Google profile you can check the exact ID and use it as URL there. Simply if your browser is logged in Gmail and you have Google profile. OpenID should work. As you can see the plugin supports a number of services which already support OpenID auth, the list of services can be easily extended by adding minor changes in …/plugins/comments-with-openid/comments-with-openid.php
There is also another wordpress plugin with the openid name – http://wordpress.org/extend/plugins/openid/
Downloading and enabling the other openid plugin also adds support for OpenID login in your http://your-url.com/wp-admin/ login page.
Installing the OpenID plugin is needed especially if you're a blogger blogging on 5 or 10 different topic oriented blogs, once downloading and installing the OpenID plugin will allow you to login across the blog ring without loosing time or bothering to remember different passwords across all the blogs. Here is a screenshot of the /wp-admin wordpress login page with the OpenID wp plugin enabled:
As of time of writting according to http://openid.net/get-an-openid/what-is-openid/'s website there are over 50000 major websites on the net already accepting OpenID login.
Of course as every technlogy OpenID is not perfect and along with its convenience in some cases it could impose security hole. OpenID opponents claim under some circumstances OpenID is prone to forgery, XSS (cross site scripting) and XSFR attacks. Everyone who is about to use OpenID should be also aware of the great security risk it impose if one OpenID account gets stolen through sniffing, this could mean multiple websites can be accesses with the one single OpenID by the malicious user and a lot of confidential data owned by the user can be revealed or deleted …
With this said I think OpenID is not a recommended login technology for Windows users, as windows is famous for being vulnerable to so many Viruses and Spyware/Malware etc..
With non-free software OSes like MS Windows, the user never cannot for sure if the system is infected, hence using OpenID to transfer credentials over the internet or store an OpenID SSL/(TLS) certificate to identify in websites is TOO DANGEROUS!
Hope this article was helpful. Cya
I needed to link a new created WordPress Post to external web page address. So when one clicks over the created post he opens an external website.
I've googled around to see how this can be achieved and found ordpress external links plugin
I gave a go of the plugin, but pitily I couldn't make it work. I decided to try some other methods and after some time I tried another approach. I used the HTML >a href=""< My Post Title </a> as a title and it appeared this simple method prooved working
Here is a small screenshot, from wordpress Add New Post dialog
By the way the information online I've found on how this the external link creation for a Page or a Post is made was quite obscure and messy. i wonder why there is no clear explanation on the direct a href link creation, especially since WordPress is a de-facto standard for a blogging platform and nowdays powers up so many websites engines around the world.
My sister has forgotten the administrator account for her wordpress blog as she did not blogged for a while.
I decided to help her and reset the WORDPRESS blog password to another one.
The easiest way of course in normal circumstances is to use wordpress's Lost your password password reset via email.
However with this blog it seems I used an email address which I forgot so I couldn't really use this as a mean to reset the blog password.
Therefore as I'm addicted to command line I decided to do it straight via connecting to mysql server with mysql cli and change the encrypted password value directly there. Here is how I did it:
1. First I logged in to the mysql server with my root user/pass
pcfreak# mysql -u root -p
Enter password: Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 39263
Server version: 5.0.83-log FreeBSD port: mysql-server-5.0.83
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
2. Then I checked current set user and password for the wp-admin admin user
mysql> use wordpress1;
mysql> select * from wp_users where user_login like '%admin%';
| ID | user_login | user_pass | user_nicename | user_email | user_url | user_registered | user_activation_key | user_status | display_name |
| 1 | admin | $P$BG9eMoysG8ztywLp25AOpJSkWlRZMu. | admin | firstname.lastname@example.org | | 2011-03-10 13:44:26 |
| 0 | admin | +----+------------+------------------------------------+---------------+----------------+----------+---------------------+---
1 row in set (0.25 sec)
3. Used a query to reset the current encrypted password you see below shown under the user_pass column
mysql> UPDATE wp_users SET user_pass= MD5('my_new_wordpress_password_to_reset') where ID = '1';
4. I've changed the email set for user_email to which mail is sent, in case of forgotten password again
I've done this to prevent my sister to bother me again, if she forgets her password once again
mysql> UPDATE wp_users SET email@example.com' where ID = '1';
One important note here is that in step 3
I've used the MD5(); mysql embedded function to generate the MD5 crypted password which is inserted in above's sql query, however the MD5 function is only available in MySQL servers version 5.x, therefore in older releases of MySQL e.g. ver 4.x, one will have to first generate the md5 password with let's say md5sum linux command or bsd's md5 cmd like so:
a. On Linux hipo@noah:~$ echo 'my_new_wordpress_password_to_reset' | md5sum
One of the contact forms running on a FreeBSD server configured to work on top of Apache+MySQL suddenly stopped working.
The errors that appeared on the webpage during a page request to the form url was:
Fatal error: Class 'SimpleXMLElement' not found in /var/www/joomla/plugins/system/plugin_googlemap2_helper.php on line 2176 Fatal error: Class 'JLoader' not found in /var/www/joomla/plugins/libraries/loader.php on line 161
As you see in the output the website which was causing the issues was running a Joomla version 1.5.23 Stable configured with RSForm!ver 1.5.x (as a contact form solution) and Google Maps version 2.13b plugins.
The Google Map from Google Maps plugin and the RSform were configured to appear on one physical configured article in Joomla and seemed to work just until now. However yesterday suddenly the error messages: Fatal error: Class 'SimpleXMLElement' not found
Fatal error: Class 'JLoader' not found
came out of nothing, it's really strange as I don't remember doing any changes to either Joomla or the PHP installation on this server.
There is one more guy who has access to the Joomla installation which I suspect might have changed something in the Joomla, but this scenario is not very likely.
Anyways as the problem was there I had to fix it up. Obviously as the error message Fatal error: Class 'SimpleXMLElement' not found reported the server php simplexml was missing!
Just to assure myself the php simplexml extension is not present on the server I used the classical method of setting up a php file with phpinfo(); in it to check all the installed php extensions on the server.
Finally to solve the issue I had to install the module from ports php5-simplexml , e.g.:
freebsd# cd /usr/ports/textproc/php5-simplexml
freebsd# make install clean
Afterwards to make the new settings take place I did restart of my Apache server:
freebsd# /usr/local/etc/rc.d/apache2 restart
Waiting for PIDS: 63883.
Performing sanity check on apache2 configuration:
Now my Joomla contact form is back to normal
If someone has any idea why this error occured without any php or server modifications, and how comes that all worked fine beforehand even though I did not have the simplexml module instlaled on the server o_O, I would be enormously greatful.
I have noticed that many blogs nowdays offer an email subscription box to simplify the subscription procedure for the blog readers.
My blog was lacking this feature so I took the time to find out how can I add an e-mail subscription box field on my blog.
My research has shown me that the easiest way to add the subscription box is by using Google's Feedburner RSS service .
I've been using Google FeedBurner for quite some time and I've already 27 subscriptions with it.
Earlier when I added a FeedBurner subsciption to my blog I've blogged about it, so if you're not acquainted on how to add FeedBurner service to your blog, you might want to read my previous article Adding RSS Feed to WordPress in conjunction with FeedBurner / WordPress add-to-any-subscribe plugin
In this article I will explain in short step by step, how to add the subscrpition email box to your wordpress I assume, that the reader has already enabled and configured registration with Feedburner, if you still haven't just skip few lines above and check my previous article.
I would hereby skip the explanation of why feedburner as an RSS is so advantageous for every blog owner and readers and skip further to the email subscription procedure step by step instructions: Step 1: Login to your FeedBurner Account
In my case my feedburner account url is accessed via the URL http://feeds.feedburner.com/WalkingInLightWithChrist-FaithComputingDiary
I have been properly logged in to my feedburner, so to view statistics of my current feeds subscription and to configure various variables of feedburner I had to access the URL address: http://feedburner.google.com/fb/a/myfeeds, a very quick shortcut to my feedburner account settings is also avaialable by simply accessing the URL: http://feedburner.com
Step 2: Click on the link that says My Feeds
If you have configured feeds for your feedburner you will get the list of feedburner feeds, (one could have multiple feeds, let's say if you have a couple of blogs or sites and you use one feedburner account to podcast your feeds for each of the separated blogs or sites.
Step 3: Click over the feed you want to have the feedburner email subscription box
Below you see the screenshot of my configured feedburner feed:
Right after clicking on your configured feed in my case Walking in Light With Christ – Faith, Computing, Diary you will see the screen:
Step 4: Click on Publicize menu
You will see the following two screens while scrolling with your browser:
You see in the second screenshot above there is a textbox with a html form code, to set the feedburner subscription to appear on your blog you need to copy/paste this code and put it on your blog.
After copy/pasting the code, don't forget to scroll down in your browser and save the email subscription generated form settings, (NB! if you don't save it it want be working even if you install it on your blog).
Here is the Save button screenshot:
Step 5: Setting up feedburner email textbox to wordpress
In order to set up the just copied html and css form code you need to login to your wordpress blog admin and go to:
Appearance -> Widgets
Scroll over the Available Widgets list, find the Text Widget and press the Add button to include the Text Widget to your blog sidebar.
Further on the same Widgets page, go to the Sidebar menu find the just added Text Widget and click over the Edit link:
Here is my screenshot of the edit screen of the Text Widget:
Step 6. Add the feedburner email subscription box to single posts blog views
This step is not a requirement, but I found it for myself to be vital, as it might rise some more subscribers to my blog, if my blog readers finds individual indexed pages in Google.
This step is also highly dependant on the wordpress theme you use, I use the old wordpress default theme and it's default behaviour is not to show up the wordpress sidebar, whether an individual wordpress post is clicked over, therefore to enable my feedburner subscription box for individual posts I also need to place the form code obtained from Feedburner.com's to my templates single.php
If you're using some kind of theme that doesn't have the non-sidebar single post behaviour you might skip forward this step, otherwise just continue on reading.
To include the feedburner email form subscription to my single posts I edited blog/wp-content/themes/default/single.php
In the single.php file find the code:
<?php comments_template(); ?>
Immediately after the above code place your feedburner form code, like you see in below screenshot:
Again this step is voluntary and is not necessery I've disliked the default way the form is formatted so I played a bit with few of it's values to customize it to my likings, the things which I have changed a bit in the provided feedburner form code was:
Remove the Delivered by Feedburner text from the form
>To do so in the issued feedburner form code below when you copy the code paste it to some text editor and remove from the code the text:<p>Delivered by <a href="http://feedburner.google.com" target="_blank">FeedBurner</a></p>
- Change the subsciption box width and height:
style="width:140px"Changed that to:style="width:120px"also I've changed:'scrollbars=yes,width=550,height=520'to:'scrollbars=yes,width=450,height=420'Another point of interest for adjustmnets in the feedburner for are in the form code:
Remove feedburner subscription form default bordering
form style="border:1px solid #ccc;padding:3px;text-align:center;"I've changed that to:form style="border:0px solid #ccc;padding:2px;text-align:center;"By changing the css values border:1px to border:0px I have instructed the subscription box to show up without borders.
That's all now refresh in your browser and check if the feedburner email subscription form is showing up properly to your wordpress.
To completely ensure yourself it works correctly try to subscribe yourself to the form and during your next blog post you should receive an email notifying you about the newly written article.
You can see, my blog feedburner subscription form on the blog right sidebar or on the below picture:
One of the mail servers I’m administrating has problems deliving emails to addresses at @Hotmail.com, @live.com and @msn.com.
That’s quite irritating especially when all of the other major mail servers, Yahoo Mail, Gmail etc. do accept my qmail server messages in their Inbox.
Every email that is addressed to for example hotmail.com is returned back to my sender folder with the message:
Remote host said: 550 SC-001 Unfortunately, messages from 22.214.171.124 weren't sent. Please contact your Internet service provider since part of their network is on our block list. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
Right after my mail server delivery problems were reported by one of my colleagues, the first step I took was check if my mailserver is listed in some of the major email blacklist databases on the address:http://www.mxtoolbox.com/blacklists.aspx
By opening the above url in a browser and putting a server IP, I was unpleasently notified that my mail server let’s call it with the fiction name mail.server.com is existing in the Spamcannibal blacklist dabase . Spamcannibal as most of the blacklist databases.
To completely reassure myself my server host IP is in spamcannibal, I’ve used spacannibal’s website whois on the urlhttp://www.spamcannibal.org/cannibal.cgi.
Of course this proofed one more time I’m listed in spamcannibal… Thanksfully spamcannibal has a contact form which can be used to delist an IP address from their blacklist right from their website.
After a day of waiting my server IP was removed from spamcannibal blacklist and therefore using the mxtoolbox.com’s website mail server blacklist checker I’ve assured myself the mail server is no longer in the most notable spam blacklist on the net.
I’ve gave another try to deliver an email to my hotmail mail account firstname.lastname@example.org . The mail delivery was unsuccesful again, the qmail failure notice daemon returned my sent email to my email@example.com once again with the error of:
Hi. This is the qmail-send program at mail.server.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out.
<firstname.lastname@example.org>: Connected to 126.96.36.199 but sender was rejected. Remote host said: 550 SC-001 Unfortunately, messages from 188.8.131.52 weren't sent. Please contact your Internet service provider since part of their network is on our block list. You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors.
--- Below this line is a copy of the message. ....
The situation by so far was that I knew for sure my qmail mail server IP is not listed in major spam black lists, but still i couldn’t say for sure that there was no minor blacklist where my ip figurates, neither I was completely sure about the exact requirements microsoft expects from my mail server.
Some of the presumed reasons which could think of could be the cause the hotmail mail delivery failure errors were as follows:
1. My mail server IP had no correct A domain name record or a PTR record
2. My mail server was missing a correct SPF record 3. My dedicated server ISP has some blacklisted dedicated server IPs which belong to the same IP range as the mail server
I’ve walked through each of the 3 expected reasons that might cause the failure but it appeared that my mail server was configured to fullfil each of the 3 aforementioned requirements.
To assure myself each of the failure reasons were untrue I issued the commands:
linux:~# host mail.server.com mail.server.com has address 184.108.40.206 linux:~# host 220.127.116.11 18.104.22.168.in-addr.arpa domain name pointer mail.server.com. linux:~# host -t TXT mail.server.com mail.server.com descriptive text "v=spf1 mx ptr mx:server.com mx:mail.server.com mx:mail2.server.com -all"
Also I used the kitterman.com‘s SPF Query Validation tool located on http://www.kitterman.com/spf/validate.html to make sure my mail server SPF record is correct.
Another way to check if a mail server SPF records are correct is by sending a test email to for gmail.com and check in the email headers.
(To check the email headers in Thunderbird you can press ctrl+U) When the email source appears look for the field Received-SPF: pass (google.com:…. If the field says pass this means your mail server SPF is fine, if it reads uknown or something different this means it’s not fine.
Next you will have to call your ISP and have a tech conversation with the tech support.
As nothing of the above assumed possible failure was checked and I was sure the email server is not affected by them
Further on logically enough I’ve pointed my browser to the http://mail.live.com/mail/troubleshooting.aspx#errors which which was prescribed in the reject email returned from hotmail’s mail server.
On that URL I red the meaning of the Remote host said: 550 SC-001 , Here is what it says:
550 SC-001 Mail rejected by Windows Live Hotmail for policy reasons. Reasons for rejection may be related to content with spam-like characteristics or IP/domain reputation. If you are not an email/network admin please contact your Email/Internet Service Provider for help.
Ain’t helpful is it??! Well I think Microsoft has a tradition of unhelpful manuals and documentation since the yearly days so that hotmail mail server error code explanation wasn’t that unexpected
As I was out of ideas, I joined irc.freenode.net and asked for help in #exim irc channel. Thanks God, there was a guy with an alias cannonball who gave me a good hints which I followed.
First he suggested that I see and join Microsoft’s (Smart Network Data Services) they’re located on https://postmaster.live.com/snds/index.aspx
Thanksfully the Smart Network Data Services could be accessed with my hotmail mail account, credentials, but after logging in to give me a real access to the site content I had to confirm, I’m a legit person and provide an legit email address where I can receive the confirmation.
As this went by in the https://postmaster.live.com/snds/addnetwork.aspx I had to use the buttons Requert Access, View IP Status and View Data to check the status of my mail server IP address 22.214.171.124
After all this struggle in 1. Requesting Access to my IP, View IP Status and View Data I finally found out the guess what unexpected fact that Microsoft’s mail servers has blacklisted my mail server IP Address!, How unexpected was that, heh ?!
So to sum up all this effort of registering in Microsoft SNDS gave me not any further clue on what I can change in my qmail mail server installation to make the user emails deliver to @hotmail.com.
After a bunch of investigation on the net, I’ve found another post which discussess issues with the 550 SC-001 error reason for a failed mail server deliveries to microsoft mail services.
Click over the link above and you will be pointed to Microsoft’s annoying Eform for IP removal from their spam blacklist
The form needs to be filled and after that you can start praying to God to be merciful and push up Microsoft to have a good will and remove your IP from their mail spam blacklists.
The form filling takes about 20 minutes, there are plenty of information you will have to fill in the form but try to be as concrete as possible!
All the form fields are with (*) – asterisk and therefore are a required fields. After I filled up the irritating form, I’ve faced the horror of Microsoft’s Captcha!!!
Honestly I haven’t seen a more bad captcha in my life, I can’t read anything on it, neither I can perceive what word or number it is nor I can grasp whether the captcha shown letter is lower or capital… it’s really a terrible CAPTCHA I tell you! so beware and try to put all your patience in while filling it in.
What made it even worser this damned Microsoft’s IP removal form was the fact that it doesn’t work at all with Opera and Epiphany browsers.
I tried initially to use Epiphany and Opera to post the shitty form but it was no go, it could not post!!! Thank you Microsoft for making your form a platform incompatible, I know you’re really good in that!
I finally launched IceWeasel (Firefox) and filled in the boring form once again and Thanks God this time it was properly posted as you read below:
Sender Information for Hotmail Delivery E-mail SupportE-mail Support Thank you for submitting your issue to Support.
Your Support Ticket Number:1151722088 For reference, please print this page or write down your support ticket number. Use this number when communicating with Support about this issue. To make sure that you can receive a reply from Microsoft, add the "microsoft.com" domain to your e-mail "safe list". If you do not receive a response in your "inbox" within 24 hours, check your "bulk mail" or "junk mail" folders.
Print the page? I guess Microsoft are not very green company as they suggest you to print it out ?
Now I’m stuck into waiting and hoping that my removal request will be regarded and in a couple of days of time I’ll either hear a word from Microsoft’s tech support or directly get unbanned from their spam black list…. Pfuuu
Point in your browser to http://yoursite.com/joomla/administrator/ or to url wherever your admin panel is located
2. Go to Menu Manager
Menus -> Menu Manager 3. Click the new button located on the right top side of the joomla admin panel
Next the Select Menu Item Type dialog will appear:
There you will need to select the External Link option
Now fill in your desired url that you desire your Menu link to point to and choose among the few possible options on how do you want the new external website to appear after clicked on the menus link.
And that's it now you will have it. Easy
Bio: I am a Free Software enthusiast, hobbyist and a unix geek. Presently my competences are into the field of System administration.
I am also a devoted Orthodox Christian. I have deep interests into
religion in general and in Christianity in particular.
I am a big fan of all kind of Unix like systems like: GNU/Linux, FreeBSD, DOS and other various obscure computing. I'm also interested into philosophy and business administration.
My hobbies include playing old arcade games, trips to a new places,
preferably nature filled places, Mountain, Waterfalls, Woods etc.
In my free time I also like watching movies: Mostly spiritual movies, or movies with a deeper meaning.Currently I am a student in Arnhem Business School in the stream of HRQM (Human Resources and Quality Management).
Herein my blog you'll find mostly stuff about my unix/linux adventures, personal life, thoughts on life, religion, philosophy and art.
Walking in Light with Christ – Faith, Computing, Diary is proudly powered by
WordPress and Comments (RSS).
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.