Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install a new version of PHP8.0 to register the website. Both PHP8.0 and PHP8.2 prompt errors. #98

Closed
hkbbdx opened this issue Mar 9, 2024 · 1 comment

Comments

@hkbbdx
Copy link

hkbbdx commented Mar 9, 2024

hello my friend
Install PHP 8.0
GMP Extension
GD Extension
Soap Extension
Mbstring Extension
PDO Extension
PDO-MySQL Extension
Tip: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0".
Install PHP 8.2
GMP Extension
GD Extension
Soap Extension
Mbstring Extension
PDO Extension
PDO-MySQL Extension
Tip: Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in /www/sites/wow.5.xyz/index/application/vendor/catfan/medoo/src/Medoo.php:478 Stack trace: # 0 /www/sites/wow.5.xyz/index/application/include/database.php(17): Medoo\Medoo->__construct(Array) #1 /www/sites/wow.5.xyz/index/application /loader.php(84): database::db_connect() #2 /www/sites/wow.515735.xyz/index/index.php(32): require_once('/www/sites/wow....' ) #3 {main} thrown in /www/sites/wow.5.xyz/index/application/vendor/catfan/medoo/src/Medoo.php on line 478
How to solve it?

@victorxtx
Copy link

First, check mysql host:port is reachable by php, along with the mysql authentication - user, location, password.
Second, check if application/config/config.php.sample is renamed to 'config.php'.
Third, open config.php, find '$config['db_auth_host'] = '127.0.0.1'; and the following arguments till $config['realmlists']. Set them right.
Above all, you should know how database works, if not, Solve it first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants