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 6822367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:39:18+00:00 2026-05-26T21:39:18+00:00

i’ve tried several configuration instructions and forum posts but nothing worked for me, I

  • 0

i’ve tried several configuration instructions and forum posts but nothing worked for me, I still get 502-bad gateway errors when I try to access my website.

$config[“index_page”] = “”;

...

$config[“uri_protocol”] = “REQUEST_URI”; // also tried AUTO

My nginx configuration:

server {
    server_name     dev.monitr.io;
    root            /home/monitr/web/dev/www/;
    include         /etc/sites/ci_vhost;
} 

/etc/sites/ci_vhost:

index index.html index.php index.htm;

# set expiration of assets to MAX for caching
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
 expires max;
 log_not_found off;
}

location / {
 # Check if a file exists, or route it to index.php.
 try_files $uri $uri/ @rewrites;
}

location @rewrites {
        if (!-e $request_filename)
        {
            rewrite ^/(.*)$ /index.php/$1 last;
            break;
        }
    }

   location ~ \.php {
        include /etc/nginx/fastcgi_params;

        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
        fastcgi_param SCRIPT_NAME $fastcgi_script_name;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_pass unix:/var/run/php-fastcgi/php-fastcgi.socket;
        fastcgi_index index.php;
} 

kind regards, phillip

  • 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-26T21:39:19+00:00Added an answer on May 26, 2026 at 9:39 pm

    Follow instruction to add dotdeb.org to you apt sources. Dotdeb.org has packages of modern nginx and php.

    1. apt-get update
    2. apt-get install nginx
    3. configure nginx (your previous config is more or less ok, google “nginx php 5.3” manuals)
    4. apt-get install php5-cli php5-common php5-suhosin //suhosin is good for security
    5. apt-get install php5-fpm php5-cgi
    6. /etc/init.d/nginx restart
    7. /etc/init.d/php5-fpm restart
    8. Try your phpinfo script
    9. Install mysql, pear, etc. Don’t forget about some opcode cacher – huge perfomance boost for CI.

    Google “nginx php 5.3” for complete manuals, there are many. Wish you not to compile anything from sources 🙂

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

Sidebar

Related Questions

I know there are already several other posts for this topic, but I've tried
I have tried several things so far, but I haven't had much luck yet.
I've tried several of the solutions that I've found here, but none seem to
Here is what I have. I have tried several things but I can't figure
I've tried several things already, std::stringstream m; m.empty(); m.clear(); both of which don't work.
I have tried several ways to login to a website through java. I have
I really need advice on how to do the following. I have tried several
Okay, this is starting to drive me a little bit nuts. I've tried several
I tried to install Delphi 7 on Vista several times and Vista prevented me
I've tried to do this several times with no luck. After reading this post

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.