install vmwaretools in debian

August 4, 2012 Leave a comment

once vmwaretools install is enabled from your vm guest machine, run below as root
mount /dev/cdrom /media/cdrom
cd /tmp
tar -zxf /media/cdrom/VMwareTools-1.0.8-126538.tar.gz

Categories: Uncategorized Tags: , ,

PHP check folder permissions for owner/group/world

May 25, 2011 Leave a comment

where $folder is your folder path,

echo substr(sprintf('%o', fileperms($folder)), -4);

For example to check if your folder has read-write-execute permission for owner and group, and read only for world, you could do:

if (substr(sprintf('%o', fileperms($folder)), -4) == "0774") {
      $dir_writable =  true;
} else {
      $dir_writable = false;

Of course, you can change the octal value to 0664 or whatever suites your need or permission need to be given for owner/group/world.

Categories: PHP Tags: ,

openssl – how to disable passphrase prompt on apache2 restart

November 30, 2010 15 comments

Whenever apache2 restart and you have to manualy Enter the pass phrase of your ssl key.

To automatically start/restart apache2 without the prompt dialog, you can either store the passphrase in a secure folder or remove the password.

OPTION 1. store passphrase:

from your ssl.conf under /etc/apache2/mods-enabled/ssl.conf

SSLPassPhraseDialog  exec:/securepath/to/passphrase-file

then create passphrase-file and type

echo "passphrase"

save file then make it executable

# chmod +x /passphrase-file

OPTION 2. Remove password:

# openssl rsa -in -out

then from update the location of your key file in your apache2 virtual hosts.


install vmware server on windows server 2008 domain controller

August 18, 2010 16 comments

Installing VMware Server 2 on a Windows Server 2008 SBS throws out a warning if the Windows Server is set as domain controller.

Warning 25008: It is recommended that you don't install this product on a domain controller.

After google-ing for explainations, i found on vmware knowledge base docs that we would ignore it and go on with installations. Bad idea.

Everything was working fine until we had to restart SBS server and everything started to fall over.

VMware server installs a VMware DHCP service and SBS primary physical network card couldn’t have a gateway assigned automatically. The VM ethernet card took over as dhcp and assigned its own default virtual gateway

Solution: disable vmware dhcp service from the administrative tools and everything was back to normal. It cannot be disabled from the VMware Manage Virtual Networks tool.

Obama promotion at Dreamhost

January 22, 2009 2 comments


Dreamhost web hosting is offering this awesome offer with unlimited disk space and unlimited bandwidth on all their hosting plans. For just $5.95/month you can have the ‘all-you-can-eat’ deal to get started with your website. check it out what you can get at

Obama web hosting dreamhost

phalanger jcx conflict

November 15, 2008 Leave a comment

What IDE do you use for your PHP web dev.? As a .NET developer, first choice is of course Visual Studio. Most PHP developers probably use Dreamweaver or for the hardcore code monkeys use notepad++? SSH directly onto dev server?

JCX Software is the best PHP IDE, if not the only one, IDE add-on for Visual Studio – also supported in VS2008. After I found about the Phalanger project and installed in from, I am no longer able to create a simple PHP project in VS2008 using PHP IDE supposedly due to conflicting between the two addon having the same file extensions. How do I fix this? uninstall on of them? email JCX to change their file extension? or the Phalanger dev. guys to choose a different phpproj extension?



Microsoft and Zend Collaboration

November 13, 2008 1 comment

PHP: Hypertext Processor is the most popular scripting language for web development according to TIOBE and coming from a .NET background I was thrilled to hear that Microsoft Corp. has been in collaboration with PHP vendor, Zend Technologies Ltd. John K. Waters’ article What’s Next for Microsoft and PHP? briefs Microsoft Silverlight in adopting PHP for RIA (Rich Internet Application), following Adobe Flex. More interestingly is the support of PHP in the Dynamic Language Runtime announcement to add services to the .NET CLR. If now IronPython and Ruby are supported in .NET, why not PHP?

This article surely got me excited to google for more and found that this collaboration between Microsoft and Zend is back dated since 2006 in “Microsoft Opens PHP Door” and in “Microsoft Hosts Project to Run PHP on .NET” not for the support of PHP under IIS (wich seems to be a terrible combination due to performance and reliability issues), but for the initial partnership in supporting PHP on .NET. The effort project called Phalanger to bringing PHP onto a .NET environment can be followed at

Categories: .Net, PHP Tags: , , , ,