File Upload with Custom Build

wtfbrb

Verified User
Joined
Oct 11, 2009
Messages
71
Ok, so I previously posted a question about file permissions which led me to use custombuild. Now I am trying to raise my upload limits back up across whole server. I edited /usr/local/lib/php.ini and changed the following variables like so:

post_max_size = 48M
memory_limit = 48M

Restarted httpd first via ssh then with directadmin and neither worked. Any suggestions?
 
Yes, I thought that led me in the right direction but I changed the values /etc/php5/cgi/php.ini and that didn't help either.
 
Does your php info page say that the values have changed?
 
@massive,

Once you're using php as cgi, then there's no reason to restart apache; each incidence of php is called separately.

@wtfbrb,

Usually this is a symptom of you're updating the wrong php.ini file. Please search these forums as there are various files in various locations.

Jeff
 
Struggle continues...

phpinfo says the following:

php.ini loaded: /usr/local/etc/php5/cgi/php.ini
post_max_size = 8M
upload_max_filesize = 2M

but, /usr/local/etc/php5/cgi/php.ini says
post_max_size = 48M
upload_max_filesize = 48M

I rebooted my server even just to make sure everything was reloaded...
 
phpinfo says the following:
php.ini loaded: /usr/local/etc/php5/cgi/php.ini
post_max_size = 8M
upload_max_filesize = 2M

but, /usr/local/etc/php5/cgi/php.ini says
post_max_size = 48M
upload_max_filesize = 48M
What URL did you use for phpinfo? You need to call it with the same URL as the domain; for example: http://www.example.com/phpinfo.php
Check to see if your domain has it's own php.ini. If it does, then the numbers are coming from that file, not the server-wide file.

Jeff
 
I called from mvmdata.net/phpinfo.php but the php.ini file for domain only has basedir and the info page says the global values are the same as well.
 
wow, that somehow seemed to be the only way that I got an error! Thanks, it showed me I had an error in my config file at line 260, it was and x...must have missed ctrl sometime. Thank you for all your help.
 
Back
Top