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

  • Home
  • SEARCH
  • 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 8547241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:13:27+00:00 2026-06-11T13:13:27+00:00

I’m sure it’s something obvious, but I’m pretty stuck here. I have a LAMP

  • 0

I’m sure it’s something obvious, but I’m pretty stuck here. I have a LAMP server (Centos 5.3, PHP 5.3.8) which has been working no problem. I modified and re-uploaded (via SFTP) a particular PHP script to the server, but when I reloaded the page the old script still runs. I can see that the new file is there and that the timestamp and size match the new version, but it always outputs as if the file was unchanged. I even tried replacing it with a simple

<?php die('test'); ?> 

test file, same result. It’s not a browser cache problem (reloading, different browsers, etc all show the old script, and I can pass $_GET variables in and it runs as the old script). If I rename the file it renders correctly (with the new changes) under the new name and the system correctly throws a 404 error at the original location. When I return it to the original filename it reverts to rendering as the old version. I figured it was an e-accelerator issue (running 0.9.6.1) so I cleared the cache (emptied /var/cache/php-eaccelerator) and restarted the server but no dice.

Is there anything else that might be causing the server to cache the old script?

EDIT – SOLUTION!

OK, unsurprisingly, this ended up being an application-specific problem that I should have figured out sooner. The application was set up with a “custom-override” system that was causing the issue… basically to make updating easy but also allow for customization by clients, the system was set up with a special /custom/ folder which clones the folder structure of the base application. Before serving, Apache apparently checks for an identically located file in the custom structure and serves it instead if it exists. Basically there was a custom script uploaded to the relevant directory which was overriding any file I uploaded into the main application directory. Apparently there was an overriding script loaded into the custom directory.

@Dagon, thanks for the suggestion to disable eAccelerator. I was so convinced that it was the source of my problem that I didn’t bother to check .htaccess. Once I ruled that out I started thinking more clearly.

  • 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-11T13:13:28+00:00Added an answer on June 11, 2026 at 1:13 pm

    This ended up being a localized issue. As I mentioned in the edits to the question, the application was set up with a “custom-override” system that was causing the issue… basically to make updating easy but also allow for customization by clients, the system was set up with a special /custom/ folder which clones the folder structure of the base application. Before serving, Apache apparently checks for an identically located file in the custom structure and serves it instead if it exists. Basically there was a custom script uploaded to the relevant directory which was overriding any file I uploaded into the main application directory. Apparently there was an overriding script loaded into the custom directory.

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

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have an array which has BIG numbers and small numbers in it. I
That's pretty much it. I'm using Nokogiri to scrape a web page what has
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
This could be a duplicate question, but I have no idea what search terms
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have an autohotkey script which looks up a word in a bilingual dictionary
I have a text area in my form which accepts all possible characters from

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.