Access a WindowsXP LAN drive via the web

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

Access a WindowsXP LAN drive via the web

Postby skoalbandit70 » 27. September 2011 22:44

I have LAMPP (1.7.4) running fine on a Linux virtual server. I need to access some PDF's on the LAN on a machine running WindowsXP. Seems simple enough.

Evidently I'm missing something on everything I've read about configuring the httpd-vhosts.conf and httpd.conf files in Apache.

I can't see the directory in a web browser once I restart Apache.

Any pointers? Is this possible? HTTP services are NOT running on the Windows box.

Even a general point in the right direction would be appreciated.

Thanks in advance.
Last edited by skoalbandit70 on 28. September 2011 21:27, edited 1 time in total.
skoalbandit70
 
Posts: 5
Joined: 27. September 2011 21:54

Re: Lampp (Linux) need to access dir on LAN

Postby JonB » 27. September 2011 23:11

Offhand - I'm not sure you can do what you want on XP without Samba. At minimum, it would be "vewwy, vewwy twicky" to quote a popular pig.

I have LAMPP (1.7.4) running fine on a Linux virtual server.


The VM is running on what kind of box/machine/server???
OR
you you really mean I have a Linux box running LAMPP that has one or more Virtual HOSTS

a Virtual SERVER generally really means a virtual machine instance on a Host OS.

the real question -

You want to use a remote folder somewhere on your network on a Windows box, inside your 'htdocs' that is on a virtual host on a Linux machine (whether virtualized or not) - is that the drift???

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Lampp (Linux) need to access dir on LAN

Postby skoalbandit70 » 28. September 2011 21:06

I figured out my own solution, so I'll post the steps I took here in case they may be of some use to others.

The method I took was to abandon the idea of a virtual directory. Instead I mounted the WindowsXP volume under Linux.

Here's the scenario. I have a Linux web server running XAMPP (LAMPP). I have a volume on the LAN that resides on a WindowsXP machine. I needed access to a directory of files on the XP machine via a web browser. Some php files in 'htdocs' on my Linux server would basically need to link to some PDF files on the XP machine. In this instance several of my php scripts would query mySQL and display a list with each record containing a link to a PDF file that resides in a directory on a volume on the XP machine on the LAN.

What you are doing is creating a directory in your web tree (most likely htdocs or something similar). That directory will be what you use to access your mounted LAN volume (example: www.mydomain.com/new_dir_in_htdocs).
When you mount your LAN volume residing on the XP machine you will specify the path to the drive on the network (example: NETWORK_XP_MACHINE/files_needed) and then the path to where you want it symbolically linked (example: /opt/lampp/htdocs/new_dir_in_htdocs). All of the files from the mounted drive will appear in the directory you created in your web tree. It's as though they were sitting in a directory in your web documents directory on your Linux server.

This site was a great help in regards to step-by-step instructions for installing samba services and getting Linux to mount the XP volume upon a reboot.
(http://ubuntuforums.org/showthread.php?t=288534).

One important note is that it appears that the username/password you supply must be a user on the local machine and not a domain user.

Following the instructions on the link above worked great and solved the issue. The only snag was supplying domain user credentials upon the first try.

I hope this information may be of some use to other users.
skoalbandit70
 
Posts: 5
Joined: 27. September 2011 21:54

Re: Lampp (Linux) need to access dir on LAN

Postby JonB » 28. September 2011 21:19

Thanks for the info - I was pretty sure you would need Samba. Glad you got it worked out.

I'm sure this will make some one happy...

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 10 guests