Title: Server Internal Error ;(
Last modified: August 20, 2016

---

# Server Internal Error ;(

 *  [nedry](https://wordpress.org/support/users/nedry/)
 * (@nedry)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/server-internal-error/)
 * Hello,
    For 4 hours I’ve been trying to figure out solution to my problem on 
   my own, but I failed. I have a file ‘gallery.php’ which I use to generate a gallery
   content using AJAX request. Unfortunately when I put whatever kind of php function
   offered by WordPress (like get_posts() etc. I need it to get photos uploaded 
   using wordpress) I get 500 Internal Server Error. And it’s happening with all
   files – when I open index.php directly in my template directory I also get this
   error. I tried changing .htaccess file, it looks like this:
 *     ```
       DirectoryIndex index.php 
   
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
       Options All -Indexes
       #AddType x-mapp-php5 .php
       #AddHandler x-mapp-php5 .php
       # END WordPress
       ```
   
 * If you have any ideas what may be going wrong PLEASE help me and save my day 
   and night 🙂

The topic ‘Server Internal Error ;(’ is closed to new replies.

## Tags

 * ["internal server error"](https://wordpress.org/support/topic-tag/internal-server-error/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [nedry](https://wordpress.org/support/users/nedry/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/server-internal-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
