UnamSanctam / UnamWebPanel

MIT License
180 stars 58 forks source link

Cant login #159

Open karkaletsi opened 2 years ago

karkaletsi commented 2 years ago

basically i set up the web panel all good and when im trying to login it says "error something went wrong" when i go in console and i see what the problem is its this: image

UnamSanctam commented 1 year ago

Set everything to 777 and see if something happens, that's usually how you debug. Then for production you can set them to only the required ones.

Quagliada3kg commented 1 year ago

and it works!

UnamSanctam commented 1 year ago

Alright great, then it's due to the permissions. It really depends on how the Apache and Debian is set up, the database file and folder should typically be owned by the group that Apache is running under. Usually this is the www-data user on Debian. If the user is www-data and the folder you're hosting the web panel inside is /var/www then you could try these commands (I just wrote them from memory so hopefully they're alright):

cd /var/www
chown -R $USER:www-data .
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chown -R www-data:www-data /var/www/db
chmod -R 700 /var/www/db
Quagliada3kg commented 1 year ago

error 403 forbidden

UnamSanctam commented 1 year ago

Is the web panel directly inside /var/www? What are all the permissions and ownership set to currently? And do you know if the Apache server is running under www-data or some other user?

Quagliada3kg commented 1 year ago

fixed, the site was in a subfolder under /www

UnamSanctam commented 1 year ago

Alright great, is it all working now?