Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6803697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:22:34+00:00 2026-05-26T19:22:34+00:00

i am developing a simple RESTful API on slim framework. I had no problem

  • 0

i am developing a simple RESTful API on slim framework. I had no problem installing the slim framework on my local wamp server and it works just fine, but as I do the same on my website I get an 500 internal server error.

My httaccess file

RewriteEngine On 
RewriteBase /slim/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
php_flag register_globals on

I need help, could someone please enlighten me on how to fix this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:22:35+00:00Added an answer on May 26, 2026 at 7:22 pm

    If your web host is a CPanel one (a pretty good chance), it’s probably using SuPHP in which case any php_flag or php_value directives in .htaccess will trigger a 500 error.

    See http://blog.philipbrown.id.au/2009/08/php-suexec-and-custom-php-ini-files/

    register_globals is a terrible hack and one you definitely should not be using. If the framework requires it, choose a better framework.

    Update

    The syntax on line #40 is using a PHP 5.3 anonymous function. Your web host is probably using a lower PHP version.

    See the advice under Step 3: Define Routes section on this page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a simple RESTful API, and utterly in love with how minimalistic it
I'm developing a RESTful API for a client. The problem is, he's using a
I'm developing a simple 2D game in Java, everything works fine. To find the
I'm developing a simple site for local student contest. I want to implement some
I am developing a simple app for blacberry with eclipse. I have just set
I'm developing a simple 2D-game in OpenGL ES for the iPhone. My problem is
I am developing RESTful API for my application. All getters (that use HTTP GET)
i am developing simple game application just using pan gesture and cgaffinetransform rotate application
Really simple question. I trying to test a Restful webservice that I am developing,
I am new to php and the yii framework. I have started developing simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.