loaded php.ini file doesn't 'work' - windows-vista

The php.ini file that is loaded (checked through phpinfo) does not seem to have any effect when I change something (after restarting apache). I'm using vista for this (please no answers about use linux, I use that too, I want to have it work on vista also).
edit: version 5.3 VC6 x86 Thread Safe, apache 2.2
edit2: version 5.2.10 VC6 x86 Thread Safe works normal

call phpinfo() function or in CLI php -i
and check "Loaded Configuration File" to see exact php.ini file loaded

Are you sure that the php.ini file is placed in the correct place? Are you using IIS with PHP or just apache?
You could try to reinstall the webserver.

There could be multiple php.ini. In the case of XAMPP, there is one at "U:\xampp\php\" and one in "U:\xampp\apache\bin". The former is for PHP CLI.

Related

How to install Typo3 in Windows 10 with XAMPP?

I have installed XAMPP in Windows, It is working perfectly. but when I installed Typo3 version 8 and it Showed some errors
PHP OpenSSL extension not working.
PHP extension soap not loaded.
Current directory is not within in the current path.
Low PHP Script Execution Time.
PHP max_input_vars very low.
Windows apache thread stack size.
But I can't able to fix the following:
PHP OpenSSL extension not working.
PHP extension soap not loaded.
Current directory is not within in the current path.
Windows apache thread stack size.
What should I do?
Thank you
Here is the full configuration for the Apache On windows server. This working fine with my windows 10 with SSL.
<script src="https://gist.github.com/GhanshyamBhava/41d3a34acc11cec2a4828b0d4b2c840f.js"></script>
Hope this will work for you.
Greetings!
The errors above are not something you have to worry about.
You don't need openSSL for development, it is working without soap (maybe this is used by TER), you have to paste all typo3 src in root path because windows doesn't support symlinks.
But if you want to make all things work you have to use vagrant or docker.
Vagrant requires VirtualBox or other Virtual machine tool.
But docker has a boilerplate ready to use: https://github.com/webdevops/TYPO3-docker-boilerplate

xhprof not working wamp 2.2

I have downloaded the dll file from http://windows.php.net/downloads/pecl/releases/xhprof/0.10.6/ and kept the first 32 bit file at C:\wamp\bin\php\php5.3.13\ext and also include it in my php.ini file (as extension=php_xhprof.dll). But when I call phpinfo() xhprof is now showing. I am not getting any errors in my log.
There are 2 php.ini file and you may have edited the wrong one.
To make sure you edit the correct php.ini file i.e. the one used by Apache use the wampmanager menus like so:
left click wampmanager -> PHP -> php.ini
Check this has the new extension and if not add it to this file.
The php.ini file in \wamp\bin\php\php{version}\php.ini is only used when you are running PHP CLI i.e. running PHP from the Command Line
Also make sure you downloaded the Thread Safe version of xhprof that will be the ones with -ts- in the zip file name.
Also the vc9 or vc11 should match the compiler used to compile your Apache and PHP. If you are using PHP5.3 (very old) then you had better hope it is VC9 but it is quite possible that your Apache/PHP may have been compiled with VC6 which means this extension will not run with your version of Apache/PHP.

libsybcs.dll error when installing composer

Running a windows install I keep getting error listed below.
"The program can't start because libsybcs.dll is missing from your computer.
Try reinstalling the program to fix this problem."
Not sure what this means.
This isn't a Composer issue, but an PHP or server stack configuration issue.
You enabled the Sybase Extension in your php.ini: php_sybase_ct.dll.
This DLL requires another DLL to support Sybase, the libsybcs.dll.
But this file is missing on your system.
When you want to work with Sybase, install it correctly, then the DLL is present. Set the folder where the Sybase DLL resides to the ENV path or drop the DLLs into PHPs ext folder.
When you don't need Sybase, disable the PHP extension php_sybase_ct.
Then restart PHP and retry the Composer installation.

phpStorm doesn't recognise xDebug debugger

I have MAMP Pro 3, have xDebug installed and activated (if I go to the xdebug.org and analyze the php info I see it’s installed)
Still MAMP Pro doesn't recognize the debug information. (see screen)
Any idea what can it be?
phpinfo() - https://www.diigo.com/item/image/4qykm/4qso
Your phpinfo() was captured via browser (served by Apache) ... while PHP Interpreters in PhpStorm is a CLI thingy (i.e. to be executed in terminal). On some systems/setup (mainly Linux & Mac) they use different settings (different php.ini files).
You clearly have two different php.ini files used in both cases. For PHP Interpreters you have to edit that file that you have on your screenshot with PHP Interpreters (just click on Open in Editor link next to it).
Your Apache uses /Library/Application Support/appsolute/MAMP PRO/conf/php.ini
PHP Interpreters one uses /Applications/MAMP/bin/php/php5.6.10/conf/php.ini
You have to edit the last one and enable/configure xdebug there.
Keep in mind that PHP Interpreters will only be used if you execute/debug CLI scripts or other PHP-powered tools (like PHPUnit tests/CodeSniffer/PHPMD integration/Composer/Phing etc). If you only want to debug files served by Apache .. then PHP Interpreter is not required (and you can ignore what it says there).
P.S.
It's also possible that you may have more than one PHP installation on your computer (even if they are both the same version) -- double check that.

PHP.ini Settings Are Ignored By PHP5.3.5 Running With Windows 7 And Apache 2.2.15

I did an install of PHP5.3.5 on Windows 7 Home Premium using the MSI installer download. I got it to overwrite a previous version of PHP5 in C:\php5\
When first testing it, the server failed to start. I fixed this by adding the path to PHP in the Apache2.2 httpd file where the installer had inserted 2 lines of coded pointing to the ini file directory and the PHP DLL but had left out the directory path. After doing this, the server starts ok and I can run phpinfo to view the PHP settings in my web browser on local host.
In the phpinfo it states that the loaded configuration file is C:\php5\php.ini as expected. But if I make any changes to the settings, and reboot the server, none of the changes are reflected in phpinfo. Yes, I do refresh the browser window.
If I rename the php.ini to something else to make it invisible phpinfo then correctly identifies that there is no php.ini file loaded.
So the settings in php.ini are being ignored and some default settings are being used (but I have no idea where these are derived from). As far as I can tell, there are no other php.ini files on my computer.
In phpinfo it states that the Configuration File (php.ini) Path is C:\Windows but this is the same as on a Windows XP computer that I work on. And in the windows folder I don't see any php.ini file.
In the windows registry, there is no mention of PHP5, and the PATH environment variable starts with C:\php5\;
So hopefully someone can suggest how I can get PHP5 to take notice of the C:\php5\php.ini settings. :)
You may have more than one php.ini file. If you do, and you don't realize that you do, you will be slowly driven insane [I speak from experience].
So, have you upgraded from a previous version of php to your current version? If so, delete all previous version php.ini files. Check your environment and system variable paths. Eliminate any references to previous versions.
You say youp're running Apache, but is MSII also running, or did you turn it off?
You may have to go into registry ( I no longer use MS OS so I don't know what or how VISTA or Sys7 implement Registry. I used XP when I had this problem and I had to manually eliminate Registry entries for previous versions of PHP.
Lots a luck!

Resources