Forums | Mahara Community

Support /
export leap2a error


anonymous profile picture
Account deleted
Posts: 2

25 February 2016, 4:31

Hello,

fresh install of Mahara on Ubuntu 14.04 with Apache and Postgres
from "version. php" : version = 2015092912;release = '15.10.1';

When a user makes an html export all is ok, but when he uses the leap2a format, the download link  give an 404 error.

This error comes from that Apache cannot read the files in /maharadata/export which are owned by root :

drwx- 3 www-data www-data 4096 Feb 24 15:41 1456324850

drwx- 3 root root 4096 Feb 24 15:42 1456324922

drwx- 3 root root 4096 Feb 24 15:48 1456325281

The first directory "1456324850"  owned by www-data  is the html export. The two others directories owned by root are leap exports.

After a  "chown -R www-data:www-data" in mahara/htdocs and maharadata directories, the results are the same.

I need some help.

Cheers

Bernard

 

Ghada El-Zoghbi's profile picture
Posts: 122

01 April 2016, 17:13

Hi Bernard,

Are you still experiencing this issue?

The owner of /maharadata (and its subdirectories) should be www-data:www-data.

The apache users needs to have access to the entire data area.

Also, mahara/htdocs shouldn't be owned by the apache user. That would open up security issues. That directory should be owned by root.

Please let me know if you're still having an issue.

Thanks,

Ghada

 

anonymous profile picture
Account deleted
Posts: 2

01 April 2016, 20:48

Hi Ghada,

Oups i forgot to update the post...

The reason was the Mahara cron. In the root crontab I don't specified the web server user. The result was the leap export file was owned by root. Changing the crontab as specified in the mahra doc :

* * * *  www-data php /path/to/mahara/htdocs/lib/...

solve the problem.

So  HTML and leap export are processed from entirely different ways.

Thanks,

Bernard

Ghada El-Zoghbi's profile picture
Posts: 122

01 April 2016, 21:41

Hi Bernard,

OK.  Great to hear. Thanks for updating us. I'm sure it will help others in the future.

Cheers,
Ghada
4 results