poleposters Posted October 22, 2008 Share Posted October 22, 2008 Hi, I need to be able to upload large files and it seems I have to change the php.ini file to do so. I can't seem to find the file. And when I do. I don't know what to do with it! Can anyone help? Quote Link to comment https://forums.phpfreaks.com/topic/129574-solved-how-do-i-change-my-phpini-file-if-i-can-find-it/ Share on other sites More sharing options...
revraz Posted October 22, 2008 Share Posted October 22, 2008 It's just a plain text file. Quote Link to comment https://forums.phpfreaks.com/topic/129574-solved-how-do-i-change-my-phpini-file-if-i-can-find-it/#findComment-671722 Share on other sites More sharing options...
Maq Posted October 22, 2008 Share Posted October 22, 2008 If you have access to SSH type in, "php -i | grep php.ini". Quote Link to comment https://forums.phpfreaks.com/topic/129574-solved-how-do-i-change-my-phpini-file-if-i-can-find-it/#findComment-671753 Share on other sites More sharing options...
poleposters Posted October 22, 2008 Author Share Posted October 22, 2008 I think I've found it. ITs a notepad icon with a sprocket. I've made some changes and checked my phpinfo() but the changes haven't occured. Is it possible theres another file? I'm using XAMPP and I haven't fiddled with it since installation. Also I noticed the instructions at the top of the file, that the file should be named with the extension .ini. However the extension isn't visible. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/129574-solved-how-do-i-change-my-phpini-file-if-i-can-find-it/#findComment-671792 Share on other sites More sharing options...
PFMaBiSmAd Posted October 22, 2008 Share Posted October 22, 2008 However the extension isn't visibleYou should have turned on the display of file extensions a long time ago. Microsoft made a huge security blunder when they hid extensions by default. You need to stop and start your web server to get any changes made to the master php.ini to take effect. Quote Link to comment https://forums.phpfreaks.com/topic/129574-solved-how-do-i-change-my-phpini-file-if-i-can-find-it/#findComment-671795 Share on other sites More sharing options...
poleposters Posted October 25, 2008 Author Share Posted October 25, 2008 Thanks. I've made the changes to the file. Although I'm having trouble restarting the server. I'm not sure if I'm doing the right thing. Theres a shortcut in the XAMPP folder called restart xampp. I've opened it and nothing has changed. Is this the correct way to restart the server using XAMPP? Also. I tried simply restarting my computer. Although the changes still didnt take effect.(shouldn't apache restart when my computer restarts?) I still haven't switched on file extensions. Will this make a difference? Quote Link to comment https://forums.phpfreaks.com/topic/129574-solved-how-do-i-change-my-phpini-file-if-i-can-find-it/#findComment-674399 Share on other sites More sharing options...
PFMaBiSmAd Posted October 25, 2008 Share Posted October 25, 2008 If the file is not named php.ini and if it is not in the correct location, it won't get used. If you edited the php.ini and it got saved with a different extension, it won't get used. Quote Link to comment https://forums.phpfreaks.com/topic/129574-solved-how-do-i-change-my-phpini-file-if-i-can-find-it/#findComment-674415 Share on other sites More sharing options...
poleposters Posted October 25, 2008 Author Share Posted October 25, 2008 I saved it correctly. I just worked it out. I was changin a php.ini file in the XAMPP PHP folder. Meanwhile the file being used was in the Apache folder! Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/129574-solved-how-do-i-change-my-phpini-file-if-i-can-find-it/#findComment-674416 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.