I’m not sure how it would be. You’re talking about a PHP configuration issue.
Have you restarted Apache after making changes to your php.ini?
Are you sure you’re modifying the php.ini that is being loaded? If you have PHP setup to run under CGI or fcgi, it would be a user-specific php.ini, found somewhere in the users home (probably).
You haven’t provided the actual error message from the error_log, so I can’t really provide any more than wild guessing, so proceeding from here will definitely require more information.
[Tue Nov 03 16:20:27 2009] [error] [client 192.168.11.4] PHP Fatal error: Call to a member function getrows() on a non-object in /home/tester/public_html/include/config.php on line 91
[Tue Nov 03 16:21:05 2009] [error] [client 192.168.11.4] PHP Fatal error: Call to a member function getrows() on a non-object in /home/tester/public_html/include/config.php on line 91
[Tue Nov 03 16:21:26 2009] [error] [client 192.168.11.4] PHP Fatal error: Call to a member function getrows() on a non-object in /home/tester/public_html/include/config.php on line 91
[Tue Nov 03 16:26:18 2009] [error] [client 192.168.11.4] PHP Fatal error: Call to a member function getrows() on a non-object in /home/tester/public_html/include/config.php on line 91
[Tue Nov 03 16:47:12 2009] [error] [client 192.168.11.4] PHP Warning: fopen(/home/tester/public_html//include/config.local.php) [function.fopen]: failed to open stream: Permission denied in /home/tester/public_html/include/function_admin.php on line 360, referer: http://192.168.11.12/siteadmin/index.php?m=main
[Tue Nov 03 16:55:09 2009] [error] [client 192.168.11.4] PHP Warning: POST Content-Length of 10171477 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://192.168.11.12/upload/video
error log
[Tue Nov 03 17:36:28 2009] [error] [client 192.168.11.4] PHP Warning: POST Content-Length of 8526647 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://192.168.11.12/upload/video
[Tue Nov 03 17:48:33 2009] [error] [client 192.168.11.4] PHP Notice: Undefined variable: ext in /home/tester/public_html/include/function_global.php on line 234, referer: http://192.168.11.12/upload/photo
[Tue Nov 03 17:48:33 2009] [error] [client 192.168.11.4] PHP Notice: Undefined variable: ext in /home/tester/public_html/include/function_global.php on line 236, referer: http://192.168.11.12/upload/photo
[Tue Nov 03 17:48:33 2009] [error] [client 192.168.11.4] PHP Notice: Undefined variable: ext in /home/tester/public_html/include/function_global.php on line 238, referer: http://192.168.11.12/upload/photo
[Tue Nov 03 17:53:39 2009] [error] [client 192.168.11.4] PHP Notice: Undefined index: 1 in /home/tester/public_html/include/function_notice.php on line 24, referer: http://192.168.11.12/
[Tue Nov 03 17:53:39 2009] [error] [client 192.168.11.4] PHP Notice: Undefined index: 1 in /home/tester/public_html/include/function_notice.php on line 30, referer: http://192.168.11.12/
im pretty sure that im editing the right php.ini from what i pulled from running phpinfo.php which is /etc/php.ini
im not sure if it run under CGI or fcgi i just installed virtualmin as it is and i havent configure anything except making a database which have no problem.
Can you attach the following two items to this thread:
The output of phpinfo()
The contents of your php.ini file
Perhaps we’ll be able to see what’s going on from within those.
Also, though, if you’re using mod_php, the value of the max post size can be changed within the PHP application itself. So another option is that you’ll need to review the settings of the application you’re uploading through, and make sure you can’t change it in there.
thanks.
sorry i dont know if im using mod_php, just installed virtualmin GPL and thats all.
regarding the config of the site i have change config.php to max upload 1000, but when on the site and test for an upload the same error appears, the site still detects the upload and post_max to 8 and 4 the default.
I attach file for the phpinfo and phpini (hosting is in the virtualpc so cant point out the ip address for phpinfo view so i just copy paste the 2 in seperate notepad)
So your script isn’t listening to your php.ini or your script has a different setting somewhere overuling your php.ini or there is a setting in some other file limiting your uploads.
if you were uploading zip files then rules inside /etc/php.d/zip will become effective, and you can check that file to see if indeed there is such limit present.
If not, you can ignore.
What script are we talking about anyway? And is there a .htaccess in your uploadfolder?
inside the project script is a htaccess file which has below:
Comment the 2 lines below if the server returns 500 errors!
Options -Indexes
Options +FollowSymLinks
#Uncomment following lines if you want to use image caching!
#
ExpiresActive On
ExpiresDefault A1209600
ExpiresByType text/html A1
#
Uncomment following lines if Apache doesnt support MultiViews!
RewriteEngine On
# Uncomment the 2 lines below if you are using www.domain.com
# as the baseurl for the site and users access your site
# via domain.com (THIS IS REQUIRED FOR JQUERY TO WORK)
#RewriteCond %{HTTP_HOST} ^domain.com [NC]
#RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* loader.php [L,QSA]
Edit below lines and set to
ErrorDocument CODE /RELATIVE/error.php
If the script is installed in the default document
htaccess is in this directory /home/tester/public_html (tester is the name of the site im doing the this test)
its not in root directory, and I dont see htaccess file i root directory.
looking at their website it says: in your administration panel
media settings (configure maximum upload size allowed and video formats allowed)
Thats what the problem is, inside admin panel media settings, im changing the values for the upload and post max but error appear that i must change the settings from php.ini, which it doesnt work even its already changed.
the .htaccess is in your /public_html so its in the (domains) root directory (just symantics), you should have a upload directory of some sort that the script uses. Is there a .htaccess file in there?
Since the setting in the admin panel doesn’t seem to be doing what it is supposed to, I would submit a support ticket with the developer. You bought the software so you are entitled to get support from them.
the script runs fine in cpanel/whm. i can upload with larger file with no problem, edited php.ini with no problem.
now im prepairing to make a home server operated by “virtualmin GPL” centos5.3 I have installed the script/software fine no error no problem at all, I can upload file I can watch , but the problem is I cannot upload files larger than 2M.
The progarammers of the script and the comments here and other forum has done and tried many times, So I would think the problem is within Virtualmin GPL itself.Would it be some bug or glitch in the program or GPL and PRO version would have something to do with it?
I hope some admin or programmers of virtualmuan review this.
this could then be a misconfiguration or possibly a bug…
you can post a bug here http://www.virtualmin.com/project/issues
it may be handy to post also a link to this thread.