Jump to content
Froxlor Forum
  • 0

New installation CentOS 7


flycast

Question

When performing the set up part of a fresh installation I get the following error:

Checking MySQL-root access...

SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (13 "Permission denied")

 

I have connected successfully from command line as root to the mysql server and have connected using a php file using this script:

 

<?php
$link = mysql_connect('127.0.0.1', 'root', '[removed]');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>

Just not from Froxlor directly. 

 

An help would be appreciated.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

Sigh....

Now I have a different issue. The configuration file is not creating in the tmp folder:

Could not create lib/userdata.inc.php, please create it manually with the following content:

<?php
//automatically generated userdata.inc.php for Froxlor
$sql['host']='localhost';
$sql['user']='froxlor';
$sql['password']='[removed]';
$sql['db']='froxlor';
$sql_root[0]['caption']='Default';
$sql_root[0]['host']='localhost';
$sql_root[0]['user']='root';
$sql_root[0]['password']='[removed]';
?>

 

 

I do exactly what it says and create this file in /lib but the froxlor installation does not seem to recognize the file. I have confirm the file is there in /lib/. I have tried changing permissions to 777 (asa brute force way of making it work) and changing the file to executable. Nothing works.

 

Any help?

Link to comment
Share on other sites

I see.

 

I went to /var/www/ and there was no ./froxlor folder. I created /var/www/froxlor/lib and create the file. I left the permissions and ownership alone. They are:

 

-rw-r--r--. 1 root root 304 Sep 13 19:53 /var/www/froxlor/lib/userdata.inc.php

 

EDIT: Sorry, I should have mentioned that it is still doing the same thing.

Link to comment
Share on other sites

I have been working on this for two hours - honest! I went back and tried one more time with "localhost" rather than 127.0.0.1. It now works. 

 

Thanks man! I had the some issue and this worked! Somehow 127.0.0.1 stopped working. Don't know why but localhost works.

Any idea what caused this error? I haven't changed the server config.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...