Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Web Server, php includes dont' seem to resolve

Posted on 2003-11-30
3
Medium Priority
?
292 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:Ralf Klatt
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 Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

618 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