I’m sharing my problem. I’ve had several issues lately with users creating their sites with invalid characters. Apparently, the system allows them to create them by corrupting the Nginx and PHP configuration files, respectively. Is there a way to limit the characters to only those allowed for use as valid URLs?
If there are no reference errors, your question cannot be answered.
I thought that with just the description you could know what I was referring to, but here are a couple of PHP errors that are generated because the domain name was created with [subdomain], previously I had another one that was that the domain contained a ’
Oct 15 09:55:52 hosting-01.srv.inacap.cl php-fpm8.3[1540261]: [15-Oct-2025 09:55:52] ERROR: [/etc/php/8.3/fpm/pool.d/[diana-rochahosting].web.hosting-01.inacap.cl.conf:10] value is NULL>
Oct 15 09:55:52 hosting-01.srv.inacap.cl php-fpm8.3[1540261]: PHP: syntax error, unexpected ']' in Unknown on line 2
Oct 15 09:55:52 hosting-01.srv.inacap.cl php-fpm8.3[1540261]: [15-Oct-2025 09:55:52] ERROR: Unable to include /etc/php/8.3/fpm/pool.d/[diana-rochahosting].web.hosting-01.inacap.cl.conf >
Oct 15 09:55:52 hosting-01.srv.inacap.cl php-fpm8.3[1540261]: [15-Oct-2025 09:55:52] ERROR: failed to load configuration file '/etc/php/8.3/fpm/php-fpm.conf'
Oct 15 09:55:52 hosting-01.srv.inacap.cl php-fpm8.3[1540261]: [15-Oct-2025 09:55:52] ERROR: FPM initialization failed
------------------------------------------------
Oct 15 10:19:14 hosting-01.srv.inacap.cl php-fpm8.3[216236]: [15-Oct-2025 10:19:14] ERROR: [/etc/php/8.3/fpm/pool.d/[usuariohoting].web.hosting-01.inacap.cl.conf:10] value is NULL for a>
Oct 15 10:19:14 hosting-01.srv.inacap.cl php-fpm8.3[216236]: PHP: syntax error, unexpected ']' in Unknown on line 2
Oct 15 10:19:14 hosting-01.srv.inacap.cl php-fpm8.3[216236]: [15-Oct-2025 10:19:14] ERROR: Unable to include /etc/php/8.3/fpm/pool.d/[usuariohoting].web.hosting-01.inacap.cl.conf from />
Oct 15 10:19:14 hosting-01.srv.inacap.cl php-fpm8.3[216236]: [15-Oct-2025 10:19:14] ERROR: failed to load configuration file '/etc/php/8.3/fpm/php-fpm.conf'
Oct 15 10:19:14 hosting-01.srv.inacap.cl php-fpm8.3[216236]: [15-Oct-2025 10:19:14] ERROR: FPM initialization failed
Here is a list of the subdomains that this user tried to create.
root@hosting-01:/etc/php/8.3/fpm/pool.d# ll *diana*
-rw-r--r-- 1 root root 1589 Oct 14 18:22 '[dianahosting].web.hosting-01.inacap.cl.conf'
-rw-r--r-- 1 root root 1583 Oct 14 18:22 '[dianahoting].web.hosting-01.inacap.cl.conf'
-rw-r--r-- 1 root root 1625 Oct 14 18:23 '[diana-rochahosting].web.hosting-01.inacap.cl.conf'
-rw-r--r-- 1 root root 1619 Oct 14 18:23 '[dianarochahosting].web.hosting-01.inacap.cl.conf'
-rw-r--r-- 1 root root 1601 Oct 14 18:26 temu-diana-rocha.web.hosting-01.inacap.cl.conf
root@hosting-01:/etc/php/8.3/fpm/pool.d#
I’ll create a PR to fix it. Could you please open an issue?
3 Likes
done! [Feature] character restriction when creating a website · Issue #5127 · hestiacp/hestiacp · GitHub
2 Likes
Thanks.
I’ve created this PR:
If you want to test it in your server:
cd /usr/local/hestia/func/
mv main.sh main.sh.ori
curl -sSL https://raw.githubusercontent.com/hestiacp/hestiacp/37890d703c8fa6e498e830f9dfa8f4fd622a7578/func/main.sh -o main.sh
1 Like
