This guide shows you how to enable file uploads in cPanel by modifying the PHP configuration through the MultiPHP INI Editor, and then verify the change by creating a phpinfo file to confirm the setting is active.
How to do it
-
Step 1: Access MultiPHP INI Editor
Login to cPanel and navigate to the Software section. Click on MultiPHP INI Editor.
-
Step 2: Enable file uploads
Click on Editor mode, then select your domain from the drop-down list. Add this code at the end of your existing configuration:
file_uploads = OnClick Save to save the changes.
-
Step 3: Create a phpinfo file
On the cPanel dashboard, click on File Manager from the FILES section. Navigate to the public_html folder and click on File to create a new file.
In the New File Name textbox, enter a filename with .php extension (for example,
info.php). Click Create New File. -
Step 4: Edit the phpinfo file
Right-click on the newly created
info.phpfile and select Edit. When the character encoding dialogue appears, click Edit to proceed.Add the following code to the file:
<?php phpinfo(); ?>Click Save Changes to save the file.
-
Step 5: Verify the setting
Browse to
http://yourdomain.com/info.php(replace with your actual domain and filename).Navigate to the Core section on the phpinfo page. You should see that file_uploads is set to On for both Local Value and Master Value.