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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:38:12+00:00 2026-06-18T05:38:12+00:00

My codeigniter application is running against a 502 bad gateway error. I know there

  • 0

My codeigniter application is running against a 502 bad gateway error. I know there are other threads on this subject, but I am no server wizard, the symptoms are different and my server config is slightly different as well, or so I think.

This is my situation.

  • The application works fine, until I post a form for the nth time (n being anywhere between 2 and n times). This nth time is exactly the same as the earlier postings. I just change one field and then press the submit button.
  • The form uses the validation class, and I customized the error message setter in such a way that these messages are also set as flashdata in the session (I want the messages to be available after a redirect).
  • My server uses Nginx and apache (Plesk, apache service daemon is called httpd). If I do “service httpd stop” or “service nginx stop” all my websites stop working immediately.
  • There are no errors in the error log.

My question is this: Could this be a coding issue, or is it most definately (or most likely) a misconfiguration of the server? If it is the latter, all advice is welcome of course, but remember it is a plesk/apache/nginx environment.

Hope you guys can help!

  • 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-06-18T05:38:13+00:00Added an answer on June 18, 2026 at 5:38 am

    I would recommend checking Apache server status right after failure (service httpd status). Not much details for better judgement, but one of likely scenarios would be that Apache fails on Nth request, so Nginx cannot forward request to Apache and returns “502 Bad Gateway” to you.

    The Apache failure may be both programmatic and misconfiguration issue. i.e. it takes too much RAM on Nth request (my understanding that you keep some date between requests) and then is killed by virtualization engine (in case you have VPS rather than dedicated hardware server). Just a hypothesis so far, but I have experienced cases like that before.

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

Sidebar

Related Questions

I am building a application in codeigniter and is running in some issues with
I'm trying to use the PDO MySQL driver in my CodeIgniter application. This is
I'm working on a CodeIgniter based application. My htacess looks like this: RewriteEngine On
i want to port my application to CodeIgniter but i am wondering whether i
I have an application running with Codeigniter, its name is SAF. folder structure: /SAF/index.php
This is about the Codeigniter application. I'm having a hard to understanding the benefit(s)
I have a CodeIgniter application, but one of my controllers must call a data
I am running PHP with CodeIgniter. My application needs to output formatted addresses throughout
I'm working on the application at http://demos.zatechcorp.com/codeigniter/ In its current incarnation running on my
I want to integrate Log4php to my codeigniter application. Is there a library in

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.