Unknown Error appearing, when trying to upload Media

CMS Version

Installed CMS v4.4.0

Installation Method

Custom install, using Apache.

Operating System

The operating system the CMS is installed on Ubuntu 24.04 LTS, Apache, MySQL

Issue

Cant seems to upload media files onto the library folder. Originally thought it was the permission, so changed a new library folder and its the same problem.

Keep getting unknown error.

Below are the screenshots of the problem.

Not only do you need to have the permissions correct, but you also need to have the ownership correct.

chown -R www-data:www-data /path/to/library

Also check if safe_mode is disabled in php.

Check if open_basedir is configured correctly.

Thanks, will try out tonight.

Cheers!

Once i changed the ownership,…. it became unexpected error… Weird…

image

Sorry adding on. i am using webmin to manage my server with virtualmin as my “cpanel" control. so the ownership its under the virtualmin user. i change it back to the original user and it can login … but kept having the unknown error.

Wat does the Apache and PHP logfiles say?

the php log didnt show errors, the error of max post size was fixed earlier.

but the apache log as below.

and the apache directive

Require all granted…

is there something else that i am missing?

This is my config:

<VirtualHost *:80>
DocumentRoot “/var/www/web”
XSendFile on
XSendFilePath /var/www/Library
<Directory “/var/www/web”>
AllowOverride All
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
Require all granted

<VirtualHost *:443>
DocumentRoot “/var/www/web”
XSendFile on
XSendFilePath /var/www/Library
SSLEngine on
SSLCACertificateFile “/etc/cns-it/certs/ca.pem”
SSLCertificateFile “/etc/cns-it/certs/cert.pem”
SSLCertificateKeyFile “/etc/cns-it/certs/key.pem”
<Directory “/var/www/web”>
AllowOverride All
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
Require all granted