No such file or directory ...

Problems with the Windows version of XAMPP, questions, comments, and anything related.

No such file or directory ...

Postby LooseCannon » 03. February 2010 15:17

I've an issue with accessing XAMPP from one PC to another, running XP Pro in a Win2003 domain. We've run a few XAMPP installations for a while, but only ever needed local access.

This XAMPP driven website can be accessed locally, but from the other PC, folder/file access seems to be a problem.

With the url http://50.100.150.101/ (isolated network address; vhosts with fix ip reference - see below) the browser seems to connect to Apache, becuase it trys to load the default file; but it can't see that default file, giving the error:

Warning: include_once(C:/xampp/xampp/websiteName/htdocs_dev1/home.inc.php) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\xampp\websiteName\htdocs_dev1\default.php on line 100

On the PC running XAMPP, the default.php _is_ at "C:/xampp/xampp/websiteName/htdocs_dev1/". That file and hence the webite that runs thereafter, functions fully when run locally. It is not of course on the 'remote' PC.

httpd-vhosts.conf:
Code: Select all
httpd-vhosts.conf:
<VirtualHost 50.100.150.101:80>
  ServerName www.websiteName.local
  ServerAlias websiteName.local
  DocumentRoot C:/xampp/xampp/websiteName/htdocs_dev1
  DirectoryIndex default.php
</VirtualHost>

<Directory "C:/xampp/xampp/websiteName/htdocs_dev1/">
  Options Indexes FollowSymLinks Includes MultiViews
  AllowOverride All
  Order Allow,Deny
  Allow from All
</Directory>

Any ideas and suggests would be greatly appreciated, thanks.
User avatar
LooseCannon
 
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK

Re: No such file or directory ...

Postby Wiedmann » 03. February 2010 17:29

Warning: include_once(C:/xampp/xampp/websiteName/htdocs_dev1/home.inc.php) [function.include-once]: failed to open stream: No such file or directory

The file "C:\xampp\xampp\websiteName\htdocs_dev1\home.inc.php" doesn't exists.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: No such file or directory ...

Postby LooseCannon » 03. February 2010 18:04

:oops:

Sorted. Thanks.
User avatar
LooseCannon
 
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 84 guests