Title: Server Error: 500
Last modified: August 31, 2016

---

# Server Error: 500

 *  Resolved [ShadowMan](https://wordpress.org/support/users/rcanpahali/)
 * (@rcanpahali)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/)
 * Hello, my website start to show this error code: Server Error 500. I searched
   and tryed a few tricks for fixing my website but it still same 🙁
 * Can someone help me please ?
 * -I’ve set the memory limit to 96mb.
    -Renamed my plugings and theme folder.(example:
   plugings_old, mytheme_old) -Checked file and folder permissions. (Not all, but
   its looking OK.) -Deleted .htaccess file.
 * But it still same, please help me guys.

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Thread Starter [ShadowMan](https://wordpress.org/support/users/rcanpahali/)
 * (@rcanpahali)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953147)
 * I forget to add my log files, here it is:
 *     ```
       [17-Jan-2016 12:14:28 UTC] PHP Parse error:  syntax error, unexpected 'MEMORY_LIMIT’' (T_STRING) in /home/****/public_html/wp-config.php on line 23
       [17-Jan-2016 12:17:27 UTC] PHP Parse error:  syntax error, unexpected end of file in /home/****/public_html/wp-includes/random_compat/random_bytes_dev_urandom.php on line 123
       ```
   
 *  [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953150)
 * The errors that you have provided are a syntax error in your wp-config.php file.
   It looks like it may be a encoding error possibility.
 * Have you added anything to the wp-config file?
 * Possible solution
    in wp-config.php look for the line that have ini_set(‘MEMORY_LIMIT’,
   some value). You may have to replace the ” ‘ ” (single quotes) with new ones.
   There may be a encoding issue with the single quotes.
 *  Thread Starter [ShadowMan](https://wordpress.org/support/users/rcanpahali/)
 * (@rcanpahali)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953152)
 * Thanks for your reply my friend, I double-checked my config.php file, everything
   seems OK, also here:
 * [removed wp-config]
 *  [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953157)
 * Welp, I think I see your issue. It does look like the file was edited (a key 
   piece of information to the puzzle for what caused the error). “WP_MEMORY_LIMIT”
   should be a define() instead of ini_set().
 * ini_set adds content to the server environment and not PHP. The issue would be
   that WP_MEMOERY_LIMIT is not a server config thus causing the server to throw
   an error.
 * Replace the ini_set() with `define( 'WP_MEMORY_LIMIT', '96M' );`. Check out [https://codex.wordpress.org/Editing_wp-config.php](https://codex.wordpress.org/Editing_wp-config.php)
   for more information.
 *  Thread Starter [ShadowMan](https://wordpress.org/support/users/rcanpahali/)
 * (@rcanpahali)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953160)
 * I think there is no mistake in my config.php file, It seem okey in Notepad++ 
   editor. All php codes are colored/closed. Now I’m trying to reach my php.ini 
   file, maybe I can edit memory limit from there.
 * What about second log error ? :/
 *  Thread Starter [ShadowMan](https://wordpress.org/support/users/rcanpahali/)
 * (@rcanpahali)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953163)
 * In my user.ini file, memory limit is already assigned as 256m :S
 * Note: Sorry for floodig 🙁
 *  [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953164)
 * The second error may be due to the first one. The error `PHP Parse error:` is
   a syntax error; meaning that there is something wrong with the code. Sometimes
   the error messages are not correct about the location but it is correct that 
   there is some issues.
 *  Thread Starter [ShadowMan](https://wordpress.org/support/users/rcanpahali/)
 * (@rcanpahali)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953165)
 * Bro, this issue really bother me 🙁
    Another advice for me?
 * website: canpahali.com.tr
 *  [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953167)
 * Without knowing what you have changed, I am not sure anyone here can help you.
   Have you made the changes to the wp-config.php file as suggested? if so, what
   does the server error log say now?
 *  Thread Starter [ShadowMan](https://wordpress.org/support/users/rcanpahali/)
 * (@rcanpahali)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953177)
 * Yes, I changed my wp-config file as you suggest to me.
 * I finished configuration of website a few week ago. Everything was goin well 
   and I realized that error kick in. Maybe some plugins or WP version updated automatically
   and cause this problem.
 * I set the error_log file as visible, can you analyze it please ? My syntax problem
   was started by itself, because there is no action between 19-Dec-2015 and 07-
   Jan-2016.
 * Here my error_log: [removed]
    Please delete link after you look. Thank you again…——————————-**
   UPDATE:** I’ve recieved a mail from my hosting firm, they said “/wp-includes/
   random_compat/random_bytes_dev_urandom.php” was updated and fixed.
 * Now Im getting white page in my website. Here is another issue for us 😀
 *  Thread Starter [ShadowMan](https://wordpress.org/support/users/rcanpahali/)
 * (@rcanpahali)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953196)
 * Problem solved.
 * My wordpress system automatically updated to last version, I don’t know why but
   some of files was not complete. My hosting firm replaced “random_bytes_dev_urandom.
   php” file with It’s new version, error has gone. This is why Im getting Server
   Error: 500.
 * Thanks for your help Justin, I’ve learned so much things today.
 *  [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953197)
 * Glad you got it working again.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Server Error: 500’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 2 participants
 * Last reply from: [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/server-error-500-need-help-immediately/#post-6953197)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
