Why does Apache parse old PHP pages but not new ones?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Robelius
    New Member
    • Jul 2012
    • 1

    Why does Apache parse old PHP pages but not new ones?

    just installed on my development box the WAMP EasyPHP 12.0 which includesPHP 5.4.4 VC9 | PHP 5.3.14 VC9 | PHP 5.2.17 Apache 2.4.2 VC9 + MySQL 5.5.25a + PhpMyAdmin 3.5.1 + Xdebug 2.2.0.

    The problem: Old PHP pages are parsed by Apache and load correctly. However, any new pages created in the same directory as the old PHP pages are not parsed and only raw code is displayed. This is true even for a simple page like <?php echo 'Hello, World';?>

    I could understand that if no .php files were parsed I would look for a problem with in the directory settings in the /httpd.conf. But I'm mystified why new pages are being ignored.

    Any ideas? Thanks very much,
    Rob
  • computerfox
    Contributor
    • Mar 2010
    • 276

    #2
    This is one of the main reasons I would never use WAMP/MAMP. I use a Ubuntu Server box and I install the Debian versions of PHP and Apache2.

    What I would suggest is first checking if there are any errors, If errors are off, try turning them on and checking if there are any errors.

    Next make sure that WAMP is running correctly.

    Normally, if it's not parsing, that means that PHP might not be running or there might be a bug in that version.

    Oh it could also be the character set.

    Try:

    1)deleting the page that does work
    2)create another
    3)confirm that it works
    4)create another FOLLOWING THE SAME PROCESS AS WITH THE ONE THAT WORKS.

    Comment

    Working...