Skip to main content
cPanel Technical Support has been heavily impacted by hurricane Beryl and our ability to respond to tickets has been hindered as a result. We appreciate your understanding and patience as we address these delays.

/phpmyadmin alias not working

Comments

3 comments

  • Jibbs
    I suppose I should also add that I put the phpmyadmin files from the website into the /phpmyadmin folder and that if i chown the folder and files to the same user as the domain i am trying to access it works just fine.
    0
  • Jibbs
    Ok so I may have answered my own question so I will post what I did here and someone can tell me if it's a bad thing. The problem was the UID not matching, which after some googling determined that its because the php handler Suphp runs the php process as the user it's calling it from. I switched the scripts running to DSO (mostly because people hosting on my server don't ever access their files directly anyway) and because it's supposed to run faster so sure, why not. DSO runs php as the user "nobody" so I chown'ed my /phpmyadmin directory to that. I also moved my httpd.conf changes to /usr/local/apache/conf/includes/post_virtualhost_global.conf so that it won't be overwritten anymore Nextly, I have open_basedir enabled and I want to leave it enabled so I had to edit my httpd.conf entries for all my sites, which would get erased after a rebuild so i had to edit my template file in /var/cpanel/templates/apache2/vhost.default (in the lines containing "open_basedir" I added ":/phpmyadmin" to the path variables allowing it for inclusion, for reference this is in 5 places I then rebuilt my httpd config using /scripts/rebuildhttpdconf and restarted apache, and all seems to be working. Now my sites can access theirdomain.com/phpmyadmin without having to log into cpanel!
    0
  • cPanelMichael
    Hello :) While the method you described appears to work, it would likely be more secure if you installed a manual copy of phpMyAdmin on any account that prefers direct access to it. You may also want to consider using Mod_Ruid2 with DSO: [url=http://docs.cpanel.net/twiki/bin/view/EasyApache/Apache/ModRuid]Apache Module: Ruid2 Thank you.
    0

Please sign in to leave a comment.