Configuring Server Settings

Configuring server settings is a critical aspect of optimizing your website’s performance, and while it may demand some technical knowledge, this guide aims to simplify the process. If you’re not comfortable with technical configurations, don’t hesitate to contact your hosting provider for assistance.

Note: If you’re not a technical user, Please contact your host provider to configure the settings for you.

1. PHP Configuration: php.ini and .user.ini

The PHP configuration file (php.ini) is instrumental in dictating how PHP operates on your server. Here’s a step-by-step guide to making adjustments:

a. Locate the php.ini File:

  • Access your hosting account.
  • Navigate to the root directory or public_html folder.

b. Edit php.ini:

  • Open the php.ini file using a text editor (e.g., Notepad, VSCode).
  • Adjust settings like memory_limit, post_max_size, upload_max_filesize, max_input_vars, and max_execution_time.
  • Save the changes and upload the file back to the server.

c. Using .user.ini for User-Specific Overrides:

  • Create a file named .user.ini in your website’s root directory.
  • Add overrides for specific PHP settings.
  • Save the file.

Note: If you encounter issues, you can also consider adding the code define('WP_MEMORY_LIMIT', '128M'); to your WordPress wp-config.php file.

2. Web Server Configuration: .htaccess File

If modifying php.ini doesn’t yield the desired results, you can try configuring settings via the .htaccess file:

a. Locate the .htaccess File:

  • Navigate to your website’s root directory.

b. Edit .htaccess:

  • Open the .htaccess file in a text editor.
  • Add settings like

memory_limit=128M
post_max_size=16M
upload_max_filesize=16M
max_input_vars=40000
max_execution_time = 60

  • Save the changes and upload the file back to the server.

Troubleshooting:

If the settings do not take effect, follow these steps:

Contact Host Provider:

  • If you can’t find the php.ini or .htaccess file or the changes don’t work as expected, contact your hosting provider. They will assist you with these issues.

Contact Support:

  • If further assistance is needed, please contact us via Themeforest Support.

By following these steps, you can optimize your server settings for improved website performance. Remember, it’s always okay to seek assistance from your hosting provider or support channels when needed.