One of the most common headaches for PlayTube owners is the dreaded upload failure: users try to publish a video and hit a wall with errors like "The uploaded file exceeds the maximum allowed size" or an upload that silently freezes at 99%. This almost always comes down to PHP limits and a couple of PlayTube settings that need adjusting.

Let's walk through exactly how to raise your upload ceiling so your creators can post longer, higher-quality videos without frustration.

Why PlayTube Uploads Fail

PlayTube is a PHP-based video sharing script, so it relies on your server's PHP configuration to accept and process file uploads. When an upload fails, one of these values is usually too low:

  • upload_max_filesize — the largest single file PHP will accept.
  • post_max_size — the total size of a POST request (must be equal to or larger than the upload size).
  • max_execution_time — how long a script can run before timing out.
  • max_input_time — how long PHP waits while receiving upload data.
  • memory_limit — RAM available for processing.

On top of PHP, PlayTube has its own admin setting for maximum video size, and FFmpeg needs to be available to convert uploaded videos.

Pro Tip: Always set post_max_size slightly higher than upload_max_filesize. If you want a 2 GB upload limit, set upload_max_filesize = 2048M and post_max_size = 2100M.

Step 1: Increase PHP Limits

You have two easy ways to do this depending on your control panel.

In DirectAdmin

  1. Log in to DirectAdmin.
  2. Under the Advanced Features section, click Select PHP Version (or PHP Selector).
  3. Click the Options tab.
  4. Locate and edit these values:
    • upload_max_filesize2048M
    • post_max_size2100M
    • max_execution_time600
    • max_input_time600
    • memory_limit512M
  5. Save the changes.

In cPanel

  1. Log in to cPanel.
  2. In the Software section, click Select PHP Version (or MultiPHP INI Editor).
  3. Choose your domain, then switch to the Options / Editor mode.
  4. Set the same values listed above.
  5. Click Apply or Save.

Step 2: Edit via .user.ini or php.ini (Alternative Method)

If you prefer editing files directly, you can create or edit a .user.ini file in your PlayTube root directory (usually public_html).

Opening File Manager

DirectAdmin: Go to System Info & Files → File Manager, then navigate to public_html.

cPanel: Open Files → File Manager, then open public_html.

Create a file named .user.ini (or edit the existing one) and add:

upload_max_filesize = 2048M
post_max_size = 2100M
max_execution_time = 600
max_input_time = 600
memory_limit = 512M
Note: Changes in .user.ini may take a few minutes to apply because of PHP's caching. If nothing changes immediately, wait 5 minutes and retry.

Step 3: Update the PlayTube Admin Panel Setting

PHP now allows big uploads, but PlayTube enforces its own internal cap. Update it:

  1. Log in to your PlayTube Admin Panel.
  2. Go to Settings → Video Settings (or Configuration → Upload Settings depending on your version).
  3. Find Maximum Upload Size and set it to match your PHP limit (e.g., 2048 MB).
  4. Save the settings.

Some PlayTube versions also store this value in the database. If the admin panel doesn't expose it, you can check the config file described next.

Step 4: Verify FFmpeg Is Working

PlayTube uses FFmpeg to process and convert uploaded videos. If FFmpeg is missing or misconfigured, large videos may upload but fail to convert or thumbnail. Check your PlayTube configuration file, typically config.php or an entry in the admin panel, for the FFmpeg path:

define('FFMPEG_BINARY_FILE', '/usr/bin/ffmpeg');
define('FFPROBE_BINARY_FILE', '/usr/bin/ffprobe');

On Hostiso servers with the right environment, FFmpeg is available and ready to use. If you're unsure of the correct path, our 24/7 support team can confirm it for you in seconds.

Caution: Before editing any config file, download a backup copy first. A single misplaced character can take your site offline.

Step 5: Confirm Web Server Limits

Since Hostiso runs LiteSpeed Web Server, the PHP limits you set above are respected automatically, and LiteSpeed handles large uploads efficiently without extra tuning. On some other stacks you'd need to edit Nginx client_max_body_size — but with LiteSpeed the PHP values control everything, which keeps this simple.

Combined with our NVMe storage, video files write and convert far faster than on traditional SATA drives, so processing big uploads won't drag your site down.

Step 6: Test Your New Limit

Log in as a regular user (or a test account) and upload a video close to your new limit. If it processes and plays back correctly, you're done. If it still fails:

  • Double-check that post_max_size is larger than upload_max_filesize.
  • Confirm the PlayTube admin setting matches the PHP limit.
  • Look at your PHP error logs (File Manager → error_log) for clues.
  • Make sure your account has enough disk space and resources under CloudLinux LVE.

A Note on Resources for Large Video Sites

Video platforms are resource-hungry — every upload triggers CPU-intensive conversion. If you're running a busy PlayTube site with many concurrent uploads, a Shared Hosting plan works well for smaller communities, while a Cloud VPS gives you dedicated CPU and RAM headroom for heavy transcoding. Our CloudLinux LVE isolation also keeps your account stable even when uploads spike.

Frequently Asked Questions

My upload still fails after raising the limits. What now?

Check that all three values (upload_max_filesize, post_max_size, and memory_limit) were saved correctly. Also verify the PlayTube admin panel limit and check error_log for a specific message. Most stubborn cases are either a mismatched post_max_size or a missing FFmpeg binary.

Do I need to restart anything after changing PHP settings?

Not usually. With LiteSpeed on Hostiso, PHP setting changes made through the panel apply automatically. If you edited .user.ini manually, allow a few minutes for the cache to refresh.

How can I check my current PHP upload limits?

Create a file called info.php in public_html with the line <?php phpinfo(); ?>, open it in your browser, and search for upload_max_filesize. Delete the file afterward for security.