add php version and install dir flag