I'm sure this is something obvious, but I'm pretty stuck here. I have a LAMP server (Centos 5.3, PHP 5.3.8) that is not working. I modified and reloaded (via SFTP) a specific PHP script to the server, but when I reloaded the page, the old script still works. I see that there is a new file and that the timestamp and size correspond to the new version, but it is always displayed as if the file had not changed. I even tried replacing it with a simple
<?php die('test'); ?>
test file, same result. This is not a problem with the browser cache (reboot, different browsers, etc. Everyone shows the old script, and I can pass $_GET variables and it works like the old script). If I rename a file, it will correctly display (with new changes) under a new name, and the system correctly throws a 404 error to its original location. When I return it to the original file name, it returns to rendering as the old version. I decided that this was a problem with the electronic accelerator (working with 0.9.6.1), so I cleared the cache (empty /var/cache/php-eaccelerator ) and restarted the server, but did not buy it.
Is there anything else that could cause the server to cache the old script?
EDIT - SOLUTION!
OK, no wonder this became an application specific issue that I had to understand before. The application was configured with the "custom-override" system, which caused the problem ... basically simplified the update, but also allowed to configure clients, the system was configured with a special folder /custom/ , which clones the folder structure of the base application. Before serving, Apache apparently checks for an identical file in the user structure and serves instead if it exists. Basically, the user script was loaded into the corresponding directory, which redefined any file loaded into the main directory of the application. Apparently, an overriding script was loaded into the user directory.
@Dagon, thanks for the suggestion to disable eAccelerator. I was so convinced that this was the source of my problem, that I did not bother to check .htaccess . As soon as I decided this, I began to think more clearly.