Jump to content

Recommended Posts

Posted
Thanks,
Here is the code:

$databaseHost = '65.19.166.231';
$databaseUsername = 'user_sorting';
$databaseName = 'user_sorting';
$databasePort = 3306;
try {
$mysqli = mysqli_connect($databaseHost, $databaseUsername, $databasePassword, $databaseName);????
} catch (Exception $e) {
echo 'Caught exception: ',? $e->getMessage(), "
";
var_dump($e);
}


Here is the error:
Caught exception: Permission denied
object(mysqli_sql_exception)#1 (8) { ["message":protected]=> string(17) "Permission denied" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(2002) ["file":protected]=> string(24) "/var/www/html/submit.php" ["line":protected]=> int(27) ["trace":"Exception":private]=> array(1) { [0]=> array(3) { ["file"]=> string(24) "/var/www/html/submit.php" ["line"]=> int(27) ["function"]=> string(14) "mysqli_connect" } } ["previous":"Exception":private]=> NULL ["sqlstate":protected]=> string(5) "HY000"}

Jan 21, 2026, 4:46 PM by support@heliohost.org:

> What error message do you get?
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=66589
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>

Posted
?I got it. Here is what happened:

This was due to SELinux which had the "httpd_can_network_connect_db" set to? Off.
I have enabled it using:

setsebool -P httpd_can_network_connect_db 1
?And it works... Thanks again...


Jan 22, 2026, 12:29 PM by support@heliohost.org:

> Permission denied means you're using the wrong password.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=66589
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>

  • Krydos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...