Tutorial
How to increase your Boonex Dolphin and Ray file upload size, limits, times, etc. using .htaccess or php.ini associated with ray music uploads, ray mp3 uploads, and ray video uploads.

This information assumes you have already successfully increased the file upload size limits in your dolphin admin panel in each of the ray suite widgets.


This is a potential/possible fix for a "I/O Error", "I/O File Error", "File Upload Error", "Undefined", "File Exeeds 2 MB Limit", "Dolphin Upload Video Error", "Dolphin Uploading File Error", or similar message you receive after atempting to upload a larger Ray Audio or Video file.

This is not a guarantee fix and the problem could be due to something entirely different. There is no harm increasing these values at any rate. This is certainly worth a try, it's fairly easy and not to time consuming.

This is a totally FREE Guide no site to join or any of that so please be kind with the comments. If this doesn't solve or fix your problem, it's possible you could have other issues. However this is totally FREE and difinately worth trying.

Remember: I'm not charging anything for this, although this is nothing fancy it does take me some time to put this together. I'm not doing this for my benefit as I already know how to do this. I am sharing what I have learned to hopefully help and benefit at least a few others.

The very first thing you need to do is determine if php on your server/hosting api is apache module or cgi. This is very important in determining whether we need to use a .htaccess file or php.ini file to increase the values. If we do not know or figure this out first we will either get a big nasty 500 internal server error or the changes we atempt to make will do absolutely no good...values wont change at all.

So first lets find out whether we have apache or cgi.

Download the zip file and extract the contents. phpinfo.php Then upload it to your main directory/folder on your site. Such as: yoursite.com/phpinfo.php

Note: 6.1.x Dolphin users!! You DO NOT need to download or create this file. It has been included in your admin panel folder by Boonex already.

To access the included phpinfo.php simply log into your Dolphin Admin Panel, then enter into your browser: http://www.yoursite.com/admin/phpinfo.php (replace yoursite.com with your actual site!!).

If you try to access the admin phpinfo file directly before logging into your Dolphin Admin Panel, you will be prompted for login/pass. Which will be your actual Dolphin admin/pass details.

Dolphin users with versions prior to 6.1 (6.0.0005/6.0.0004/6.0.0003/6.0.0002/and under) will need to create a phpinfo.php file as it wasn't included in these releases.

--This file is simply 1 line of code that will display all the information we need in determining this and it will later aid us in verifying whether the changes we made were successful.

Now that you have the file extracted and uploaded to your site. We need to visit the page. Simply open up your favorite web browser(internet explorer, firefox, etc) and type the address to the page you just uploaded: http://www.yoursite.com/phpinfo.php

You should see a fairly large page of information. Don't be alarmed most of this we do not need to know.

Find in the left column "Server API" usually the 4th row down, but could vary slightly.

Now to the Right of "Server API" you should see "Apache", "CGI", FastCGI" or similar such as:
Server API Apache
Server API CGI
Server API FastCGI

This is very important make a note and remember what this says.

If your "Server API" Says Apache then jump to this guide to using .htaccess
If your "Server API" Says CGI, FastCGI, Or has CGI or reference to it jump to this guide using php.ini

See Examples Below:

Apache API

CGI API









Apache API .htaccess Guide Section:


Now that we have determined our "Server API" is Apache lets scroll down the phpinfo.php page and find the following:
max_execution_time 30 30
max_input_time 60 60
post_max_size 8M 8M
upload_max_filesize 2M 2M

You may or may not see depending on how your host is setup:
memory_limit 8M 8M

Some optional values we will consider changing as well:
output_buffering no value no value
mysql.connect_timeout 60 60
default_socket_timeout 60 60

Note: The numbers will vary in size depending on what your host uses.

Default php Values

Your numbers and values may differ depening on what your host has set these limits to. The above are standard defaults. max_execution_time 30 refers to 30 seconds, upload_max_filesize 8M refers to 8 megabytes, not to be confused with upload_max_filesize 2M.

Before proceding any further please be sure to make a backup of your .htaccess file. (yoursite.com/.htaccess)

Now to increase these values we need to open up the file for editing .htaccess in our main directory: yoursite.com/.htaccess

Depending on what you have enabled you may see a few codes in this file or you may see a lot. We don't want to overwrite this file, we just want to add to it.

Dolphin 6.0x standard .htacess file looks like:
Dolphin 6.0x .htaccess



We are going to add the following to the .htaccess file:
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value output_buffering on
php_value max_execution_time 1000
php_value max_input_time 1000
php_value memory_limit 64M

Do Not Copy this from this page. Open this link and copy it from this htacces.txt file instead.

So it might now look something like:
Dolphin 6.0x .htaccess

Dolphin 6.1x .htacces might look something like:
Dolphin 6.1 .htaccess

The values can be altered to your liking such as 100M refers to 100 megabytes. If you want 200 megabytes change to 200M instead like so:
php_value upload_max_filesize 200M
php_value post_max_size 200M
php_value output_buffering on
php_value max_execution_time 1000
php_value max_input_time 1000
php_value memory_limit 64M
You get the idea.

Now save the changes to yoursite.com/.htaccess and make sure you upload the changes back to your server/hosting account.

Now lets see if our changes worked.

If your browser isn't still open to yoursite.com/phpinfo.php go back there now. If it's still open be sure to refresh/reload the page.
Be aware that the values in the second column "Master Value" may not change. These values refer to the master php.ini your host has set. The "Local Value" column refers to your local site and these we want to verify the changes for certain.

And boom!! Those numbers are more like what we want to see.
Php Changed Values

