Is there a way to enable mysqli extension to use MySQL with PHP on InfinityFree?

My PHP application requires the mysqli extension, but it does not appear to be enabled on my account. Can you please enable it, or is there a way to use MySQL with PHP on InfinityFree?

Website URL

https://hosla.infinityfreeapp.com/

Error Message

Your server uses PHP version 8.3.19

Your website url is hosla.infinityfreeapp.com

Your document root is /home/vol18_1/infinityfree.com/if0_39224260/htdocs

PHP memory_limit is 512M

PHP max_file_size is 20MB

PHP max_execution_time is 60 seconds

Other Information

Welcome to the community.
MySQLi is enabled on free hosting and you can create and connect to a database. The phpinfo() function will not show detailed information about server due to security, but it is enabled in free hosting.

6 Likes

As support team replied.
Pdo and mySQLi and GD already Enabled. Those working fine with my news website. No any problem.
Check your code page.
Includes config or ur database connection method.

Yeah, I’ve also checked that it’s enabled, but the problem is occuring likely because of PHP version. Can you confirm that the PHP version is not less than 5.6 and that the server uses PHP 7+

No.

image

4 Likes

Your own screenshot confirms it. It shows the PHP version in use on the first line of the page.

But yes, MySQLi is fully supported and the extension is enabled. We don’t do anything weird, or have any severely outdated software that could cause it to malfunction.


You probably won’t take my word for it, but looking for possible server issues that cause this issue probably won’t help you, because you won’t find any because there aren’t any.

Can you please tell us a bit more about what exactly made you believe that mysqli was missing? Are you writing custom code and is the database connection not working? Or are you trying to install software that says it’s missing?

If you can tell us the full problem you’re having, maybe we can help try to find a way to actually solve it.

4 Likes