XAMPP internet access and port forwarding

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

XAMPP internet access and port forwarding

Postby BlizzofOZ » 30. March 2008 19:51

I'm able to view my directory both on my Linux Ubuntu box and my Win XP box, using localhost/username AND IPaddy/username.

How do I enable it so that I (or friends) be able to access via the internet?

Either by using my outside IPaddy or hostname.

I also believe my ISP blocks port 80... how do I port forward 80 to another port? I know how to do this in my router setup, but not on XAMPP side.

Also, in regards to internet connections, how do I make this secure?

Thanks!
BlizzofOZ
 
Posts: 9
Joined: 30. March 2008 19:45

Re: XAMPP internet access and port forwarding

Postby Nobbie » 30. March 2008 21:40

BlizzofOZ wrote:How do I enable it so that I (or friends) be able to access via the internet?

Either by using my outside IPaddy or hostname.


It is enabled per default - you dont need to enable anything.

BlizzofOZ wrote:I also believe my ISP blocks port 80... how do I port forward 80 to another port? I know how to do this in my router setup, but not on XAMPP side.


You cannot forward a port which is blocked by our ISP - blocked is blocked. You must configure Apache to LISTEN to different port than 80 - use directive LISTEN 8080 for example to listen on port 8080.

Or you may configure your router to map external port 8080 to internal port 80 - but in any case, the clients outside have to specify port 8080 in order to reach your webserver (i.e. http://xxx.xxx.xxx.xxx:8080).
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: XAMPP internet access and port forwarding

Postby BlizzofOZ » 31. March 2008 23:31

Nobbie wrote:
BlizzofOZ wrote:How do I enable it so that I (or friends) be able to access via the internet?

Either by using my outside IPaddy or hostname.


It is enabled per default - you dont need to enable anything.

BlizzofOZ wrote:I also believe my ISP blocks port 80... how do I port forward 80 to another port? I know how to do this in my router setup, but not on XAMPP side.


You cannot forward a port which is blocked by our ISP - blocked is blocked. You must configure Apache to LISTEN to different port than 80 - use directive LISTEN 8080 for example to listen on port 8080.

Or you may configure your router to map external port 8080 to internal port 80 - but in any case, the clients outside have to specify port 8080 in order to reach your webserver (i.e. http://xxx.xxx.xxx.xxx:8080).



Yes, exactly... I need to know which conf files need to be changed from listening 80 to, like your example, 8080.

I've tried /etc/apache2/ports.conf and /opt/lampp/etc/httpd.conf

When I change /opt/lampp/etc/httpd.conf and then restarting XAMPP, it gives me an error. I posted this error just recently, but now I know it was caused by changing that conf file.

So, I need to know the conf file(s) that need to changed if I want to listen to a different port.
BlizzofOZ
 
Posts: 9
Joined: 30. March 2008 19:45

Postby Wiedmann » 01. April 2008 00:17

Now I need to know which conf file(s) need to be changed so that I could listen on a different port.

"/opt/lampp/etc/httpd.conf"

AFAIK you must also change the script "/opt/lampp/lampp"
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby BlizzofOZ » 01. April 2008 00:44

Wiedmann wrote:
Now I need to know which conf file(s) need to be changed so that I could listen on a different port.

"/opt/lampp/etc/httpd.conf"

AFAIK you must also change the script "/opt/lampp/lampp"


When I change the LISTEN from 80 to my new port and restart XAMPP, I I get the error of:

Error 1! Couldn't start Apache!
Starting Diagnosis ...

Not sure what I'm doing wrong...
BlizzofOZ
 
Posts: 9
Joined: 30. March 2008 19:45

Postby Wiedmann » 01. April 2008 01:27

Not sure what I'm doing wrong...

Wiedmann wrote:AFAIK you must also change the script "/opt/lampp/lampp"
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby BlizzofOZ » 01. April 2008 01:48

Wiedmann wrote:
Not sure what I'm doing wrong...

Wiedmann wrote:AFAIK you must also change the script "/opt/lampp/lampp"


BINGO! Thanks, that did it!
BlizzofOZ
 
Posts: 9
Joined: 30. March 2008 19:45

I can not access my Xammp server from internet either

Postby ian11 » 05. April 2008 05:37

Is it possible that my 80 port is blocked by my isp as well? how do you tell? My server runs from localhost on the box but no access from other box and internet.....do not know why....Please help!
ian11
ian11
 
Posts: 2
Joined: 05. April 2008 02:24

Postby root11 » 12. October 2008 14:16

BlizzofOZ wrote:
Wiedmann wrote:
Not sure what I'm doing wrong...

Wiedmann wrote:AFAIK you must also change the script "/opt/lampp/lampp"


BINGO! Thanks, that did it!


I have the SAME problem.. could you please tell me what i should change in the script? please!
root11
 
Posts: 1
Joined: 12. October 2008 14:11


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 25 guests