fix bugs run yii migrate before installing php