#how do i change panel domain
1 messages · Page 1 of 1 (latest)
change it in ctrlpanel nginx config, and change APP_URL in .env file
where is that located?
/var/www/controlpanel
/var/www/controlpanel# ls
app bin BUILDING.md composer.json config database install.lock LICENSE package-lock.json public routes test.json themes
artisan bootstrap composer composer.lock CONTRIBUTING.md docker lang package.json phpunit.xml README.md storage tests vendor
there is no env
its a hidden file
you should know that
👍
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
you likely forgot a ; in the end of the line
alr
but to be sure run nginx -t
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
oh you need to generate ssl cert for the new domain too
i thought i did
do i need to create it with the subdomain too?
well its not working
i think i got it sec
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
yes
i just did
,
try systemctl restart nginx
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.
ok
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)
quit that, and type killall nginx and then start using systemctl
ok