lk******@geocities.com wrote:
I wrote a PHP content management system and it worked fine
on old servers. I just moved it to a new server on Rackspace.
I'm trying to debug. At the top of the first file (index.php)
I need to include a file. The file won't be included. In the
code below, $success remains false. I've checked a million
times and the file is there.
error_reporting(E_ALL);
$success = include("ppKernel/McControllerForAll.php");
if (!$success) $success = include("ppExtras/McControllerForAll.php");
Most likely, this is a permissions problem. The user on behalf
of which Apache is running must be allowed to read the file
being included. When this is not the case, an include() can't
take place.
On shared servers, these permission are ususally set up
automatically during account activation. At Rackspace,
where you get a dedicated server, you are the administrator
and must make sure the correct privileges are set.
Cheers,
NC