add state for php extensions installation
fix errors