User Tools

Site Tools


php_ini

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
php_ini [2015/04/26 14:31] luke7858php_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 /etc/php.ini +cp /etc/php.ini{,.back.$(date +"%Y-%m-%d")}
-</sxh> +
-**memory_limit** is the maximum amount of memory in bytes that a script is allowed to allocate. +
-<sxh bash> +
-memory_limit = 128M+
 </sxh> </sxh>
 +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
 </sxh> </sxh>
 +== 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 /etc/php.ini
 </sxh> </sxh>
 +**memory_limit** is the maximum amount of memory in bytes that a script is allowed to allocate.
 +<sxh bash>
 +memory_limit = 128M
 +</sxh>
 +\\
 +\\
 +reference: https://www.devside.net/wamp-server/apache-and-php-limits-and-timeouts
php_ini.1430058711.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki