Hi I'm trying to import a deployment.zip I created some time ago into Xerte 3.8. However, I unable to do so. I have changed the max_filesize and max_size values in apache2 php.config. I'm running Xerte on Debian Linux 10. I'm getting the following error from Apache:
[Thu Jul 02 12:38:03.782688 2020] [php7:notice] [pid 31690] [client ::1:41980] Unable to move uploaded project file to imported file: From: To: /home/me/www/xertetoolkits_3.8/import/163720342/1593711483a1-01-extras_deployment.zip, referer:/localhost/workspaceproperties.php
The permissions on the import directory are:
drwxrwxrwx 2 me me 4096 Jul 2 12:50 import
Why?
You're running on Debian, so I would expect apache to run under user www-data:www-data.
Even though the permissions of the import folder are wide open, it still is possible that the apache user cannot save the file. I normally change the ownership of the whole xerte installation folder to the apache user, i.e. something like
Hello, Thanks for the reply
me@Station-Z:~$ sudo chown -R www-data:www-data /home/me/www/xertetoolkits_3.8
sudo chown -R www-data:www-data /home/me/www/uploads_tmp_dir/
sudo service apache2 restart
sudo tail -2 /var/log/apache2/error.log
[Thu Jul 02 16:35:41.715498 2020] [core:notice] [pid 3780] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jul 02 16:35:58.964506 2020] [php7:notice] [pid 3782] [client ::1:45094] Unable to move uploaded project file to imported file: From: To: /home/me/www/xertetoolkits_3.8/import/1744082148/1593725758a1-01-extras_deployment.zip, referer: /localhost/workspaceproperties.php
It's the same! Do you notice in the error log that it doesn't say the "From File:" Could this be the problem? I have placed the orginal file in the uploads_tmp_dir, which is also now owned by www-data