500 Internal Server Error
Latest update: April 12, 2019 | Reading time: 3 to 4 minutes
In most cases, “500 internal server error” is a native Apache server error andis related to poor memory resources. The theme requires a minimum amount of available memory to PHP to work. This is 128 Mb, which is standard on most hosting packages nowadays. If your hosting plan provides only 64 Mb or even less, request for an upgrade.
If you manage to log in to WordPress dashboard and, you have installed and activated our theme, navigate to Theme Options > Help > System Info and, check the PHP configuration section. Lower on this tab, if the available memory is insufficient for running the theme, a message will be displayed in red color.
On a Paid Plan
If you are in a paid plan, contact your hosting provider and request for an upgrade now. It’s free and takes no time. You need at least128mb for the theme to work properly. Yet, if you are planning to add more or resource hungry plugins ask for 256mb. Don’t forget: this is the memory available to PHP.
On a Self Maintained Installation
If you can access the files of the installation yourself, you can change this value. Log in via FTP account and locate the .htaccess file. Try adding this line:
php_value memory_limit 128M;
and save the file. Now, check your website to see if the memory has been upgraded.
On a Local Server
Alternatively, if you have access to the physical files of the server (like if you are running the website on a local server), you can apply a change to the php.ini file.
- First, you need to find the php.ini . If you are using Linux, you can simply run the command “php -i | grep Loaded Configuration File” to find it. If you have a server running under Microsoft Windows, you can find it in the PHP install directory.
- Edit php.ini and search for “memory_limit”; now change the value of it. If no “memory_limit” found, add the following line at the end of php.ini and Save the file.
memory_limit = 128M ; /* Change the 128M to your needs *
Now, restart Apache. Use follow command to restart apache:httpd restart
Note that, if you are planning to install additional plugins we recommend upgrading to 256 Mb of memory, for ensuring you (and the visitors of the website) will enjoy an uninterrupted experience throughout every stage of the development and forward.