php_ini
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| php_ini [2015/04/26 14:31] – luke7858 | php_ini [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | === php.ini | + | ==== IMPORTANT ==== |
| - | Php.ini file can be found: | + | Before making ANY changes, remember to back up the php.ini file: |
| <sxh bash> | <sxh bash> | ||
| - | vim / | + | cp / |
| - | </ | + | |
| - | **memory_limit** is the maximum amount of memory in bytes that a script is allowed to allocate. | + | |
| - | <sxh bash> | + | |
| - | memory_limit = 128M | + | |
| </ | </ | ||
| + | Note: If the box is using php-fpm you will need to locate the php.ini file for this. | ||
| + | \\ | ||
| + | Hint: rpm -qc packagename - locates the configuration files for a package | ||
| + | \\ | ||
| + | \\ | ||
| \\ | \\ | ||
| **upload_max_filesize** is the maximum size of an uploaded file | **upload_max_filesize** is the maximum size of an uploaded file | ||
| Line 17: | Line 18: | ||
| post_max_size = 8M | post_max_size = 8M | ||
| </ | </ | ||
| + | == Reload Configuration == | ||
| Once you have made changes to the file you will need to reload apache for them to take effect: | Once you have made changes to the file you will need to reload apache for them to take effect: | ||
| + | |||
| + | \\ | ||
| + | \\ | ||
| + | === php.ini === | ||
| + | Php.ini file can be found: | ||
| <sxh bash> | <sxh bash> | ||
| - | service httpd graceful | + | vim / |
| </ | </ | ||
| + | **memory_limit** is the maximum amount of memory in bytes that a script is allowed to allocate. | ||
| + | <sxh bash> | ||
| + | memory_limit = 128M | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | reference: https:// | ||
php_ini.1430058711.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
