Solved

Web Server, php includes dont' seem to resolve

Posted on 2003-11-30
3
277 Views
Last Modified: 2010-04-20
Well i wasn't sure where to ask this question sisnce i dont' know where the problem is.

I'm setting up a web server on freeBSD 4.9 with apache 2.0.48  and php 4.3.4 mysql is also on the server, my website is up and running on my windows box which has all the same (maybe a bit older versions but definately apache 2 and php 4.

Warning: main(/phpBB2/extension.inc): failed to open stream: No such file or directory in /usr/home/chris/webpage/php/Header.php on line 10

Warning: main(): Failed opening '/phpBB2/extension.inc' for inclusion (include_path='.:/php/includes:/usr/home/chris/webpage/php:/usr/home/chris/webpage/wwwroot') in /usr/home/chris/webpage/php/Header.php on line 10

thats the type of error i'm getting, and i can't figure out why.
the file to be includes is located at
/usr/home/chris/webpage/wwwroot/phpBB2/extension.inc

this is just one example it's hapenning with some includes.(all of them in the phpBB2 dir)

      $site_root_path = '';
      $phpbb_root_path2 = '/phpBB2/';
      $phpbb_root_path = $site_root_path . $phpbb_root_path2;
      include($phpbb_root_path . 'extension.inc');

is the code including it.

any help would be appreaciated if it has to do with nix specific stuff try to be really startight forward, just learning for the most part.

Thx you very much.
LittleGiant
0
Comment
Question by:littleg
3 Comments
 
LVL 15

Expert Comment

by:Raisor
ID: 9849706
Hi,

Have checked if you have set the appropriate permissions to access the include files?

Best regards, Raisor
0
 

Accepted Solution

by:
littleg earned 0 total points
ID: 9883689
i have solved my own problem.

Solution:
since the include path was "/phpBB2/file.php"
it would see this and think it was a root path and not bother trying to concatinate the path with include paths. Error occured since widows used a drive letter for root and did think i was specifying a root.

-Littlegiant
0

Featured Post

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Join & Write a Comment

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now