Help - Search - Members - Calendar
Full Version: php.ini changes not being reflected
The Planet Forums > Control Panels > Plesk
drunkstunts
I am attempting to change the default "upload_max_filesize = 2M". I have changed the 2M setting in the php.ini file to 55M. I saved the file, rebooted the server, yet my scripts are still showing the setting as 2M. When I reopen php.ini, it shows that I have updated the setting to 55M.

What is odd, is that when I first did this, it reflected the changes within my scripts. After I changed the "memory_limit=8M" to a 25M, it stopped showing my changes to the upload_max_filesize in Typo3.

It shows all changes to the memory_limit, just not the upload_max_filesize. What gives?

:confused:
x007
try to restart apache ...
but if you have reboot you should be ok..
make sure have not made some error when saving php.ini, put back the save one (you should have backup it before) put the original back then try again the change...

/etc/init.d/httpd restart .. may be different for you...


QUOTE
Originally posted by drunkstunts
I am attempting to change the default "upload_max_filesize = 2M".  I have changed the 2M setting in the php.ini file to 55M.  I saved the file, rebooted the server, yet my scripts are still showing the setting as 2M.  When I reopen php.ini, it shows that I have updated the setting to 55M.  

What is odd, is that when I first did this, it reflected the changes within my scripts.  After I changed the "memory_limit=8M" to a 25M, it stopped showing my changes to the upload_max_filesize in Typo3.  

It shows all changes to the memory_limit, just not the upload_max_filesize.  What gives?

:confused:
ideasmultiples
Test:
nano -w /home/httpd/vhosts/yourdomain.com/conf/vhost.conf


change values



now you need to recreate the include files and restart apache:



/usr/local/psa/admin/sbin/websrvmng -a -v
drunkstunts
QUOTE
Originally posted by ideasmultiples
Test:
nano -w /home/httpd/vhosts/yourdomain.com/conf/vhost.conf


change values


When I tried the above, it looks like it is creating a new file, not opening an existing. Sorry if I am missing something here, I'm pretty new to linux.

Below is the section from my php.ini file. Seems correct...


; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 55M
NightHawk
QUOTE
Originally posted by drunkstunts
When I tried the above, it looks like it is creating a new file, not opening an existing.  Sorry if I am missing something here, I'm pretty new to linux.

Below is the section from my php.ini file.  Seems correct...


; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 55M



Yes, in the new post you were being asked to create a new file...vhost.conf is where you make changes to an individual sites httpd.include ...you then run websrvmng to make the changes take effect.

The first thing that comes to mind on your changes to php.ini not taking would be to make sure that you are editing the correct php.ini ( it should be /etc/php.ini and if you have installed zend..it will be a symlink to zend's copy of php.ini). Then make sure that you restart apache..and the changes should take effect for all domains.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.