User permission error

My users are suddenly not able to create, delete files or folders in file manager, changing the php version of a site also causes it error 500 until you revert back to it previous version.

I have updated to 1.9.4 and the error persist, how do I resolve this. I have also tried to create a new admin user but error remains.

Edit: None of the hestia user can edit in file manager, including the admin, somebody point me to where to start kindly.

Show the output of this command:

grep -Ev '^$|^#' /etc/ssh/sshd_config
Include /etc/ssh/sshd_config.d/*.conf
LoginGraceTime 1m
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
DebianBanner no
AcceptEnv LANG LC_*
Subsystem sftp internal-sftp
PermitRootLogin yes


Match User sftp_dummy99,(list of my users redacted)
    ChrootDirectory /srv/jail/%u
    X11Forwarding no
    AllowTCPForwarding no
    ForceCommand internal-sftp -d /home/%u

That looks fine.

Use one of your users to test this:

v-change-user-shell YourTestUser bash

After testing one of the user it works fine, how do resolve for all users at once, thank you very much.

1 Like
for i in $(v-list-users plain | cut -f1 | sort);do v-change-user-shell "$i" bash; done

That did it, what might be causing the sites to have error 500 on change of php version until i revert back, the error is still happening.

Without the exact error, I don’t know what’s happening.

Change the php version for one domain, try to access and then check the log:

Note: I’ll use example.com as the domain.

tail -n20 /var/log/apache2/domains/example.com.error.log

Also, once the php version is changed, show the output of these commands:

ls -la /run/php | grep example.com
find /etc/php/ -name "www.conf" -print0 | while IFS= read -r -d '' file; do echo "Checking $file"; cat "$file"; echo;done
find /etc/php/ -name "*example.com*" -print0 | while IFS= read -r -d '' file; do echo "Checking $file"; cat "$file"; echo;done

My error log, my domain changed to example.com

2025/08/06 11:50:31 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-content/content.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:32 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-admin/css/colors/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:32 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-includes/Requests/Utility/cc.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:33 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-content/upgrade-temp-backup/ty.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:34 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-content/themes/astra/inc/network.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:34 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-content/json.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:35 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-conflg.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:36 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-includes/html-api/alfa-rex.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:36 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-admin/js/chosen.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:37 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-admin/network/shell.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:38 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-includes/certificates/about.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:40 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-2019.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:41 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-includes/sodium_compat/alfa-rex.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:44 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-content/plugins/core-plugin/file-manager.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:44 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-includes/Text/Diff/Engine/index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:46 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-content/themes/astra/inc/fm.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:46 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-includes/Requests/file.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/06 11:50:48 [error] 906#906: *46380 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 68.218.88.48, server: example.com, request: "GET /wp-admin/user/chosen.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/07 01:22:49 [crit] 906#906: *181555 connect() to unix:/run/php/php8.4-fpm-example.com.sock failed (2: No such file or directory) while connecting to upstream, client: 20.171.207.4, server: example.com, request: "GET /listings/mdantsane-junior-primary-school/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"
2025/08/07 01:22:50 [crit] 906#906: *181555 connect() to unix:/run/php/php8.4-fpm-example.com.sock failed (2: No such file or directory) while connecting to upstream, client: 20.171.207.4, server: example.com, request: "GET /?p=36606 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.4-fpm-example.com.sock:", host: "example.com"

the other command output

php8.3-fpm-example.com.sock
Checking /etc/php/8.2/fpm/pool.d/www.conf
; origin-src: deb/php-fpm/dummy.conf

[www]
listen = /run/php/www.sock
listen.owner = hestiamail
listen.group = www-data
listen.mode = 0660

;"hestiamail" user created to prevent users from abusing this config
user = hestiamail
group = hestiamail

pm = ondemand
pm.max_children = 4
pm.max_requests = 4000
pm.process_idle_timeout = 10s
Checking /etc/php/8.3/fpm/pool.d/example.com.conf
; origin-src: deb/php-fpm/multiphp.tpl
;#=========================================================================#
;# Default Web Domain Template                                             #
;# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS   #
;# https://hestiacp.com/docs/server-administration/web-templates.html      #
;#=========================================================================#

[example.com]
listen = /run/php/php8.3-fpm-example.com.sock
listen.owner = Gemini
listen.group = www-data
listen.mode = 0660

user = Gemini
group = Gemini

pm = ondemand
pm.max_children = 8
pm.max_requests = 4000
pm.process_idle_timeout = 10s
pm.status_path = /status

php_admin_value[upload_tmp_dir] = /home/Gemini/tmp
php_admin_value[session.save_path] = /home/Gemini/tmp
php_admin_value[open_basedir] = /home/Gemini/.composer:/home/Gemini/web/example.com/public_html:/home/Gemini/web/example.com/private:/home/Gemini/web/example.com/public_shtml:/home/Gemini/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]

env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /home/Gemini/tmp
env[TMPDIR] = /home/Gemini/tmp
env[TEMP] = /home/Gemini/tmp

So the error in log shows that the site tries to use PHP 8.4 but the php conf for the domain is still configured to use PHP 8.3.

Use this command and try again:

v-change-web-domain-backend-tpl Gemini example.com PHP-8_4

the command changes nothing, if am right, on the previous versions of hestia i could change the versions using the panel as long as those php versions are installed.

is there another way to change php version.

But currently you are using PHP 8.3 and you want to use PHP 8.4, right?

Also in 1.9.4 but not in your case so I’m trying to debug the issue.

v-list-sys-php plain
v-change-web-domain-backend-tpl Gemini example.com PHP-8_4
v-list-web-domain Gemini example.com json | jq -r '.[]|.BACKEND'
v-rebuild-web-domain Gemini example.com
systemctl restart nginx
systemctl restart apache2
v-list-web-domain Gemini example.com json | jq -r '.[]|.BACKEND'

With that command i can change the version back and forth without the site giving error 500, but once i try with hestia panel thats when the error happens

Ok, then it seems to be a problem with the PHP code. I’m sorry, but I can’t help here, my knowledge of PHP is zero. I hope someone with PHP skills can review it.

Also, I can’t reproduce it on my test system.

thank you very much for your kind help, the best thing is that I can work on my sites now.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.