TurnKey Linux Virtual Appliance Library

EBS Turnley Prestashop 11.3 hosted on Amazon Web Services...

Okay once again, I have an instance of this running on AWS and can SSH In just fine etc. but cannot access mysql or prestashop administraton because I dont know the passwords... anyone ??? Tutorial on how to retreive them ?  Anyone ?

Jeremy's picture

You should be able to lauch the firstboot config scripts

From within your SSH session to reset the admin/root password(s).

So IIRC, for MySQL (and by extension phpMyAdmin) its:

/usr/lib/inithooks/bin/mysqlconf.py

And for Prestashop it'd be something like:

/usr/lib/inithooks/bin/prestashop.py

But I'm only guessing on what the Prestashop script is called. To be sure you may wish to check:

ls /usr/lib/inithooks/bin

Just be aware though, I don't know what implications resetting the Prestashop password will have (restting MySQL should be fine). I'd imagine that it'll be ok, but I can't be sure...

[update] I just read your other post and realise that you haven't got any data in there. You can ignore my warning above as there should be no issue setting the password when you have no data in there.

That works!  Awesome!

That works!  Awesome! Thanks!... dunno why the documentation didn't make that as clear...

Jeremy's picture

Probably not documented because not usually an issue

If you install the appliance to a VM or bare metal then those scripts automatically run on firstboot.

If you launch to AWS via the Hub then you preseed your appliance passwords within the web interface.

OVZ templates are an exeption, but there is a init script "turnkey-init' which will manually run all the first boot scripts (which is documented on the OVZ announcement). Actually it may be worth running that (or just manually selecting the ones you want from /usr/lib/inithooks/firstboot.d) so that your appliance has freshly created (and unique) keys etc.

So generally no need to manually run these scripts individually.

If you are planning to launch a few instances in AWS then I suggest that you at least have a look at the Hub, it makes it all really easy! It includes lots of useful features.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)