File names and folders with spaces causing issues

Nextcloud version 19.0.0
Operating system and version CloudLinux 7.8 (shared host):
Apache or nginx version LiteSpeed 5.4.7:
PHP version 7.3.19:

The issue you are facing:

If any user tries to upload a file with a space in it, it fails. Files without spaces work fine. Nothing is written to Error Log.

NextCloud was installed from Softalicous on cPanel.

Is this the first time you’ve seen this error? Yes:

Steps to replicate it:

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
‘instanceid’ => ‘removed’,
‘passwordsalt’ => ‘removed’,
‘secret’ => ‘removed’,
‘trusted_domains’ =>
array (
0 => ‘’,
1 => ‘
‘datadirectory’ => ‘/home/myuser/nextclouddata’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘’,
‘overwrite.cli.url’ => 'https://myurl,
‘dbname’ => ‘mydb’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘mydbuser’,
‘dbpassword’ => ‘mypassword’,
‘installed’ => true,
‘mail_smtpmode’ => ‘sendmail’,
‘mail_sendmailmode’ => ‘smtp’,
‘mail_domain’ => ‘’,
‘mail_from_address’ => ‘fileshare’,
‘maintenance’ => false,
‘mysql.utf8mb4’ => true,

The output of your Apache/nginx/system log in /var/log/____:

do not have permissions to get at log files for Litespeed.

I can confirm this issue. I recently installed on a CPanel host using the manual install method and Softalicous. Both fresh installs cannot handle spaces in the file name. File cannot be deleted, renamed, or moved.

I am thinking there is something specific to CPanel’s apache/php setup that I cannot see.

Did you double check the permissions for the folders/files to be 750? I’ve seen the script fail from softaculous on my host and it ended up making the file/folders 740 or 640. I had to go into the file manager and update the files there. I’ve also updated the file/folder permissions through the FTP as well. Although I don’t know how well this will work with encrypted files on the server. I found this help article from 2017 that might help
Nextcloud datafolder permissions

Can you tell me which NextCloud install version did you use for Cloudlinux?