I have some strange behavior with hestiacp.
i created subdomain from rest api and its working well
then i set ssl to the subdomain using rest api and wll working well
then i run small bash script that clone wp from one subdomain to the new subdomain.
all this also working. but when try to enter to the new subdomain url i get error 500.
i checked logs and see this error: 2021/01/16 12:38:45 [crit] 1342890#1342890: *11686 connect() to unix:/run/php/php7.4-fpm-3023.mysite.com.sock failed (2: No such file or directory) while connecting to upstream, client: 22.214.171.124, server: 3023.mysite.com, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm-3023.mysite.com.sock:", host: "3023.mysite.com"
the subdomain exists and all files also there but still get error 500
to fix this, i need to restart php-fpm and then the new subdomain start working.
Hmm, can you share the exact steps you used to create the subdomain? It sounds like the fpm service will not be restarted correctly after domain creation. A current workaround would be to trigger v-restart-service php-fpm after you created the subdomain, but personaly I dont think this should be the way to go .
Also if you would like to share your script as soon as it is working properly, it could be usefull for the community.