5
Aug/10
0

sendmail[2525]: My unqualified host name (servername) unknown

If you see these messages in your syslog, your sendmail is not configured correctly with the domain name. If you are sending from a fully qualified domain, add it to the local-host-names file. In Ubuntu, it would be /etc/mail/local-host-names. Make sure it reads something like this.

localhost
[domain.com]
[server name]

Now in the /etc/hosts, make sure it reads the following.

127.0.0.1 [domain.com] [server name] localhost

Then

sudo /etc/init.d/sendmail restart

and the error should not continue filling the syslog.

22
Jul/10
0

A beautiful plugin that creates eye pleasing social media links. This is a great example of using javascript and css to achieve aesthetics.

15
Apr/10
0

Changing Mysql data directory require change to AppArmor

After a bit of googling and hair-pulling, I realized that if I just changed the datadir directive in my.cnf will cause mysql start to fail on Ubuntu. The other thing is to add permissions to apparmor for mysql to access the new data directories.

Steps
1. sudo vi /etc/apparmor.d/usr.sbin.mysqld
2. Add
/newdir/ r,
/newdir/** rwk,
3. sudo /etc/init.d/apparmor restart
4. sudo /etc/init.d/mysql restart

If that still does not work, check the nix permissions to be sure mysql is owner and group for the new directory recursively.

8
Dec/09
0

Ubuntu 9.10 Karmic slow Firefox

There is a bug in the IPv6 lookup in Karmic that is making any application requesting IPv6 while a NAT is not configured to respond to IPv6 respond very slowly. It is still a bug not solved at this time. Buta solution for Firefox is given here as a work around for now.

2
Oct/09
0

Sphinx Search default limit is 20

When using the sphinx api, you must use SetLimts if you want more than 20 records.  Currently, it is not documented on the sphinx api doc.

2
Oct/09
0

Fatal error: Call to undefined function: curl_init in php

For some reason, my workstation with Ubuntu 9.04, php5, apache2 and php5-curl install was giving me the curl package not installed message. Well, it turns out that for some reason, my default /etc/php5/apache2/php.ini had the extension directory pointing to /usr/lib/php5/ext/ while all the extensions were in /usr/lib/php5/20060613/

I was trying to figure out why I am not seeing curl.so in the ext directory after I have apt-get installed and removed php5-curl many times.  Solution is usually very simple.

18
Aug/09
0

VMware Server must be reconfigured when there is a kernel upgrade

If the linux kernel is upgraded, vmware will not load http://localhost:8222.  It requires a reconfigure when this happens.  Do the following.

sudo /usr/bin/vmware-config.pl

6
Jul/09
0

Forget your mysql root password?

This following line saved my butt when something happened and my root password was no longer working.

sudo dpkg-reconfigure mysql-server-5.0

It will allow you to reset your root password without messing with the data or any other configuration in my.cnf.

4
May/09
0

Ubuntu apache2 virtualhost setup problems

If you are getting error messages when starting apache2 like

“Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName”
or
“[warn] _default_ VirtualHost overlap on port 80, the first has precedence”

you need to make sure a couple of lines are in your /etc/apache2/httpd.conf  file.

ServerName localhost
NameVirtualHost *:80

29
Apr/09
0

How to do that Mysql thing in MSSql?

Ever wonder how to translate something you normally do between Mysql and MSSql?
Here is a good list of parity between the two.

Also, one section left open by that article is date formatting. After reading that, you can see why it was left out. It is quite a topic on its own.
Date Formats in MSSql