Hosting used in my case: Krystal
WordPress Version: 4.8.1
500 Internal Server Error or HTTP Error 500 can be easily solved on a fresh install. If you are activating WooCommerce and you are receiving HTTP Error 500, error this may be due to unsupported PHP Version. Follow these simple steps:
Increase .htaccess memory limit
- Go to your cPanel, access File Manager.
- Locate your public_html and or your wordpress installation.
- In the right top hand corner click on Settings.
- Tick Show Hidden Files (dotfiles) and Save.
- Now you should see your .htaccess file if not, create one by writing .htaccess as the name.
- Edit the .htaccess by right clicking and clicking on Edit.
- Paste the following codes inside that file. Then save it.
php_value memory_limit 256
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 1000
Increase memory limit with php.in
Following the same procedure as above add the following in php.ini
memory_limit = 256M
upload_max_size = 64M
post_max_size = 64M
upload_max_filesize = 64M
max_execution_time = 300
max_input_time = 1000
Final step, make sure you are running php 7.0 or above.
- In your cPanel, access Select PHP Version
- If your current php version is below 7.0 change it to 7.0 or above (ie 7.1)
- Now, click on Switch To PHP Options
- You will see the max_execution_time parameters. Double click on the number and change it to preferably 300.
- Now save it and WooCommerce should now work.
If you need any help, email our web design team email@example.com or call London wordpress team on 0203 813 3284. We are more than happy to help you! Good luck!