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
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 10 ans 10 mois - il y a 10 ans 10 mois #3114 par Martin.Baker@bristol.ac.uk
MySQL port configuration on XOT v3.0 a été créé par 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...
Dernière édition: il y a 10 ans 10 mois par Martin.Baker@bristol.ac.uk.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 10 mois #3116 par ronm
Réponse de ronm sur le sujet 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/

Connexion ou Créer un compte pour participer à la conversation.

  • Martin.Baker@bristol.ac.uk
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 10 ans 10 mois #3117 par Martin.Baker@bristol.ac.uk
Réponse de Martin.Baker@bristol.ac.uk sur le sujet 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)

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 4 mois #3581 par navhash
Réponse de navhash sur le sujet 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

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.131 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo