Edit php.ini file of your VPS via SSH

Use vi editor to open php5’s php.ini file at ubuntu or any debian based os:

Root login to your VPS then write the command

To save this change:

Exit without save:

Restart web server to perform the changes: