Setting up Webhost

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

Setting up Webhost

Postby RedGreen » 18. November 2009 03:49

My buddy and I are trying to build a website using PHP and MySQL. I have installed XAMPP on my computer but would like him to be able to access it so that he can view the changes over the internet from his computer. I have been doing a lot of searching on how to do this and have yet been able to find an answer. I have DMZ opened to my computer right now for the purposed of opening all the ports so there is no confusion.

So far, using my WAN ip address given to me by my router he is able to access the FTP server, but not able to see the webhost.

Any ideas?
RedGreen
 
Posts: 3
Joined: 18. November 2009 03:47

Re: Setting up Webhost

Postby Izzy » 18. November 2009 03:51

Because of new security features my response will depend on what version of XAMPP you have installed and on which Windows OS?

BTW these details should now always be included in support request.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Setting up Webhost

Postby RedGreen » 18. November 2009 04:17

I am running Windows 7 with version 1.7.2

Sorry about that.
RedGreen
 
Posts: 3
Joined: 18. November 2009 03:47

Re: Setting up Webhost

Postby Izzy » 18. November 2009 04:25

Your WAN IP will not be able to access any XAMPP files or folders outside of the server's DocumentRoot folder the \xampp\htdocs folder including any XAMPP related files or folders in this htdocs folder, which is the new security feature in 1.7.2 and I am sure you will appreciate this security measure as you would not want any old hacker gaining access to your PC via your Apache web server.

This security measure is configured in the \xampp\apache\conf\extra\httpd-xampp.conf file.

So if you put your web site in a folder in the \xampp\htdocs folder your friend using the WAN IP should be able to access it.
http://xxx.xxx.xxx.xxx/mywebsite should then find the index file in the \xampp\htdocs\mywebsite folder.

The configuration of a VirtualHost directive in the \xampp\apache\conf\extra\httpd-vhosts.conf file can override this behavior and a forum search in the XAMPP for Windows for virtualhost may find many examples of how to do this this.


BTW if you want your friend to access any file or folder or selected files and folders on your PC, including the XAMPP installation, then you would need to set up a Remote Access facility which is beyond the scope of this forum to assist.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Setting up Webhost

Postby RedGreen » 18. November 2009 19:34

Ok, so I reinstalled XAMPP cause I was getting some error accessing MySQL locally, but now it is saying I need to edit httpd-xampp.conf cause he can't access it.

Also, is there a way I can make it so he can access MySQL?
RedGreen
 
Posts: 3
Joined: 18. November 2009 03:47


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 70 guests