No matter what I put in, it keeps giving me the error "Bad username" (where normally "admin" is used).I don't know how to cure this... it appears everything else is being accepted but when I enter ANY user, it throws it back or gives me error pageHELP :)While here, can I just start fresh and import my sql database after install? I've spent hours here already. :) Thanks

Version of osTicket?Did you clear your browser cache after you upgraded?At what point does it fail?Please help us to help you by reading and following the posting guidelines located in this thread: Please read before requesting assistance.  The more information you give us the better we will be able to assist you. Thank you.

Thank you for your prompt response.Yes, I did clear my cache :) I am installing newest 1.9 from an old 1.6 (downloaded today)BUT... if I CAN import my database (and use the same info), can I not just do a CLEAN INSTALL instead?Apache Version2.4.16PHP Version5.3.29MySQL Version5.6.27Architecturex86_64Operating Systemlinux(sorry, caps for emphasis only)BTW, I did find this in the ERROR file: (name changed to MYDOMAIN for security) PHP Warning:  ini_set() has been disabled for security reasons in /home/MYDOMAIN/public_html/bootstrap.php on line 16 PHP Warning:  ini_set() has been disabled for security reasons in /home/MYDOMAIN/public_html/bootstrap.php on line 19 PHP Warning:  ini_set() has been disabled for security reasons in /home/MYDOMAIN/public_html/bootstrap.php on line 32 PHP Warning:  ini_set() has been disabled for security reasons in /home/MYDOMAIN/public_html/bootstrap.php on line 33

The database structure needs to be updated.So ... after you install the new source when you do to the admin side of the site it should prompt you to run the upgrader.  If you import your database you still need to run the upgrade utility... so

It wouldn't let me sign in as "admin" it immediately went to the "install.php" and that is where I was getting the "bad username" over and overWhen you say "database structure needs to be updated" I assume that means I can't just do a clean install and then upload the db as an import, is this correct?Does the error file mean anything else needs to be "fixed"?

For some reason username admin does NOT work - just use another one like root or so and once osTicket is installed create a new admin with username admin.

thank you...I've put in all kinds of variables and it keeps throwing it back as "Bad username" :(

Sorry my response was a bit too fast - hadn't read that you already tried other user names.

Just tried again and now it tells me "ost_" already exists PLUS won't take "root" Looks like it's time to dump and start over? :(

In looking at the "new install" instructions, it is saying upload to a folder "directories in upload folder to a directory of your choice on your server" For example /osticket/, /helpdesk/ or /support/ depending on your preference. The old version was http;//www.MYDOMAIN/install.php  and did not have a directory or folder but was direct access to public_html ? (sorry my lingo isn't techy)Is that a problem possibly? Do I need to make a "/support/" folder??

Q: When you say "database structure needs to be updated" I assume that

means I can't just do a clean install and then upload the db as an

import, is this correct?A: You can do that.  But then you would be right back where you are now.  Needing to run the upgrader not the installer.Side note... which version of 1.6 are you running?

I just wiped the site :( copied the info on the tickets via phpmyadmin, will regroup and start over ... thanks for the help. I remembered I pulled my hair with this initially and finally hired someone to install it, of course that was like 2 years ago or so.I'll be back...  lolThanks again

8 years later

I have encountered this problem while trying to setup osTicket in a docker container..
I have resolved it!
Here is what I did...
Assuming the container name is "osTICKET" Run the following commands to fix it...
Copy the file out of the container...
docker cp osTICKET:/usr/local/src/osticket/setup/inc/class.installer.php class.installer.php
Edit the "class.installer.php" file and find the line with the following on it.
$this->errors['username']=__('Bad username');
Then remark out that line and the one above it by putting "//" (no quotes) at the front of the lines.
Copy it back: docker cp class.installer.php osTICKET:/usr/local/src/osticket/setup/inc/class.installer.php
Remove the old file: rm class.installer.php
Start the container.
Install should work now. If you modify the container the file will reset back to its original state.

Disclaimer:
If you are going to follow the instructions above please do so at your own risk. There is a reason that restriction is in place.

Write a Reply...