My boss has an idea for a web app he would like to build. Long story short it will need a lot of CMS features and a lot of social networking features, and some other unique things as well. We looked into just leveraging different CMS platforms like drupal and joomla etc, but they really don't meet our needs.
We have decided to build our web-app from the ground up, but we're unsure of what technology to use to build it. My co-worker and I will be the main developers and we are more comfortable with EJB, jsf and glassfish. However, we noticed most cms, blogs, forums, social networks, etc are written in PHP. We do not have any real experience with PHP, so we are wondering if there is some advantage to PHP that we are unaware of. I know java apps can be a little sluggish, and the hosting can be limited/expensive. Is there any other reason to use PHP?