Page 1 of 1

Access a WindowsXP LAN drive via the web

PostPosted: 27. September 2011 22:44
by skoalbandit70
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.

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

PostPosted: 27. September 2011 23:11
by JonB
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)

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

PostPosted: 28. September 2011 21:06
by skoalbandit70
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.

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

PostPosted: 28. September 2011 21:19
by JonB
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)