Switching from HSQL to MySQL or any other DB in Liferay

Lets Switch from existing HSQL to MySQL.

Simplest way of switching database is to use a property file named portal-ext.properties.Way to override the existing features can be written into this file.

Go to Liferay tomcat directory->WEB-INF->classes. Their you find the file portal-ext.properties.
In case you don’t find it,create a new file named portal-ext.properties.
Add the below database configuration parameters to run LFRay on MySQL.

Continue reading

I am a PHP Lover

They say PHP’s biggest strength is its omnipresence and easy to do behavior. Since anything can be achieved using PHP, it runs on every current OS out there.I see it has a blessing and a curse. PHP’s biggest weak point is that it is easy to learn.

I still see horrible, insecure PHP W-apps out there. Many of the Non-developers picked it up and didn’t know to consider security. It has created the perception that PHP itself is insecure when the problem was within the frameworks and modules built upon top of it.

Although Facebook/Yahoo has taken PHP to a scale beyond the consideration and even better, as they’ve tackled issues with caching, deployment and operations etc. and shared most of it back with the world as well.