Solved

Web Server, php includes dont' seem to resolve

Posted on 2003-11-30
3
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

696 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