Issue
Such warning appears during check of default PHP version through uapi:
$ /usr/bin/uapi LangPHP php_get_system_default_version
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "pt_BR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "pt_BR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
---
apiversion: 3
func: php_get_system_default_version
module: LangPHP
result:
data:
version: ea-php74
errors: ~
messages: ~
metadata: {}
status: 1
warnings: ~
Environment
- cPanel
- CloudLinux 7 hybrid
Solution
Please try to change locale to default settings:
localectl set-locale en_US.UTF-8
Correct output of the command:
[root@cloud ~]# /usr/bin/uapi LangPHP php_get_system_default_version --user=angelcosta
---
apiversion: 3
func: php_get_system_default_version
module: LangPHP
result:
data:
version: ea-php74
errors: ~
messages: ~
metadata: {}
status: 1
warnings: ~
Cause
Broken custom locale.
Useful links
How to change system locale on RHEL
Comments
0 comments
Please sign in to leave a comment.