PDA

View Full Version : Creating a local server across a wireless network


kaitco
09-07-2009, 03:03 AM
I have been using phpdev to run a local server on my desktop for testing php files before I upload them. All of my testing files are on an external drive that is shared wirelessly with my laptop.

The installation for phpdev is on F:\phpdev. When my laptop connects to the same folder on my desktop, it is through the path: \\Kaitco\f\phpdev and I believe this is causing a problem when attempt to run phpdev from the laptop. Each time I try to run phpdev from the laptop I get this result:
http://www.doriennesmith.com/phpdev.png

I have tried to install WAMP my laptop's C:\, but predict I am going to have a problem with the "www" folder in which all the files need to be in order for the http://localhost/ to see them.

Is there a way to successfully run a local server across a wireless network?

Many thanks!

BWiz
09-07-2009, 04:39 AM
Not too sure what's going on with your current set up. The image you provided looks like the command is being executed on your laptop, not on your desktop. You may have to actually remote it to your server to successfully launch Apache. That is how it is with Windows Server 2003 at my job.

On the other hand, I run a local server across my wireless network. I use XAMPP, easiest installation ever. Just secure the different modules (phpMyAdmin, Filezilla, mySQL et cetera, or not if you don't want to bother with passwords) and hook your desktop directly to your router (my router has wired/wireless capabilites). Use the desktop's IP address to connect to the development server from your laptop. You can setup Filezilla to upload files from the laptop onto your desktop.

If you port forward using your router, you can have your own web server that anybody can access too.

seco
09-07-2009, 04:44 AM
ive had problems with wamp on wireless, mainly a share access issue, i was able to view the files and execute but not edit or create.

oracleguy
09-07-2009, 05:14 AM
Why not just access the server running on your desktop? Instead of trying to run another copy on your laptop. You can edit the files over the network share but point your browser at the server running on your desktop.

kaitco
09-07-2009, 05:26 AM
Why not just access the server running on your desktop? Instead of trying to run another copy on your laptop. You can edit the files over the network share but point your browser at the server running on your desktop.
But how do I point my browser to that server? Is there a way to access the same localhost that should be running from the F:\ drive?

BWiz
09-07-2009, 06:06 AM
But how do I point my browser to that server? Is there a way to access the same localhost that should be running from the F:\ drive?

If Apache is running correctly on your desktop, just use ipconfig to find the desktop's IP address, and then type that into the browser address bar for your laptop. Just remember to properly configure your firewall to allow incomming connections through port 80.