Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

Can't import 3 years 9 months ago #6699

  • engmex_2
  • engmex_2's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
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?

Please Inloggen or Create an account to join the conversation.

Can't import 3 years 9 months ago #6700

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1290
  • Thank you received: 308
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
chown -R www-data:www-data /home/me/www/xertetoolkits_3.8

Please Inloggen or Create an account to join the conversation.

Can't import 3 years 9 months ago #6701

  • engmex_2
  • engmex_2's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
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

Please Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.059 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search