Public bug reported:
If the Apache user is different from the default www-data, phpmyadmin cannot
import SQL scripts because only www-data has write permission on the
upload_tmp_dir configured in /etc/phpmyadmin/apache.conf (which is
/var/lib/phpmyadmin/tmp by default).
This could be solved by either:
- making /var/lib/phpmyadmin/tmp world-writable during install
- making /var/lib/phpmyadmin/tmp writable by the apache user at the time of
install
- not specifying a custom upload_tmp_dir, so that it falls back to the default
/tmp or whatever apache-writable directory has been configured as
upload_tmp_dir for PHP. In that case, that default directory should be added to
the open_basedir directories in /etc/phpmyadmin/apache.conf during install.
IMO, it's quite common to change the default apache user (from www-data
to the current user, for example), especially for web developers (it
releaves the pain of setting write permissions on web-app folders during
development).
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: phpmyadmin 4:3.4.10.1-1
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic 3.2.21
Uname: Linux 3.2.0-27-generic x86_64
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Fri Aug 31 11:00:30 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64
(20120425)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=it_IT.UTF-8
SHELL=/bin/bash
SourcePackage: phpmyadmin
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.phpmyadmin.config.inc.php: 2012-07-11T11:29:54.857390
** Affects: phpmyadmin (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug precise
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1044286
Title:
cannot import scripts because upload_tmp_dir is not writable if apache
user is not www-data
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/1044286/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs