Jump to content

Just reinstalled win 11 and setting up Apache and PHP


Go to solution Solved by mathman540,

Recommended Posts

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.

Link to comment
Share on other sites

...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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.