Problem with PHP failed open stream
Hi, this is a new server setup in cPanel.I'm having problem with PHP scripts not working properly if they don't use the absolute path, or if they call a file outside the public_html folder but within the same account.
openbase_dir is not enabled, and I recompiled Apache+PHP , did Not enable PHPSuexec.
Warning: main(/inc/footer.php): failed to open stream: No such file or directory
Warning: main(): Failed opening '/inc/footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')
Here is the script:
Code:
<?php include ($DOCUMENT_ROOT . '/inc/bodytag.php'); ?>
Changing permissions did not resolve this problem either.
I had encountered this a while ago, but I can't recall how I fixed it!
Any help please.