Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#41298 - [roundcubemail] Drop a open_basedir config in php.d

Attached to Project: Community Packages
Opened by Sébastien Luttringer (seblu) - Tuesday, 22 July 2014, 17:58 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 26 February 2015, 17:26 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Could we ship a sexy php open_basedir restriction for roundcubemail in /etc/php/conf.d/ as it's done in dokuwiki package.

Attached my file.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 26 February 2015, 17:26 GMT
Reason for closing:  Fixed
Comment by AndrzejL (AndrzejL) - Saturday, 26 July 2014, 12:49 GMT
  • Field changed: Percent Complete (100% → 0%)
Adding this file messes up configs big time.

I had to remove it otherwise I get Access denied to most of my subdomains / subfolders...

https://andrzejl.eu:30303/wordpress/2014/07/23/solved-access-denied-error-after-the-roundcubemail-1-0-2-1-1-0-2-2-upgrade/

Please nuke this file in next package.

Thanks.

Andrzej
Comment by Sébastien Luttringer (seblu) - Saturday, 26 July 2014, 13:00 GMT
Sergej, adding the open_basedir in apache config allow the path for apache based setup. It's a php restriction, which should be fixed in php config files, like you do in -2.
As a consequence Nginx, lightthp setup miss that authorization in php.

I thought that putting this files, in this directory is the best way to tell to php, this paths are legit. We already do that with others software.
Andrezjl did not troubleshoot his problem, he remove the file and says it's ok.

@Andrezlj, what's your open_basedir setup? Did you comment the line in php.ini? Instead you could set open_basesir=/.
Comment by AndrzejL (AndrzejL) - Saturday, 26 July 2014, 13:22 GMT
Buddy - you cannot solve your problems with nginx by adding stuff to roundcubemail that break other peoples configs and then accuse them of not troubleshooting. T

The rule that was added in the rc ini file was overwriting all my php openbase dir rules https://andrzejl.eu:30303/Microbin/9vZwx that was the trouble and I shot it by removing the file which had no business of being in there in the first place.

You say its a php problem? I say its a nginx problem. My setup worked fine with apache. You have to do is write a little snippet of info on arch wiki for roundcubemail to add this file if they use nginx. Adding it by default is not a solution.

Cheers.

Andrzej

P.S. Jaysus is my name really that difficult to spell? Hehehe :D
Comment by Sébastien Luttringer (seblu) - Saturday, 26 July 2014, 14:07 GMT
Andrzej, I'm not trying to solve my problem, I'm trying to offer a way to our web packages to declare php open_basesir config to simplify setup and allow smart update for everyone.

The added line starts by "open_basedir = ${open_basedir}:...", which should not override your open_basedir config, but append the paths of roundecubemail to your paths.

Dude, I'm not saying it's an apache problem versus other web servers, I said you don't provide enough information to understand why your apache/php config was broken by adding this file. That should be smooth and don't break your setup. We do that for other package, and nobody complain. So instead of just nuking the file, maybe, you could help to understand why this not works as expected.

Thanks for pasting your php.ini open_basedir config, i'm now wondering why the drop-in.d config override the open_basedir, instead of just being added to your previous php open_basedir directories. Do you have a suggestion? Do you have a special config.
Comment by AndrzejL (AndrzejL) - Saturday, 26 July 2014, 15:13 GMT
My config is quite ordinary. I have no idea why the ini file overrides it. I am willing to help you troubleshoot it further in spare time.

https://andrzejl.eu:30303/Microbin/L2n81 here is a temporary list of all my current httpd / php configs for You to look at.

Cheers.

Andrzej
Comment by Sergej Pupykin (sergej) - Thursday, 26 February 2015, 17:26 GMT
So I finally put etc/php/conf.d/roundcubemail.ini back

Loading...