Created a PHP version of pre-install