Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

phpinfo still shows 2M max_filesize after changing php.ini

Status
Not open for further replies.

wachuna

Technical User
Mar 10, 2004
14
US
Solaris 9, Apache 1.3.29, PHP 4.3.2 and MySQL 4

I can't upload files larger then 2M to this server. phpinfo shows conf files being /etc/apache/php.ini. In this file I've tried changing upload_max_filesize and post_max_size (I made sure the post value is larger than upload value). After an apache restart phpinfo still shows upload_max_filesize of 2M. I did a search on the whole system for php.ini, found 2 in /etc/apache and /usr/apache/conf. I changed both values in both files, restarted apache, phpinfo still shows 2M. I've also tried messing with .htaccess containing,

php_flag upload_max_size 110M
php_flag post_max_size 120M

and putting the file in /etc/apache, did work. Anybody have any ideas? Could the problem be in a php script?

Thank You
 
The problem was in the /etc/apache/php.ini in the Error handling portion. To display all apache errors, I was told to uncomment all the "E_...." Error handling lines in the php.ini file. On startup, Apache sees this as problem then stops reading the rest of php.ini. I guess I just needed to uncoment out one line,

"error_reporting = E_ALL & ~E_NOTICE"

We can now upload files larger than 2M

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top