UnamSanctam / UnamWebPanel

MIT License
175 stars 58 forks source link

How to run #333

Closed kevincrafturu2 closed 8 months ago

kevincrafturu2 commented 8 months ago

Hello, how could i run this in an linux server VPS? i dont want to use 000 webhost, please i need this info

kevincrafturu2 commented 8 months ago

i saw that i needed to put them at /var/www/html, i put the webapp files there, but nothing happend when i restarted apache, i couldnt start it

UnamSanctam commented 8 months ago

If you have set up Apache and PHP correctly then placing the files there and visiting the site in your browser should work. I don't know what distro your VPS has but here's one for Ubuntu: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-22-04, you can skip all the MySQL parts of the guide.

kevincrafturu2 commented 8 months ago

its an normal ubuntu distro, i put the files like this, should it be ok? image

kevincrafturu2 commented 8 months ago

i do have an domain used for other thing, an nginx pterodactyl setup, but i will not use it more, i kinda not get all the stuff about the domain and all that in the sites avilable step

UnamSanctam commented 8 months ago

Yes that file structure looks correct. You can skip the virtual hosts step if you want (I guess that's what you mean). You can also use the IP directly if you want without instead of a domain.

kevincrafturu2 commented 8 months ago

maybe its cuz i just put the files there, maybe i should do an folder called UnamSantactm, so its like /var/www/html/UnamSantctam and in that folder the files

UnamSanctam commented 8 months ago

No placing the files like that works fine, as long as your web server is correctly set up the panel will show when you visit the site.

kevincrafturu2 commented 8 months ago

do i need to make the sites-avilable config file?

kevincrafturu2 commented 8 months ago

couldnt seem to fix it, i put the files everything reloaded apache didnt work, put them on an folder then did the conf file with, or without domain tried twice, still does not work

kevincrafturu2 commented 8 months ago

its there any other way to install it? maybe nginx its easier

UnamSanctam commented 8 months ago

Since you use the default html folder you don't need to mess with virtual hosts (sites-available). What exactly isn't working?

kevincrafturu2 commented 8 months ago

I put the ip, or the domain i used and it does not load

kevincrafturu2 commented 8 months ago

do you have an nginx guide? maybe its easier from there

UnamSanctam commented 8 months ago

Are the ports forwarded on the VPS? Are port 80 and 443 (for https) open? Since it doesn't load at all then the problem is most likely is that your web server isn't reachable. The same thing would happen with nginx (or anything else) in that case.

kevincrafturu2 commented 8 months ago

Il just do an fresh install on the vps and try again

kevincrafturu2 commented 8 months ago

Very stupid solution, i reinstalled, tried with nginx, and for some reason as it was linked to an domain, i unlinked it but google kept redirectioning to that domain that i dont have anymore, so i put in an incognito tab the ip and the main nginx thing appeared, do i just now move the files to nginx thing? or do i need to do the config file? how should i put the nginx config file of /etc/nginx/sites-available/ so it works with only the ip

kevincrafturu2 commented 8 months ago

i did the config myself now it appears an error "The required SQLite PDO driver IS NOT enabled." im from linux btw

kevincrafturu2 commented 8 months ago

Fixed it, now there is an error on the login that says Something Went Wrong

kevincrafturu2 commented 8 months ago

Sorted.