PBX GUI - Error When Uploading the Backup file from One PBX to another PBX

This document help you in restore of backup file, where the backup files size is more than 300 MB

Note - 'post_max_size integer' sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. Generally speaking, memory_limit should be larger than post_max_size. When an integer is used, the value is measured in bytes.

However, Allow unlimited post size by setting post_max_size to 0.

 
By default the PHP has the limitation of uploading file size which is limited to Max 256 MB
If you have the backup of more the 256 MB and when your try to upload as shown below

Then it will not upload the file and it will prompt an error as shown below

 

In this case the only way to upload and restore the backup is to increase the upload size limit of the PHP
To change the limit follow the below steps

  1. SSH to the FreePBX System

  2. Navigate to the below path and edit the below file

       vim /etc/php.ini
 

Search for the keyword upload_max_filesize and change the size as per the backup file size you have as shown below, in my test example, file size had was 300 MB so changed that to 512 MB

 

 

Save the file by pressing esc button and typing: wq as shown below

 

Once saved you need to restart the http service for the changes to be effective as shown below

After this you will be able to upload and it will prompt for the restore of the files as shown below