mysql - XAMPP + OSX + Virtualhosts + change user in httpd.conf = phpmyadmin create database not working -
i have installed xampp on osx lion. because want serve folder 1 of development folders have added virtualhost /applications/xampp/xamppfiles/etc/extra/httpd-vhosts.conf
<virtualhost *:80> serveradmin email@gmail.com documentroot "/users/myosxusername/documents/dir/dir/htdocs" servername qmh errorlog "logs/qmh-error_log" customlog "logs/qmh-access_log" common </virtualhost>
and added entry hosts file
127.0.0.1 qmh
because of permission issue server accessing directory /users/myosxusername/documents/dir/dir/htdocs
have changed user in httpd.conf
myosxusername
user myosxusername group admin # previous setting below # user nobody # group nobody
after changes virtual hosts work fine. problem when use phpmyadmin create new database error message
db_create.php: missing parameter: new_db
if change user to:
user nobody group nobody
then phpmyadmin works fine, virtualhost directory cannot accessed due permission issue.
i assume somehow have tell apache not use new user mysql access somehow? appreciated. thanks
see item 2.8 phpmyadmin faq (http://wiki.phpmyadmin.net/pma/faq_2.8)
- in php.ini directive session.save_path , upload_tmp_dir, if these directories don't exist, read-only or not accessable (f.e. due base_dir restrictions) error occur. see trk
- php installed packages (eg. rpm) might set permissions on these directories assumed user (eg. 'apache'). - users of other web servers, eg lighttpd, may need change ownership of these directories (eg. 'lighttpd').
- on windows, if php using directories session.save_path , upload_tmp_dir somewhere within main "temp" directory, must create directories yourself; unlike other windows programs php not create them itself.
- if using hardened-php (/suhosin patch) ini directive varfilter.max_request_variables set default (200) or low value, error if table has high number of columns. adjust setting accordingly ( request limits, klaus dorninger hint).
- in config.inc.php, try leave $cfg['pmaabsoluteuri'] directive empty. see faq 4.7.
- maybe have broken php installation or need upgrade zend optimizer. see http://bugs.php.net/31134.
- in php.ini directive arg_separator.input, value of ";" cause error. replace "&;".
(tip https://serverfault.com/questions/385465/phpmyadmin-missing-parameter)
Comments
Post a Comment