This topic is locked

Application deployment scripts

5/17/2012 8:18:45 PM
PHPRunner General questions
E
electromotive author

Does anyone have a ready2use deployment script for installing a PHPR generated application onto other servers (of the same type)?
Must have -

  • It would allow installer to set the SQL database name, user and password without having to edit the files manually.
  • It would allow installer to set the system email details (like for the security self-registration)
    Nice to have -
  • It would run the SQL database creation script and install the administrator user
  • Typically it checks to make sure the environmental conditions are met and the application has been deployed successfully
  • Accepts some text to customize an element in the header and/or footer or maybe change an image (banner)
    Those who've installed any ready to use PHP/SQL package knows what I mean
    Can assume installer has access to FTP, MySQLAdmin or something like CPanel

Sergey Kornilov admin 5/18/2012

Most PHP apps like Wordpress require you to create database manually before running the installer. You will need to set database connection parameters in config.php as well. There is of course a possibility to get these parameters from user and save them to config file however from security point of view this is not recommended.
To install PHPRunner application somebody needs to:

  1. Upload all files to the web server
  2. Create an empty database and specify connection parameters in include/dbcommon.php file
  3. Create database tables running the script. This part can be handled by install script. We do just that in ReportsMaestro for instance.
    The might be some additional tasks like asking an admin password and saving it in the database. These tasks will be different for each app though.