Flash player not working in firefox

If you are having trouble with flash player not working in firefox on your 32bit ubuntu, here is some thing that may help.

1./ purge all flash related package
$sudo apt-get purge flashplugin-nonfree flashplugin-installer gnash gnash-common mozilla-plugin-gnash swfdec-mozilla

2./ remove files from
$sudo rm -f /usr/lib/firefox/plugins/*flash*
$sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
$sudo rm -f /usr/lib/mozilla/plugins/*flash*
$sudo rm -f ~/.mozilla/plugins/*flash*so
$sudo rm -rfd /usr/lib/nspluginwrapper

3./ download flash player .tar.gz file

4./ decompress .tar.gz
$tar xvfz install_flash_player_11_linux.i386.tar.gz

5./ make directory
$mkdir ~/.mozilla/plugins

6./ mv libflashplayer.so
$mv -f libflashplayer.so ~/.mozilla/plugins/

7./ create links
$sudo ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/
$sudo ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/xulrunner-addons/plugins/

8./ test flash player


Invalid command ‘RewriteEngine’

Problem: After updating debian, my Apache2 started giving me

Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

To enable Apache2 rewrite module you have to type

sudo a2enmod rewrite

…and then restart apache

/etc/init.d/apache2 restart

That is it for now. more posts later.

IIS error ‘8002801c’ Error accessing the OLE registry

After installing IIS5, I got an authentication dialog on my browser requesting username and password. When authentication failed, it gave me this error message below.

error '8002801c'

Error accessing the OLE registry.

/iisHelp/common/500-100.asp, line 17

… to get around this problem do
1./ Select Start, Run and then type inetmgr to display Internet Information Service Management tool
Internet Information Service
2./ Select local computer and Web Sites
3./ Right click on localstart.asp and select Properties
4./ Click on File Security tab, Edit and under Anonymous access type in your username and password.
5./ After that press OK
6./ Restart your IIS by right clicking local computer, All Tasks and Restart IIS…

PHP 4.4.9 throws ‘Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’’

Today, my website decided suddenly not to work and reported a syntax error however I had not made any changes to it. It gave me an error message

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'

… I looked at all the braces and keywords and they all checked out fine. I looked at phpinfo() and found my PHP5.* had been downgraded to PHP4.* however this did not explain why the script did not work. I wrote this test class

class TestClass
	static $instance;

and to my surprise it threw the same error message as my website.

Here is the solution: PHP4.* does support the ‘static’ keyword however it supports it in the scope of a function and not in a ‘class’, example

function testFunction()
	static $instance = 0;
	echo "Instance value " . $instance;

So, only way to fix this is to upgrade to PHP5 which I did.

sdac not enabled in /etc/default/sysstat not starting (warning)

During booting my Debian today, I noticed a warning message raised against sysstat and I went about trying to solve it.

Sysstat includes monitoring tools such as mpstat and iostat which is like vmstat and they are handy to have. Anyhoo, here are the steps

1/ Open up /etc/default/sysstat in your favourite editor of your choice and edit ENABLED from false to true
2/ Then start sysstat # /etc/init.d/sysstat start
3/ Check if you have /var/log/sysstat/ directory if not create one.
4/ Then run sar -A after 5min to see if data has been collected