remove last  / from php conf dir