Unable to login with default "admin" account

Support questions related to PHP Point Of Sale 9.1

Unable to login with default "admin" account

Postby BeegG » Tue Mar 16, 2010 6:11 am

I have installed PHP Point of sale 9.1 on a Debian box, apache, MySQL and PHP. The install worked, but I am unable to login as the first time default users with admin/pointofsale.

Where do I begin to look to try to resolve this?

Thanks
BeegG
 
Posts: 6
Joined: Tue Mar 16, 2010 3:36 am

Re: Unable to login with default "admin" account

Postby tmoore » Tue Mar 16, 2010 2:05 pm

Look to see that you are able to access the databases. Have you configured them in database.php ?
Best Regards,
Tom Moore
tmoore
 
Posts: 15
Joined: Sat Mar 13, 2010 10:15 am
Location: Jennings, OK USA

Re: Unable to login with default "admin" account

Postby BeegG » Fri Mar 19, 2010 2:35 am

There is no database.php in the pos folder in /var/www/

I have an installation of Joomla, there is a database.php in this folder, would it also apply?
BeegG
 
Posts: 6
Joined: Tue Mar 16, 2010 3:36 am

Re: Unable to login with default "admin" account

Postby tmoore » Fri Mar 19, 2010 10:08 am

The database php will not be in your /var/www directory. I assume that your install has your web server root directory as /var/www (mine is /var/www/html). If that's so then your database.php will be in /var/www/pos/application/config/database.php

The above is assuming that you have installed PHP Pos into a directory called pos. What ever the directory that you've installed this into, you will need to look in the application/config sub folders.

Regards,
Tom Moore


BeegG wrote:There is no database.php in the pos folder in /var/www/

I have an installation of Joomla, there is a database.php in this folder, would it also apply?
Best Regards,
Tom Moore
tmoore
 
Posts: 15
Joined: Sat Mar 13, 2010 10:15 am
Location: Jennings, OK USA

Re: Unable to login with default "admin" account

Postby BeegG » Mon Mar 22, 2010 4:08 am

Thanks for the reply Tom.
There does not appear to be an application or config folder in my "pos" folder. Below is a list of what is there:
saotanet:/var/www/okha-pos# ls
backupDB.php home.php language reports users
backups images login.php sales
classes index.php logout.php settings
customers install menubar.php settings.php
general_public_license.txt items readme.txt upgrade
saotanet:/var/www/okha-pos#

If I use locate to find a database.php file, it only finds one in my joomla folder.

Thanks
Grant
BeegG
 
Posts: 6
Joined: Tue Mar 16, 2010 3:36 am

Re: Unable to login with default "admin" account

Postby BeegG » Wed Mar 24, 2010 1:55 am

I have removed my installation, I have removed the database.

I created a new database and have reinstalled PHP point of sale through it's web install. It all seems to work, the table in the database are created, but I cannot login as the default admin.

I had thought that maybe the "-" in the database name, okha-pos, had caused the problem, the new database name is "okhapos", no difference.

Still no database.php in the /var/www/okhapos folder or sub-folders.

Any further ideas? I seem to have missed the boat on this one.

Thanks
BeegG
 
Posts: 6
Joined: Tue Mar 16, 2010 3:36 am

Re: Unable to login with default "admin" account

Postby gmlga » Wed Mar 24, 2010 3:07 pm

BeegG wrote:I have removed my installation, I have removed the database.

I created a new database and have reinstalled PHP point of sale through it's web install. It all seems to work, the table in the database are created, but I cannot login as the default admin.

I had thought that maybe the "-" in the database name, okha-pos, had caused the problem, the new database name is "okhapos", no difference.

Still no database.php in the /var/www/okhapos folder or sub-folders.

Any further ideas? I seem to have missed the boat on this one.

Thanks


Can you look at the data in your database and verify that there is an entry the employees table?

You should see at least one entry.
Gary Morris
http://LibertyGunsAndArmor.com
1776 Dove Dr.
Quinlan, TX 75474

Toll free 866-491-1570
Fax 888-856-4891
gmlga
 
Posts: 16
Joined: Fri Feb 05, 2010 5:59 pm
Location: Quinlan, TX

Re: Unable to login with default "admin" account

Postby BeegG » Thu Mar 25, 2010 2:11 am

There does not appear to be an "Employees" table, below is a list of the tables that are there:
mysql> use okhapos;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+-------------------+
| Tables_in_okhapos |
+-------------------+
| brands |
| categories |
| customers |
| discounts |
| items |
| sales |
| sales_items |
| suppliers |
| users |
+-------------------+
9 rows in set (0.00 sec)

mysql>

There is a John Doe - Admin - in the users table, I reset the password, which didn't work. I also added another user whichis also unable to login:
mysql> select * from users
-> ;
+------------+-----------+----------+-----------+-------+----+
| first_name | last_name | username | password | type | id |
+------------+-----------+----------+-----------+-------+----+
| John | Doe | admin | admin | Admin | 1 |
| Grant | Hall | grant | pass | admin | 2 |
+------------+-----------+----------+-----------+-------+----+
2 rows in set (0.00 sec)

mysql>
BeegG
 
Posts: 6
Joined: Tue Mar 16, 2010 3:36 am

Re: Unable to login with default "admin" account

Postby LeMec » Thu Mar 25, 2010 7:45 am

BeegG,

I am afraid you are given instructions based on 10.7, but you are clearly using 9.1.

There may not be a database.php in 9.1. Also, do the same exercise but instead of looking in employee table, look in users table.

I am not using 9.1 so I can't realy help you more than that.

If you really can't figure it out, I will install 9.1 on my end and see what is going on.

Let me know.

Alain
LeMec
 
Posts: 72
Joined: Mon Feb 22, 2010 12:12 pm

Re: Unable to login with default "admin" account

Postby BeegG » Thu Mar 25, 2010 9:50 am

Thanks Alain, I'll try the 10.7 route and see how that goes and let you know.
BeegG
 
Posts: 6
Joined: Tue Mar 16, 2010 3:36 am

Next

Return to PHP Point Of Sale 9.1

Who is online

Users browsing this forum: Alexa [Bot] and 1 guest