ilosuna / phpsqlitecms

phpSQLiteCMS is a simple and lightweight web content management system based on PHP and SQLite.
phpsqlitecms.net
MIT License
138 stars 75 forks source link

Admin #31

Open rd18aac opened 9 years ago

rd18aac commented 9 years ago

I just installed this and im trying admin as the username and admin as the password and it says User unknown or password wrong.

I can't get in to /cms, where do I change the default user's username and/or password to my own?

Thanks in advance :-)

lyserbin commented 9 years ago

All the data about users are in the database '/your/path/to/phpsqlitecms/cms/data/userdata.sqlite', into the table _"phpsqlitecmsuserdata".

Check that the http deamon can read the file:

root@yourmachine # chown www-data:www-data -R /your/path/to/phpsqlitecms/cms/data/
root@yourmachine # chmod 770 -R /your/path/to/phpsqlitecms/cms/data/

If it isn't the problem you can check the file yourself and see what's in it, you can use any database application that supports sqlite3 (if you want you can use phpliteadmin via browser).

Remember that the passwords are hashed, you can get the hash of one password using this:

user@yourmachine $ mkpasswd -S -R 5000 -m sha-512