All posts tagged php.ini
If you need to make modifications to php.ini in your VPS, there are a couple of ways you can find out where it is located: In the command line, run the following command: php -i | grep php.ini The following line will be displayed, containing the path of the php.ini . . . Read more
The php.ini files are not available to shared hosting users, however, you can overwrite any of the directives using the .htaccess file. Directions to change PHP configuration directives by using Apache’s .htaccess files: http://www.php.net/manual/en/configuration.changes.php http://httpd.apache.org/docs/1.3/howto/htaccess.html Reditect generator: http://www.htaccessredirect.net/
To increase the Max upload size for your php applications add this to your .htaccess file:
|
<IfModule mod_php5.c> php_value upload_max_filesize 25M php_value post_max_size 25M php_value max_execution_time 800 </IfModule> |
NOTE: 25 M is 25 megabytes and 800 is 800 seconds.