Hi,
values as I set them in php.ini seem not to be used, e.g. I have upload_max_filesize = 50M but in phpinfo() it says 2M, and so on.
Any ideas what is causing this?
TIA
Yup - you didn't install PHP correctly.
Let's start off with the basics: what http server and version are you using? What changes to it have you made in order to install PHP?
Apache/2.0.50 (Win32) PHP/4.4.2 - on my dev PC. I don't think I have made any special changes other than loading the PHP module etc. I did upgrade from a previous PHP version a while ago, but didn't notice any problems till now that I need upload_max_filesize to be larger than the standard 2M. There's only 1 php.ini on my PC and it's in the Windows folder.
Try adding a PHPIniDir directive to the .conf file.
For more information, visit this manual page: [man]install.windows.apache2[/man] (scroll down to "Installing as an Apache module").
OK, it had a PHPIniDir directive but it was pointing to the PHP folder instead of the Windows folder... Thanks!
DrFunky wrote:OK, it had a PHPIniDir directive but it was pointing to the PHP folder instead of the Windows folder... Thanks!
As it should. You shouldn't be moving any files (.dll, .ini, ANY file) into your Windows (or system32) folders. That's been deprecated for quite a while now (not sure how long).
It seems like it shows c:/windows as the directory when it can't find the php.ini file in the specified path. I tried to set the path to c:/program and then it showed c:/windows. When I changed it back to c:/program/php5 then it showed the whole path including php.ini.
bradgrafelman wrote:As it should. You shouldn't be moving any files (.dll, .ini, ANY file) into your Windows (or system32) folders. That's been deprecated for quite a while now (not sure how long).
Yeah, when I first installed PHP such were the instructions... That was indeed a couple of years ago...