🔵
Atlas Docs
  • Welcome
  • Requirements
    • Server Requirements
    • Server Settings
    • Backup & Restore Data
    • What is FTP?
    • What is cPanel?
  • Getting Started
    • Theme Installation
    • Plugins Installation
    • Import Demos
    • Theme Update
  • Theme Usage
    • Block & Sidebar Builder
    • Header Settings
    • Footer Settings
    • Blog & Archive Page
    • Search Page
    • Related Post
    • Mega Menu
    • OffCanvas & Mobile Menu
    • Skin Colors
    • Typography
  • Page & Elementor
    • Create a Page
    • Create Elementor Homepage
    • Set a Homepage
    • Elementor Container Settings
    • Elementor Container Sticky
  • Post/Article
    • Create Post
    • Post Settings
    • Set Featured Image
    • Create Video Post
    • Create Audio Post
    • Create Gallery Post
  • How To's & Others
    • Settings the Search Popup?
    • Change The Content & Sidebar Width?
    • Change Site Width?
    • Create Blog Page
    • Add Lightbox to Content Images
    • Add Category Image
    • Mailchimp Form Structure
    • Author Info Box
    • How Translate Theme?
    • Optimizing Site Speed
    • Features Images Problem
    • Are You Sure You Want to Do This?
    • How to Upload Favicon?
  • Help
    • Troubleshooting
    • Suggest Documentation
Powered by GitBook
On this page
  • Configuring the settings in php.ini and .user.ini files
  • Configuring the settings in .htaccess file
  • Troubleshooting
  1. Requirements

Server Settings

PreviousServer RequirementsNextBackup & Restore Data

Last updated 1 year ago

Configuring server settings requires some technical knowledge. A site owner needs to be familiar with , files and using FTP softwares.

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

Configuring the settings in php.ini and .user.ini files

PHP configuration file (php.ini) is a special file which holds the settings when PHP runs. In almost of the servers, we can override the default configuration by creating a php.ini in the root directory (public_html).

  1. Create an empty file called php.ini in the root directory of your website where WordPress is installed. Note: You can access to website directory thought Cpanel or using FTP softwares. In most of the servers, it’s in the public_html folder.

  2. Add following codes in the file:

    memory_limit=128M
    post_max_size=16M
    upload_max_filesize=16M
    max_input_vars=10000
    max_execution_time = 60
  3. Check your server settings as explained in the previous article to make sure changes are applied. If you see no change, try to rename php.ini file to .user.ini. It’s possible your server does not allow overriding server settings.

Note: To increase the memory limit, you can also add the code below to your WordPress wp-config.php :

define(‘WP_MEMORY_LIMIT’, ‘128M’);

Configuring the settings in .htaccess file

If the above method cannot work, you can try to config via .htaccess file.

.htaccess is a configuration file for the web servers running Apache Web Server software. You can also use this file to configure some of the server settings.

To add the settings in the file:

  1. Open .htaccess file in an editor. You can find the file in the root directory of WordPress installation. Note: You can access to website directory thought Cpanel or using FTP softwares. In most of the servers, it’s in the public_html folder.

  2. add the code below at the end of the file:

    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 16M
    php_value max_input_vars 10000
    php_value max_execution_time = 60
  3. Check your server settings as explained in the previous article to make sure changes are applied.

Troubleshooting

If the settings do not apply Please follow the below steps:

  • Contact Host Provider: If you can not find the php.ini or .htaccess file or the changes don’t work as expected, It’s best to contact the host provider. They will happy to help you with these issues.

  • Contact Support: please contact us via Themeforest Support

php.ini
.user.ini