Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 749383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:25:42+00:00 2026-05-14T14:25:42+00:00

I have installed php successfully on a Windows 7 machine but I can not

  • 0

I have installed php successfully on a Windows 7 machine but I can not for the life of me get it to read the php.ini file.

I have uncommented out the line for php to use mysql and when I run phpinfo(), it never shows up.

I have checked to make sure there is only one php.ini file on my entire c:\ drive and it’s sitting in my c:\windows folder.

has anyone else run into this and know of a solution to get php to read the .ini so that I can enable some extensions (mysql etc)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:25:42+00:00Added an answer on May 14, 2026 at 2:25 pm

    Check the following:

    1. Make sure you only have one php.ini file. It should be in the same folder as php.exe, php-cgi.exe and php-win.exe. It’s worth checking your c:\windows and c:\windows\system32 folders. If you find a php.ini in there or anywhere else on the PATH other than the PHP install folder then delete them.

      A handy way to check this is to run where php.ini from the command prompt.

    2. Add your PHP install and extensions folders to the system PATH: For example – c:\php and c:\php\ext

    3. Edit your php.ini file and ensure that the extension_dir directive points to the extensions folder: extension_dir=c:\php\ext

    This should get you going. If you still find that extensions aren’t being loaded then prepend the extension with ext/. For example:

    extension=ext/php_mysql.dll

    You don’t indicate if you’re using FastCGI to launch PHP.

    If you’re just mapping the .php extension directly to php-cgi.exe or you’re using FastCGI but haven’t specified a monitorChangesTo attribute then you need to kill any php-cgi.exe processes to force a re-read of php.ini after any changes (or do an IISRESET).

    If you’re using FastCGI on Windows 7 (or IIS 7.5 generally) then you can trigger recycling of FastCGI whenever your php.ini file changes by specifying a the path to the php.ini file in the monitorChangesTo attribute. This is also configurable through IIS Manager under the FastCGI Settings applet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 376k
  • Answers 376k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think you're going to need an intermediate array where… May 14, 2026 at 8:36 pm
  • Editorial Team
    Editorial Team added an answer sigh May 14, 2026 at 8:36 pm
  • Editorial Team
    Editorial Team added an answer answering my own question :) I found the best way… May 14, 2026 at 8:36 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.