After installing php as ISAPI on IIS7 phpinfo function shows that no php.ini were loaded:
Loaded Configuration File (none)
By command line PHP is loading php.ini file successfully
C:\PHP>php --ini
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File: C:\PHP\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
How can I solve it?
The only php.ini file on the server is on C:\PHP. There is no php.ini on C:\Windows.
The php.ini file were created by php installer and is untouched so far.
tks
Related
I have installed PHP through Homebrew and I'm using Laravel Valet to serve my projects locally. I would like to update the memory_limit in PHP.ini but for some reason it looks like it's not updating.
If I run php --ini I get:
Configuration File (php.ini) Path: /usr/local/etc/php/7.4
Loaded Configuration File: /usr/local/etc/php/7.4/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.4/conf.d
Additional .ini files parsed: /usr/local/etc/php/7.4/conf.d/ext-opcache.ini,
/usr/local/etc/php/7.4/conf.d/php-memory-limits.ini
I've updated memory_limit in both /usr/local/etc/php/7.4/php.ini and /usr/local/etc/php/7.4/conf.d/php-memory-limits.ini.
Then I run:
brew services restart php#7.4
and
valet restart
If I then display phpinfo() in my project it still says memory_limit = 128M.
Here is how I solved this problem on mac:
I run: php --ini
It output:
Configuration File (php.ini) Path: /usr/local/etc/php/7.4
Loaded Configuration File: /usr/local/etc/php/7.4/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.4/conf.d
Additional .ini files parsed: /usr/local/etc/php/7.4/conf.d/error_log.ini,
/usr/local/etc/php/7.4/conf.d/ext-opcache.ini,
/usr/local/etc/php/7.4/conf.d/php-memory-limits.ini
I edited /usr/local/etc/php/7.4/php.ini
Restart php.
Still same issue.
Then I edited /usr/local/etc/php/7.4/conf.d/php-memory-limits.ini,
restart.
It worked.
First of all, please forgive me for my poor English skills.
After installing the compilation of Apache, php5.3 on CenOs 7,
we have a problem with the path to set up php.ini
First of all, look at the setting value here.
Shell
PHP -r "phpinfo();"
Configuration File (php.ini) Path: /usr/local/php53/etc/php.ini
Loaded Configuration File: (none)
Scan for additional .ini files in: /usr/local/php53/etc/php.d
Additional .ini files parsed: (none)
Web
<? phpinfo(); ?>
Configuration File (php.ini) Path
/usr/local/php53/lib
Loaded Configuration File
(none)
Scan this dir for additional .ini files
/usr/local/php53/etc/php.d
Additional .ini files parsed
(none)
Found the php ini-production file in the source file.
Changed the asp_tag value in the php.ini file to On.
By changing the name to php ini.
Move to
/usr/local/php53/lib/php.ini
path
I started the Apache again, but the settings haven't changed.
I want to know how to change php.ini
Please reply.
Thank you for reading.
I installed php 5.6.6 as an apache 2.4 module.
When loading a page with < ? phpinfo(); ?>, it said :
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File (none)
So, as the doc suggests, I edited httpd.conf to point php.ini configfile (in C:\php56).
I also added C:\php56 to PATH and PHPRC environnment variable.
As I don't have any php.ini file in this folder, I copied and renamed the "php.ini-production" one, and edited path to extensions.
When I display the page again, it stays blank ...
here is the "php --ini" command result :
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File: C:\php56\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
Which step am I missing ?
Is it possible that the phpinfo function is disabled in your php.ini configuration (disable_functions option)?
If that is not the case try swapping to the development .ini file which by default reports more errors.
We have a client with php v5.5.12 installed and we are trying to find the php.ini file that is being used when this is run from the command line (php-win.exe)
Running
php-win.exe --ini
returns nothing.
This is the top content of the output of phpinfo();
Configuration File (php.ini) Path => C:\Windows
Loaded Configuration File => (none)
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20121113
I've never seen this before! There are lots of modules enabled (but not all of them, which is what we are trying to fix) but can't find the config file that is being used.
Any ideas?
It was in C:\Windows. Strange it implies no .ini file was being loaded from there; and nothing in phpinfo();
I am running wamp 2.5
when i run phpinfo I get
Configuration File (php.ini) Path
C:\Windows
Loaded Configuration File
C:\wamp\bin\apache\apache2.4.9\bin\php.ini
When I go to
C:\wamp\bin\apache\apache2.4.9\bin\php.ini
it is a symbolic link to
C:\wamp\bin\php\php5.5.12\phpForApache.ini
I try to install a project via composer on my ubuntu.
When I run composer install I have the error :
[RuntimeException]
You must enable the openssl extension to download files via https
My apache is installed under /etc/apache2 and php in /etc/php5
I have installed openssl and when I check install with phpinfo(), I see openssl is correctly enabled.
I know composer invoke php command line.
So if I do this command :
php --ini
output
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
But there's no php.ini in /usr/local/lib
I don't know why php in command line take this configuration ?
thx
I removed my php binary under /usr/local/bin and php --ini command now return php5 configuration :
Configuration File (php.ini) Path: /etc/php5/cli
Loaded Configuration File: /etc/php5/cli/php.ini
Scan for additional .ini files in: /etc/php5/cli/conf.d
Additional .ini files parsed: /etc/php5/cli/conf.d/10-pdo.ini,
/etc/php5/cli/conf.d/20-curl.ini,
/etc/php5/cli/conf.d/20-gd.ini,
/etc/php5/cli/conf.d/20-mysql.ini,
/etc/php5/cli/conf.d/20-mysqli.ini,
/etc/php5/cli/conf.d/20-pdo_mysql.ini