If all is well and you have successfully made the changes after refreshing you should see in the "Local Value" column the numbers should have changed, such as the upload_max_filesize should now be 100M. Check the other values you changed above and make sure they have changed too.

Congradulations!! You just increased your upload size limits and times often necessary for ray music, mp3, and video uploads.

It is also important that you include the php_value and the Directive in the left column are entered exactally as you see them. If they are all lowercase, be sure to use all lowercase. If not it often wont work. This means if you see upload_max_filesize be sure you enter it exactally as:
Acceptabble
php_value upload_max_filesize 100M

Not Acceptable:
php_value Upload_max_filesize 100M
or
php_value upload_max_filesize 100m
Etc.

To verify whether the changes you just made will actually work for music, mp3, or video uploads you should close your web browser/browsers completely...all windows and tabs. Then re-start your web browser and go back to your site. Login as a member and try a test upload. At the very least you should refresh/reload the page in your web browser before atempting a test upload.

If you verified the number increases, and you have also increased the values in your admin panel ray suite widgets if all is well you should have sucessfully uploaded a larger audio/video file.

Be patient and allow the spinning disk to finish before navigating to a new page.

If you do not see the file you may have to approve it. If you do not want to approve each file in your admin panel, be sure to enable auto-approve.

If you are confident that you followed these instructions and successfully made the increases it is possible you have other or additional issues. This could be related to a number of things, but many times can be attributed to the way your host is setup. It's possible something like ffmpeg.exe that process a video is not allowed to execute, or maybe something else entirely different.

If you receive a different type of error after upload or anything different than before make a note of this and try searching the forums or posting a question. Be sure to include your dolphin/ray version and what you have done so far to try to fix the problem. This can be very helpful when asking for help.








CGI/FastCGI API php.ini Guide Section:


Now that we have determined our "Sever API" is CGI, FastCGI or CGI related lets scroll down the phpinfo.php page and find the following:
max_execution_time 30 30
max_input_time 60 60
post_max_size 8M 8M
upload_max_filesize 2M 2M

You may or may not see depending on how your host is setup:
memory_limit 8M 8M

Some optional values we will consider changing as well:
output_buffering no value no value
mysql.connect_timeout 60 60
default_socket_timeout 60 60

Note: The numbers will vary in size depending on what your host uses.

Php Default Values

Your numbers and values may differ depening on what your host has set these limits to. The above are standard defaults. max_execution_time 30 refers to 30 seconds, upload_max_filesize 8M refers to 8 megabytes, not to be confused with upload_max_filesize 2M.

To increase the values we will need a php.ini file. We can ask our host for a copy of the original which will be rather large. We can then find the directives above such as upload_max_filesize and change them to a larger number.

Or we can make our own simple php.ini file with just the ones we need. The others will still be there and default to the host company's settings. This is the fast, simple and recommended way.

First we need to check our main home directory/folder and cgi-bin directory/folder to see if there happens to be a php.ini file there already. If so make the necessary changes to the directives.

We are going to assume that you don't have one and show you how to create one to increase the values.

For this we are going to use a simple text editor and notepad actually works great.
You can download a pre-made php.ini zip file. Simply extract and upload to your site.

Or to create your own:

Open notepad and add the following:
upload_max_filesize = 100M
post_max_size = 100M
output_buffering = on
max_execution_time = 1000
max_input_time = 1000
memory_limit = 64M

As Pictured:
php.ini file with notepad

Simply save the file to your desktop or other and name the file php.ini as pictured:
Save as php.ini file

Now assuming you did check to make sure you don't already have a php.ini file in your home directory yoursite.com/php.ini

Simply upload the php.ini file you just created to your home directory yoursite.com/php.ini

Occassionally this needs to go in your cgi-bin directory instead you can ask your host or put it there too.

Now lets see if our changes worked.

If your browser isn't still open to yoursite.com/phpinfo.php go back there now. If it's still open be sure to refresh/reload the page.

And boom!! Those numbers are more like what we want to see.

Php Values Increased

If all is well and you have successfully made the changes after refreshing you should see in the "Local Value" column the numbers should have changed, such as the upload_max_filesize should now be 100M. Check the other values you changed above and make sure they have changed too. "Master Value" column may or may not change.

Congradulations!! You just increased your upload size limits and times often necessary for ray music, mp3, and video uploads.

To verify whether the changes you just made will actually work for music, mp3, or video uploads you should close your web browser/browsers completely...all windows and tabs. Then re-start your web browser and go back to your site. Login as a member and try a test upload. At the very least you should refresh/reload the page in your web browser before atempting a test upload.

If you verified the number increases, and you have also increased the values in your admin panel ray suite widgets if all is well you should have sucessfully uploaded a larger audio/video file.

Be patient and allow the spinning disk to finish before navigating to a new page.

If you do not see the file you may have to approve it. If you do not want to approve each file in your admin panel, be sure to enable auto-approve.

If you are confident that you followed these instructions and successfully made the increases it is possible you have other or additional issues. This could be related to a number of things, but many times can be attributed to the way your host is setup. It's possible something like ffmpeg.exe that process a video is not allowed to execute, or maybe something else entirely different.

If you receive a different type of error after upload or anything different than before make a note of this and try searching the forums or posting a question. Be sure to include your dolphin/ray version and what you have done so far to try to fix the problem. This can be very helpful when asking for help.



Additional:
This is provided for FREE as is. It may not work for everyone. If it doesn't do anything or help you please remember this is FREE, and no charges involved so keep this in mind if you post any comments. Positive comments encourage me to create additional FREE guides, information, and products that may benefit you or others. Negative comments discourages myself and others from providing additional FREE guides, information, and products in the future.
 
Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Sponsored Links
Recommend