Solved

Web Server, php includes dont' seem to resolve

Posted on 2003-11-30
3
279 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
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…
A short film showing how OnPage and Connectwise integration works.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

929 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

11 Experts available now in Live!

Get 1:1 Help Now