music file limit

Hi - one question - I work with a band and want to upload some of their live performance mp3s to my profile. However I get a file size limit warning of 2 meg. Is there a way in the admin to change this limit?

 

Thanks,

Elaine

Quote · 15 Jul 2008

use notepad to Make a file called php.ini which will contain the following code:

 

upload_max_filesize = 50m

 

you can change the 50m to any size you want in megabytes... Save the file and upload to your webspace.

Quote · 20 Jul 2008

I don't think you want to be overwriting your php.ini file, but you can edit it. Your php.ini file is critical to operating your php and you should not mess with it unless you know what you are doing.

I am having the same problem. Just haven't gotten to it yet. Since exlombardo has asked the question, I will try to offer two solutions that should have worked for me, but haven't.

ini_set("upload_max_filesize","20M");

added near the top of the file:

inc/header.inc.php

or, better....

Then, tried changing the php.ini file.

; Maximum allowed size for uploaded files.
#upload_max_filesize = 2M
upload_max_filesize = 20M;

Neither of these has changed the resulting little black dialog box. It still says "Alert File Size Should not exceed 2MB" when I click to upload a video.

If anyone has a suggestion, please let us have it.

Arthur

Quote · 20 Jul 2008

that solution worked for me I did not overwrite any php.ini file as I just added it to my dolphin installation

Also you can try adding

upload_max_filesize = 50m

To you .htaccess file as that also has the same effect.

In any case if your hosting provider has limited your file upload size it may be impossible to override unless you can get them to alter it for you.

Quote · 20 Jul 2008

You can also try changing your individual Ray widget settings in admin - plugins - ray suite

Quote · 20 Jul 2008

You can usually increase the values depending on your host setup. Ocassionally some hosts you just wont be able to change these, but many you can.

If you can change these you need to know whether php apache or php cgi. If php/apache then you can add a few lines to .htaccess in your main dolphin directory install. If php/cgi then you need to use a php.ini file. Most often just in the main dolphin directory, but ocassionally you do need it in cgi-bin, and/or all associated folders/directories you want to increase.

If you have a cgi setup and you try to add to .htaccess you will probably get a 500 error. If you add/create a php.ini file and your setup is php apache most likely you will do nothing. So it's important to figure out which you have first.

Then for .htaccess this is usually sufficient(change the numbers to your liking):
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value max_execution_time 1000
php_value max_input_time 1000
php_value memory_limit 64M


And for php.ini this(again change to your liking):
upload_max_filesize = 100M
post_max_size = 100M
max_execution_time = 1000
max_input_time = 1000
memory_limit = 64M

If you already have a php.ini file just edit it/change the above values to larger numbers.

If you have a vps or dedicated box you can change the these settings server wide with root access.

This doesn't work for everyone and it could be due to your hosting setup but you can refer to this link I wrote a while back that might also be helpful. If you have dolphin 6.1x you can check your php.ini file/settings by logging in to your admin panel then yoursite.com/admin/phpinfo.php
http://www.dialme.com/index.php?name=News&file=article&sid=3

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 20 Jul 2008

Before reading the rest, please note that this problem was solved by changing the settings at the Ray Suite control panel for Video from 20 to 100. Apparently, one needs to do both. Set the upload_max_filesize, etc PLUS set the Ray configuration. The Ray configurations must set a top cap.

~~~~~~~~~~~~~~~~~~~~~~~

Thank you, Gameutopia. That worked for me. Very helpful info. I am now able to upload videos and play 'em back. One more problem solved.

However, I later tried to edit these settings from 20M to 100M, and the change had no effect. Not sure why this is. I tried logoff and logon to see if it was a setting that stuck with my logon. It made no difference.

I have now tried the upgrade from 20M to 100M on two servers. Neither works. This makes me believe that the settings of 20M from yesterday (that did not work yesterday) took effect at some later point. Is there a lag, of buffer issue with these settings? I am asking this because there are no longer any setting on my system for 20M, and it is complaining about a 20M limit when I try to upload. Is there some way to flush this or restart php? The 20M seems to be in some cache.

I read your article and want to thank you also for authoring it, and sharing it with us. I suggest that others also read it.

I noticed that you did not include the output buffering in you reply. Any reason.

php_value output_buffering on

Finally, in my initial reply to this thread, I thought that lancashiredates was advocating a change that would overwrite the /etc/php.ini file.


Arthur

Quote · 20 Jul 2008

Hey bizwiz

I ommitted the php_value output_buffering on for .htaccess and output_buffering = on for php.ini in this forum post because it's often not necessary. Sometimes I use it and sometimes I don't. I've also used a few other types in the past depending on the host and setup.

I think you mention you have a dedicated server I've read about in some of your other posts. If that being the case you could edit/change you main php.ini file server wide. Basically raising the values for the entire server and all other hosting accounts/sites that would be on the server. If you are using the server just for your sites some often do this. Otherwise the guide I wrote is more for an individual site that sort of over rides the main servers php.ini. Since the majority of people only have shared hosting and do not have access to make changes to the main php.ini file this is almost the only option for them other than to beg their host to increase the main file/settings which most will not do.

If you are making changes to php.ini on your dedicated box and the changes you make don't seem to change. You might consider restarting apache. This is different than a reboot, it's just a restart which sometimes is necessary after making changes to take effect. Usually if you make changes to appache / http.conf file this is often necessary. My guide wouldn't matter because it's local/site change, not changing the entire server.

If you have whm/cpanel dedicated box, there is an area in whm when logged in with root where you can edit/change the main php.ini file with a nice graphical online/user interface that might be easier than the command line. Some like the command line, and some like gui. Command line can be faster if you are comfortable with it. Ocassionaly a gui will time out when doing something huge...like removing another hosting account with a ton of space, and the command line would be a lot less likely.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 21 Jul 2008

Hi gamesutopia. Dummy me.....I totally forgot to restart Apache after making the changes to the /etc/php.ini file.

Appreciate your thorough response. You are correct. I have complete shell access.

I am still learning my way around Dolphin/Ray/Orca. I value the help I am getting from people like you.

The most important thing for me, is that I have now been able to upload the profiles from my BizWiz.com service to BizWiz Networking, and Talent-Direct.com registrants to the CLICKIT.com People service. This should be very encouraging to all others who are adding Dolphin to existing services.

Thanks again.

Arthur

Quote · 21 Jul 2008

Glad you got it sorted out. A dedicated box is always more work than shared, but you always have more access and things you can do that the standard hosting envioronment wont allow. It's fun and a learning process for all.

I'm always here to help with what I can.

For others I am moving the php.ini / .htaccess guide to this address:

http://www.dialme.com/articles/entry/-htaccess-php-ini-Help-Guide

Which is now a full dolphin site in the process of major upgrading.

Or check out the my homepage if you get a chance:

http://www.dialme.com

gametuopia

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 23 Jul 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.