I am setting up a new testing server and I 2 issues.
I am running PHP Version 5.4.22, btw.

I am getting missing file errors and its not seeing the files set in the include path, so I am trying to fix 2 issues.
1) the error about the missing files (and I have the include path set in the php.ini).
2) it displays the errors but does not log them.

1) here is the path include
include_path=".;C:\Program Files (x86)\PHP\pear;..;C:\Program Files (x86)\PHP\includes"
And I verified the paths, they are correct.

2)
error_reporting = E_ALL & ~E_DEPRECATED
log_errors = On
log_errors_max_len = 1024
error_log = "C:\Program Files (x86)\PHP\logs\php-errors.log"

I checked the path in phpinfo.php and it shows the path as.
C:\Program Files (x86)\PHP\includes;

I can't see what I am missing or set incorrectly.

Thanks,
Don

    If phpinfo() isn't showing the values you expect, then you either 1) didn't restart the webserver after making changes to php.ini, or 2) didn't configure PHP to look at the php.ini file you edited. So, that would be the first issue I'd look into fixing.

    Did you also verify in the phpinfo() printout that PHP is indeed loading the .ini file you're editing? Have you been restarting your webserver after making changes to that .ini file?

      I did restart the apache server several times, but I did not restart the server itself. I am not sure how to check if php is using that php.ini file. I thought it always used the php.ini, and that was part of the app, and couldn't be changed.

      Where do I set PHP to use the php.ini I edited?

        I did restart the apache server several times, but I did not restart the server itself. I am not sure how to check if php is using that php.ini file. I thought it always used the php.ini, and that was part of the app, and couldn't be changed.

        Where do I set PHP to use the php.ini I edited?

          In your PHPInfo, you should see something similar to this near the top:

          Configuration File (php.ini) Path => /usr/local/etc
          Loaded Configuration File => /usr/local/etc/php.ini
          Scan this dir for additional .ini files => /usr/local/etc/php
          Additional .ini files parsed => /usr/local/etc/php/extensions.ini

          Obviously, the paths would be Windows syntax for your machine.

          As for which file it uses:

          ;;;;;;;;;;;;;;;;;;;
          ; About php.ini   ;
          ;;;;;;;;;;;;;;;;;;;
          ; PHP's initialization file, generally called php.ini, is responsible for
          ; configuring many of the aspects of PHP's behavior.
          
          ; PHP attempts to find and load this configuration from a number of locations.
          ; The following is a summary of its search order:
          ; 1. SAPI module specific location.
          ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
          ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
          ; 4. Current working directory (except CLI)
          ; 5. The web server's directory (for SAPI modules), or directory of PHP
          ; (otherwise in Windows)
          ; 6. The directory from the --with-config-file-path compile time option, or the
          ; Windows directory (C:\windows or C:\winnt)
          ; See the PHP docs for more specific information.
          

          So, I suppose you're going to want to look at some registry keys...

            I found the issues with these 2. The path in the php.ini file (which someone switched and didnt tell me) did not have the include in it, like the old one did.
            And There was a old IP address in one of the myswlcon files (the server address was moved from the 2. subnet to 3. subnet and this address was missed.

            Thanks for all your help.
            Don

              Write a Reply...