Problem connecting to database

JBloggs

Registered
Feb 7, 2013
4
0
1
cPanel Access Level
Root Administrator
Hi,

I'm fairly new to WHM/cPanel although I've used it a little in the past.

I'm simply trying to install Wordpress (which I've done many times) on a number of sites but I keep on getting an error message each time. I cannot connect to the database wether I create it in cPanel or in phpMyAdmin.

I managed to get around it by connecting via shell and using the default username but that's not ideal. If I try and install WP via SFTP when I'm connecting as root it's a no go.

I think it could be a permissions problem for the root user but I'm not sure.

This is the error message:

[Fri Feb 08 19:05:35 2013] [error] [client MYIPADDRESS] File does not exist: /home/MYWEBSITE/public_html/404.shtml
[Fri Feb 08 19:05:35 2013] [error] [client MYIPADDRESS] File does not exist: /home/MYWEBSITE/public_html/favicon.ico
[Fri Feb 08 19:05:35 2013] [error] [client MYIPADDRESS] File does not exist: /home/MYWEBSITE/public_html/500.shtml
[Fri Feb 08 19:05:35 2013] [error] [client MYIPADDRESS] SoftException in Application.cpp:357: UID of script "/home/wwwvns/public_html/wp-admin/install.php" is smaller than min_uid


I've checked the user minimum ID value and it's the default 500 so I don't think that's the problem.

Any help would be appreciated.

Thanks,

JB
 

quietFinn

Well-Known Member
Feb 4, 2006
1,894
464
438
Finland
cPanel Access Level
Root Administrator
[Fri Feb 08 19:05:35 2013] [error] [client MYIPADDRESS] SoftException in Application.cpp:357: UID of script "/home/wwwvns/public_html/wp-admin/install.php" is smaller than min_uid[/FONT]

I've checked the user minimum ID value and it's the default 500 so I don't think that's the problem.
That is the problem.
Seems you are trying to install it as root, and that is not going to work.
 

JBloggs

Registered
Feb 7, 2013
4
0
1
cPanel Access Level
Root Administrator
Thanks for replying.

The odd thing is I have an identical server where I can install through root and the Min ID value is exactly the same as the new server.
 

JBloggs

Registered
Feb 7, 2013
4
0
1
cPanel Access Level
Root Administrator
Help Please! Permissions Problem

Hi,

I'm fairly new to WHM/cPanel although I've used it a little in the past.

I'm simply trying to install Wordpress (which I've done many times) on a number of sites but I keep on getting an error message each time. I cannot connect to the database wether I create it in cPanel or in phpMyAdmin.

I managed to get around it by connecting via shell and using the default username but that's not ideal. If I try and install WP via SFTP when I'm connecting as root it's a no go.

I think it could be a permissions problem for the root user but I'm not sure.

This is the error message:

[Fri Feb 08 19:05:35 2013] [error] [client MYIPADDRESS] File does not exist: /home/MYWEBSITE/public_html/404.shtml
[Fri Feb 08 19:05:35 2013] [error] [client MYIPADDRESS] File does not exist: /home/MYWEBSITE/public_html/favicon.ico
[Fri Feb 08 19:05:35 2013] [error] [client MYIPADDRESS] File does not exist: /home/MYWEBSITE/public_html/500.shtml
[Fri Feb 08 19:05:35 2013] [error] [client MYIPADDRESS] SoftException in Application.cpp:357: UID of script "/home/wwwvns/public_html/wp-admin/install.php" is smaller than min_uid


I've checked the user minimum ID value and it's the default 500 so I don't think that's the problem, and I've increased it and still had the problem.

Any help would be appreciated.

Thanks,

JB
 

JBloggs

Registered
Feb 7, 2013
4
0
1
cPanel Access Level
Root Administrator
Thanks for replying. I moved the question as I'm new to the forum and it looked like I would get more helpful answers in the other location.

I posted the full error message as I thought it would be useful, obviously the problem isn't a favicon! The problem is I cannot connect to a database that is created by the root user. There are no problems at all when I connect as the account user.

I have access to an identical server where I can connect as the root and do not have such problems. Perhaps what I'm encountering is normal out-of-the-box but it doesn't suit my needs.

There are no errors creating databases in cPanel or command line with either root access or account user access. The problem is connecting to that database.

- I have tried amending the min. ID value which didn't work.

- I have tried amending permissions with chown-R mywebsite:mywebsite /home/mywebsite/public_html which didn't work either.

If anyone could throw some light on this it would be appreciated.

Thanks.

JB