Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.

MySQL port configuration on XOT v3.0

  • Martin.Baker@bristol.ac.uk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago - 10 years 10 months ago #3114 by Martin.Baker@bristol.ac.uk
MySQL port configuration on XOT v3.0 was created by Martin.Baker@bristol.ac.uk
For our installation of Xerte we are required to use an installation of MySQL with a non-default port number. Does anyone have best practice on specifying this during v3.0 installation?

Appending :XXXX (where XXXX is the port number) to the database host name no longer works (after some digging the PDO mechanism does not like the port number supplied in this fashion). I've managed to append ;port=XXXX to the hostname to get this to work but this feels extremely hacky...
Last edit: 10 years 10 months ago by Martin.Baker@bristol.ac.uk.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #3116 by ronm
Replied by ronm on topic MySQL port configuration on XOT v3.0
Have a look at /website_code/php/database_library.php around line 55. You might be able to manually add the custom port in there e.g. port=xxx;

Let us know if that works?

HTH
Ron

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

Please Log in or Create an account to join the conversation.

  • Martin.Baker@bristol.ac.uk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #3117 by Martin.Baker@bristol.ac.uk
Replied by Martin.Baker@bristol.ac.uk on topic MySQL port configuration on XOT v3.0
Thanks for the advice Ron - the existing workaround in effect performs what you suggest so I can confirm that it works.

Is there a procedure for filing an enhancement request? (To allow specification of port number within the installation UI)

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #3581 by navhash
Replied by navhash on topic MySQL port configuration on XOT v3.0
Re: MySQL database install on non-default port
I've replicated this issue on our dev server with the latest Xerte install (3.1), i.e. I had to append ';port=XXXX' to the hostname on page 2 of the installer to get this to work.

Not a big deal but our security officer is a little concerned that no validation took place and perhaps other parts of the web UI are vulnerable?

Thanks.
Naveed

Please Log in or Create an account to join the conversation.

Time to create page: 0.128 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo