updated rc.d and php files