On my GoDaddy VPS, php.ini is in /usr/local/lib/. My changes to this file include:
upload_max_filesize = 128M
post_max_size = 128M
memory_limit = 256M
max_input_time from 200
max_execution_time from 900
Add max_input_vars = 1000
I also add the recommended lines for Opcache. Mine are:
==================
[opcache]
opcache.enable = 1
opcache.memory_consumption = 128
opcache.max_accelerated_files = 4000
opcache.revalidate_freq = 60
; Required for Moodle
opcache.use_cwd = 1
opcache.validate_timestamps = 1
opcache.save_comments = 1
opcache.enable_file_override = 0
; If something does not work in Moodle
;opcache.revalidate_path = 1 ; May fix problems with include paths
; Experimental for Moodle 2.6 and later
;opcache.fast_shutdown = 1
;opcache.enable_cli = 1 ; Speeds up CLI cron
;opcache.load_comments = 0 ; May lower memory use, might not be compatible with add-ons and other apps.
; Need to specify this
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20121212/opcache.so
================
I used "Easy Apache" in WHM to pick the latest version of php and mySQL. Also in Easy Apache, I turned on the following components: zip, xmlrpc, soap, mysql improved, mbstring, intl, gd.
I also modified the my.cnf file, which is for mySQL. You probably don't need to do this, but my file is attached.
Here is my current configuration: Moodle 2.6.2 (Build: 20140310), PHP Version 5.5.7, MySQL 5.5.34, CENTOS 6.4, Apache 2.2.26.
Hope all of this helps you.