[SOLVED] Don't change any of these lines manually! - Server database connections |
6/9/2022 8:10:11 AM |
PHPRunner General questions | |
W
WisTex author
// Don't change any of these lines manually! // Use 'Server database connections' feature on the Output screen in PHPRunner instead. $data["connInfo"][0] = "ssl/example.com"; $data["connInfo"][1] = "example"; Is this warning here only because they would get overwritten by PHPRunner when the script is updated? What if the person installing the software is not the same person who created it in PHPRunner? Ideally, you have something like the WordPress 5-minute install where the person installing it creates an empty database, and then gives an install/deployment script details about that database, and the install/deployment script installs everything. But, at the very least, administrators who are installing the software have to be able to manually specify the database details for new installs. They could import the database structure via MySQL if they had to. These administrators would not have access to PHPRunner. I saw something about creating your own configuration file, but it did not give any examples on how you would override the database details in ConnectionManager.php or if that was even possible. What are the solutions for installation by system administrators and third-parties? |
|
![]() |
mbintex 6/9/2022 |
I follow this http://asprunner.com/forums/topic/25838-how-to-load-database-connection-info-from-external-file/ to let external users change their database settings on premises. Works fine. |
W
|
WisTex author 6/9/2022 |
Very nice. Thank you for the link. I found a guide on how to create an install script that pairs nicely with this. https://calendarscripts.info/user-friendly-script-installation.html Combine the external config file, and then create an install script, and you have a user friendly install. |