Want to optimize your PHP environment? In this tutorial, we’ll walk you through how to edit your php.ini and adjust your php ini settings and php-fpm settings step by step. Whether you're running WordPress, Joomla, or any PHP-based site, knowing how to config PHP properly is key to better performance and compatibility.
Join Hajro from Contabo as he explains where to find your PHP config files, how to modify critical values like memory_limit, upload_max_filesize, and max_execution_time, and how to apply changes correctly using simple terminal commands.
Learn how to locate your PHP version, navigate and edit php.ini files using nano, and verify your setup using a custom info.php file. Whether you use Apache or NGINX with PHP-FPM, this guide is for you.
🕐 Timeline:
0:00 - 0:32 Introduction
0:32 - 1:20 Where to find php.ini and php-fpm config files
1:20 - 1:50 Important php.ini settings explained (memory limit, upload size, etc.)
1:50 - 2:31 How to edit and apply changes to php.ini
2:31 - 2:52 Testing your configuration with a PHP info file
2:52 - 3:21 Conclusion
Key Topics Covered:
What php.ini is and how it controls PHP behavior
Difference between standard php.ini and php-fpm settings
How to locate and edit the php.ini file on different servers
Key PHP configuration values (e.g., memory limit, file upload size, execution time)
How to apply and verify changes via command line and browser
How to use info.php to inspect current PHP settings
Important Notes:
Edit PHP settings via the php.ini file based on your server setup (Apache, PHP-FPM, CLI)
Check your PHP version first with php -v to find the right config file
Tweak important settings like memory_limit, upload_max_filesize, and max_execution_time
Restart PHP and web server after changes (php-fpm or apache2) for them to take effect
Use an info.php file to confirm your settings are active in the browser
Search quickly in nano with CTRL+W to locate and update specific settings
Visit our website: https://contabo.com
Support Center: https://contabo.com/support
#phpini #phpfpm #configphp #phpsettings #ContaboTutorials #WebHosting