#how do i change panel domain

1 messages · Page 1 of 1 (latest)

sacred horizon
#

how do i change panel domain

fluid spire
sacred horizon
#

where is that located?

fluid spire
#

/var/www/controlpanel

sacred horizon
#

there is no env

fluid spire
#

its a hidden file

sacred horizon
#

do i just nano .env

#

yes worked

fluid spire
#

you should know that

sacred horizon
#

xd ye mm

#

what about cp nginxconfig where is that

fluid spire
#

man you made the file when installing

#

/etc/nginx/sites-available/ctrlpanel.conf

sacred horizon
#

its been a while xd

#

its there tho thanks

fluid spire
#

👍

sacred horizon
# fluid spire 👍

systemctl start nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details

fluid spire
#

you likely forgot a ; in the end of the line

sacred horizon
#

alr

fluid spire
#

but to be sure run nginx -t

sacred horizon
#

nginx -t
nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/cp.craftlands.host/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/cp.craftlands.host/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

fluid spire
#

oh you need to generate ssl cert for the new domain too

sacred horizon
#

i thought i did

#

do i need to create it with the subdomain too?

#

well its not working

#

i think i got it sec

sacred horizon
# fluid spire oh you need to generate ssl cert for the new domain too

systemctl start nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
root@ubuntu-4gb-fsn1-2:/var/www/controlpanel# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

sacred horizon
#

i just did

sacred horizon
#

systemctl restart nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.

fluid spire
#

hmm

#

just type nginx and see if nginx runs

sacred horizon
#

ok

sacred horizon
# fluid spire just type `nginx` and see if nginx runs

nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)

fluid spire
#

quit that, and type killall nginx and then start using systemctl

sacred horizon
#

ok