mathman540 Posted September 18 Share Posted September 18 Hi, I reinstalled win 11 to get rid of some stuff that was not able to be deleted. I have set up Apache 2.4 and PHP8.3. Apache is working by using localhost. "It Works" shows up in my browser. However, when I go into services I cannot start apache, it show automatic. This happened after I installed PHP8. Before I did the php stuff I could start Apache24 without any problems. I created a file with this: <?php phpinfo(); ?> This command is not working. I have entered into http.conf the index.php and I also added PHPIniDir "C:\php8" plus LoadModule php_module "C:\php8\php8apache2_4.dll" and then AddHandler application/x-httpd-php .php I also added the location of these files in my system environment variables. I didn't start having a problem until I did the php stuff. Quote Link to comment Share on other sites More sharing options...
mathman540 Posted September 18 Author Share Posted September 18 OK I got PHPinfo to run but I don't have mysqli running. How do I get mysqli to be included in phpinfo to contain mysqli? Quote Link to comment Share on other sites More sharing options...
requinix Posted September 18 Share Posted September 18 ...It's running. It's already running. You know it's running because you get the "it works" page. So what was this about trying to start it? If you're looking at Windows's services list, "Automatic" means that the service will run automatically on startup. Which is good, and means you don't have to run it yourself manually. You don't need to change that. (Suggestion: change that to Delayed, meaning it's a little lower priority, to help with better startup times.) If you have PHP basically working then mysqli is a matter of php.ini settings. Edit your php.ini (phpinfo will tell you exactly where that is), creating it if you don't have one yet, find the "extension=" area, and uncomment the extensions you want to use. Then restart Apache. Quote Link to comment Share on other sites More sharing options...
mathman540 Posted September 19 Author Share Posted September 19 I know that Apache is working. What I need is to get mysqli to work. Without mysqli I cannot do a Wordpress configuration. So how do I get mysqli to work? I have edited php.ini mysqli is uncommented, it just doesn't show up in phpinfo. There are 2 entries in the php.ini. I uncommented the mysqli entry in the extension list. Quote Link to comment Share on other sites More sharing options...
requinix Posted September 19 Share Posted September 19 Did you edit the correct file? The one mentioned by phpinfo? And you restarted? I don't think there are any DLL dependencies so that should be all you need to do... Quote Link to comment Share on other sites More sharing options...
mathman540 Posted September 19 Author Share Posted September 19 I edit the correct file. I changed he php.ini.development file to php.ini. The I went to the extension section and uncommented the mysqli file by removing the semi colon. I need mysqli to work as I need mysqli to work to run Wordp press. And yes I restarted the apache. Any changes to php I restart apache. The file php_mysqli.dll does exist. Quote Link to comment Share on other sites More sharing options...
Solution mathman540 Posted September 19 Author Solution Share Posted September 19 I finally got mysqli to show up in phpinfo. Thanks for the help. Quote Link to comment Share on other sites More sharing options...
requinix Posted September 19 Share Posted September 19 What was missing? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.