Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Coming from #503444: $db_port for non-standard ports. Aegir supports nonstandard database ports in the UI, but I cannot specify a nonstandard port for the initial installation. Any advice?
If not, I'll roll a patch for it.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2069387_04.patch | 5.78 KB | cweagans |
#2 | 2069387_02.patch | 3.87 KB | cweagans |
Comments
Comment #1
ergonlogicI came across this too last week, when working on #2048653: Errors installing on Ubuntu 12.04 via .debs. It was probably an oversight. Feel free to submit a patch. Please also update
drush_provision_hostmaster_install_pre_validate()
, which would then look almost exactly likeProvision_Service_db_mysql::grant_host()
Comment #2
cweagansSo I have this working - sort of. The attached patch allows you to set the database port for the initial install, and if you use --backend-only, the server context is written with the right port. If I don't use --backend-only, the context is created with the default port and the virtualhost for the aegir frontend is created with the port that was passed in.
I'm not really sure why this is happening. Maybe you will know?
Comment #3
cweagansOne other thing - if the server context is wrong, then this would break the provisioned site when a verify task is run, right?
Comment #4
cweagansUpdated patch. Testing right now.
Comment #5
cweagansOkay, so this patch works as expected. However, hostmaster.profile hardcodes the database port, so this is needed too: #2074681: Ports are hardcoded in hostmaster.profile
Comment #6
ergonlogicm.stenta is currently working on allowing an http port other than 80. Since the required changes are essentially identical, let's generalize this issue to include both.
Work is being done in the 'temp' branch of http://github.com/mstenta/provision
Comment #7
ergonlogicConsidering that we support alternative ports everywhere else, I believe this is a bug.
Comment #8
ergonlogicfixed in e66befcf48..3b5e35d083