Jump to content

PHP not including includes since reinstalling linux


Recommended Posts

PHP not including includes since reinstalling linux

 

  • Reinstalled linux on server
  • Reinstalled PHP 4.3.8 (upgrading is not an option) - besides, it worked before the disk crash
  • Everything - PHP & SHTML that use include files - worked fine until I had to reinstall linux
  • No PHP code has changed

 

Now everything works as expected except that PHP files' includes, e.g.,

include("includes/abcd.inc")

don't work anymore: all PHP pages that used to work, i.e., properly displayed included files, no longer display those included files.

 

  • There are no error messages
  • If I comment out
        include("includes/abcd.inc")
          and use an SHTML include,
          <!--#include virtual="includes/abcd.inc" -->
          the page displays correctly.
     
  • If I comment out
          include("includes/abcd.inc")
          and paste the text of
          includes/abcd.inc
          and echo the pasted text, it displays correctly
  • The Apache DirectoryIndex directive is correct - it reads
          index.php index.shtml index.htm index.html
  • phpinfo.php displays correctly, therefore PHP is working correctly (albeit possibly misconfigured)

 

It must be a configuration thing. Any ideas?

There are 3 php.ini files, each with different content

/etc/admserv/php.ini

/etc/httpd/php.ini

/etc/httpd/438/php.ini

 

I strongly suspect that the last one is the operative ini file, but in each

I uncommented

E_ALL

and set

display_errors = On

on each

 

in phpinfo.php

+----------------+--------------------+------------------+

| Directive    |  Local Value    | Master Value  |

+----------------+--------------------+------------------+

| include_path | :/usr/lib/php    | .:/usr/lib/php |

+----------------+--------------------+------------------+

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.