Page 1 of 3

phpMyAdmin error on login screen - cannot login

Posted: Tue Apr 07, 2015 11:07 am
by umuzidan
Using a clean, new install of Vesta CP on Centos 6, after I create a new DB and user, I go to phpMyAdmin and am presented with this error:

Warning in ./libraries/session.inc.php#101
session_start(): open(/var/lib/php/session/sess_281cetphm911n7edbnnrt2oa12t3esvi, O_RDWR) failed: Permission denied (13)

Backtrace

./libraries/session.inc.php#101: session_start()
./libraries/common.inc.php#349: require(./libraries/session.inc.php)
./index.php#12: require_once(./libraries/common.inc.php)
Automatically send report next tim

I cannot login using the new credentials.

Any suggestions?

Re: phpMyAdmin error on login screen - cannot login

Posted: Tue Apr 07, 2015 12:57 pm
by skurudo
How you try to login in phpmyadmin: domain name / ip ?
What's permission/owner on those files?

PS: I don't see that problem on CentOS 6. Sad, but this is local, sorry.

Re: phpMyAdmin error on login screen - cannot login

Posted: Tue Apr 07, 2015 5:43 pm
by umuzidan
I login to Vesta CP using internal IP and port 8083. When I visit the DB tab, I click the link to open that "DB" in phpMyAdmin. This opens phpMyAdmin using the internal IP running on port 80. I use the username "admin_<dbuser>".

Re: phpMyAdmin error on login screen - cannot login

Posted: Tue Apr 07, 2015 6:57 pm
by umuzidan
Ok this gets even weirder.

I decided to start over from scratch.

1. Create new VM for CentOS 6
2. Install VMware Tools
3. Install Vesta CP
4. Login and go directly to phpMyAdmin - same exact error
5. Some online searching indicated that I should uncomment "session.save.path" from php.ini - I did that and rebooted - still same error
6. New discovery, when visiting https://vestacpIPaddress:8083 - pages loges fine. When visiting http://vestaIPaddress/phpMyAdmin - page returns HTTP 500 Internal Server error. When I visit http://publicVestaIPaddress/phpMyAdmin - Page load correctly and I'm presented with the error I described at the beginning of this ticket.

Seriously, WTF is going on?? I'm driving myself crazy. I've installed Vesta CP many times now and never once presented with this error.

Re: phpMyAdmin error on login screen - cannot login

Posted: Wed Apr 08, 2015 4:40 am
by skurudo
umuzidan wrote:Seriously, WTF is going on?? I'm driving myself crazy. I've installed Vesta CP many times now and never once presented with this error.
Yep, I don't see this error too. Do you installed apc or xcache may be?
What's you mean publicvestaip / vestaipaddress - it's somehow diffetent?

Re: phpMyAdmin error on login screen - cannot login

Posted: Wed Apr 08, 2015 4:42 am
by umuzidan
Public Vesta IP is the NATed IP, accessible by the public. Internal Vesta IP is the internal LAN IP of the server itself. No, I don't have those installed.

Re: phpMyAdmin error on login screen - cannot login

Posted: Wed Apr 08, 2015 5:20 am
by skurudo
What's about your ip-listen settings in your httpd?

Re: phpMyAdmin error on login screen - cannot login

Posted: Wed Apr 08, 2015 5:39 am
by umuzidan
skurudo wrote:What's about your ip-listen settings in your httpd?
My listen IPs are only the internal LAN IP. I left the NAT blank. I'm trying to access it directly on the internal LAN. I have been unsuccessful in loading phpMyAdmin from localhost and other clients on the same LAN. I have created additional website and can successfully visit their webpages on port 80, but when I add phpmyadmin after the website name, it already returns blanks. I have checked the IPs listed at these locations. viewtopic.php?f=11&t=7013

Again:
1. When visiting "http://<internalip>/phpmyadmin" from the localhost, the page ALWAYS returns blank
2. When visiting "http://<internalip>/phpmyadmin" from another client on the same LAN, the page loads but phpMyAdmin presents the error pasted in the original post.

Either way, I can't access phpMyAdmin. I have rebuilt this OS and re-installed VCP about 10 times now with all different configurations.

Re: phpMyAdmin error on login screen - cannot login

Posted: Thu Apr 09, 2015 2:50 am
by umuzidan
Please help. I'm completely stumped.

Re: phpMyAdmin error on login screen - cannot login

Posted: Thu Apr 09, 2015 11:48 pm
by poxin
This is happening to me as well when it has worked before. Completely wiped the OS, reinstalled CentOS6, same error with phpmyadmin.

Edit: looks like chmod 777 to /var/lib/php/session may have done the trick. phpMyAdmin now opens, appears there is another error inside: The configuration file now needs a secret passphrase (blowfish_secret).

Looks like something must have changed along the line, never got these errors before.