You can use easy installer to install your PHP package webbased. The Installer will check the necessary packages, file permissions and import the database and final download the package for you.
The settings are read from a yaml file, so it is very easy to customize your installer.