
10th September 2012, 10:24
|
|
Member
|
|
Join Date: Aug 2012
Posts: 78
Thanks: 7
Thanked 1 Time in 1 Post
|
|
Setting phpmyadmin on multiserver setup
Hey guys,
Someone have an link on how to setup the phpmyadmin for the multiserver setup?
Looking around i found this post:
http://www.howtoforge.com/forums/showthread.php?t=55811
After try i get my db.server.com isnt accepting connections from my web.server.com.
Should i add 2 users like ISPConfig setup does?
I mean root@IP and root@web.server.com
Since this user need have full access on db.server.com, i would set to use the ispconfig login instead make a new one?
|

10th September 2012, 10:31
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,069
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
Ypu can do that. Or try to add the one with the Ip first, if it does not work, change it to the hostname. Dont forget to reload mysql or flush priveliges after you changed a user.
Quote:
|
Since this user need have full access on db.server.com, i would set to use the ispconfig login instead make a new one?
|
That depends on your setup. If the db server is not the amster server, then you can reuse it. If the master server is not the db server, then create a new user as the one created for the ispconfig setup allows only access from a slave to the master and not from one slave to another.
|

10th September 2012, 10:53
|
|
Member
|
|
Join Date: Aug 2012
Posts: 78
Thanks: 7
Thanked 1 Time in 1 Post
|
|
I tried adding only the IP.
Worked only for root.
But when i try log as user i get acces denied, example:
root@192.168.0.3 > OK
c1db@192.168.0.3 > Access Denied
c1db@web.server.com > Access Denied
On my setup like i did with root i will need add the users one by one?
|

10th September 2012, 12:59
|
|
Member
|
|
Join Date: Aug 2012
Posts: 78
Thanks: 7
Thanked 1 Time in 1 Post
|
|
Someone have the phpmyadmin working in multiserver enviroment and would share how to get this working please?
I have tried on web.server.com:
dpkg-reconfigure phpmyadmin
Then i set to connect directly on the other server: db.server.com
But when i try log seems the phpmyadmin send the login as:
username@web.server.com
And so, pop error about access denied.
There someway to rewrite the domain name inside of phpmyadmin?
I mean for try log as:
username@db.server.com (already exists since ISPConfig created by the pannel)
instead
username@web.server.com (dont exists)
|

10th September 2012, 13:09
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,069
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
Quote:
|
On my setup like i did with root i will need add the users one by one?
|
Then you might have missed to enable remote access for the user.Login to ispconfig, go to the database settings and enable remote access.
|
|
The Following 2 Users Say Thank You to till For This Useful Post:
|
|

10th September 2012, 13:38
|
|
Member
|
|
Join Date: Aug 2012
Posts: 78
Thanks: 7
Thanked 1 Time in 1 Post
|
|
Quote:
Originally Posted by till
Then you might have missed to enable remote access for the user.Login to ispconfig, go to the database settings and enable remote access.
|
Yeah is it.
I have checked now to enable remote access and worked pretty nice.
Since i dindt oppened the port 3306 on my firewall, i dindt worry about someone try bruteforce attacks on my db.server.com right?
|

10th September 2012, 13:43
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,069
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
Quote:
|
Since i dindt oppened the port 3306 on my firewall, i dindt worry about someone try bruteforce attacks on my db.server.com right?
|
Yes. And even without that you wont have to worry as you can restrict the access by ip address to allow access from the web server only.
|

12th September 2012, 17:52
|
|
Member
|
|
Join Date: Aug 2012
Posts: 78
Thanks: 7
Thanked 1 Time in 1 Post
|
|
Today i got sometime to back on play on my server and notice an problem with this setup.
I`m able to log as user, see database / tables, but, when i try run any SQL query i get an error:
ERROR 403 - Forbidden!
When i click to check the documentation, i get same error.
Looking on /var/log/apache2/error.log and access.log, i dindt find anything about this error.
I`m missing an include somewhere? I mean, I need add something else on path inside of ISPConfig?
Btw, my phpmyadmin is using ssl, would be this?
|

13th September 2012, 14:56
|
|
Member
|
|
Join Date: Aug 2012
Posts: 78
Thanks: 7
Thanked 1 Time in 1 Post
|
|
Just updating my tests, i have tried use:
# Order Deny,Allow
# Deny from All
Allow from LAN IP
Dindt worked, then:
# Order Deny,Allow
# Deny from All
Allow from All
Samething, so:
# Order Deny,Allow
# Deny from All
Allow from All
Require all granted
No luck too, my question now would be, there an way to specific the detail for log on apache?
My guess for there no info on apache logs would be because something would have be set for minimun details.
|

13th September 2012, 16:57
|
|
Member
|
|
Join Date: Aug 2012
Posts: 78
Thanks: 7
Thanked 1 Time in 1 Post
|
|
After some reasearch i found where are the real logs of apache, seems they still on this place:
/var/log/ispconfig/httpd/mydomain.com/error.log
On the log i noticed this:
So the * certificate is useless then?
I mean, i will need do an new certificate specific for web.server.com, for db.server.com, etc... ???
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 13:37.
|
|
Recent comments
1 day 15 hours ago
1 day 17 hours ago
2 days 5 hours ago
2 days 8 hours ago
2 days 12 hours ago
2 days 19 hours ago
3 days 4 hours ago
3 days 6 hours ago
3 days 14 hours ago
3 days 15 hours ago