| View previous topic :: View next topic |
| Author |
Message |
mmesh
Joined: 01 Apr 2009 Posts: 2
|
Posted: Wed Apr 01, 2009 11:59 am Post subject: Deploying PHP to a Server-only OpenSolaris Web Stack |
|
|
Hi to You all!
I'm running Xubuntu 8.10 on my development machine.
I tried setting up web server in virtual machine using tutorial on the following url:
http://www.netbeans.org/kb/docs/php/webstack.html
I'm have stuck at:
http://www.netbeans.org/kb/docs/php/webstack.html#ssh
I did all of the port forwarding part and the output of the enumerate command is:
| Code: | misel@misel:~/downloads/finished$ VBoxManage getextradata "NBWebStack" enumerate
VirtualBox Command Line Management Interface Version 2.1.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
Key: GUI/SaveMountedAtRuntime, Value: yes
Key: GUI/LastWindowPostion, Value: 520,271,720,451
Key: GUI/Fullscreen, Value: off
Key: GUI/Seamless, Value: off
Key: GUI/AutoresizeGuest, Value: on
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol, Value: TCP
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort, Value: 22
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort, Value: 2222
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestftp/Protocol, Value: TCP
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestftp/GuestPort, Value: 21
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestftp/HostPort, Value: 2221
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/Protocol, Value: TCP
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/GuestPort, Value: 80
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/HostPort, Value: 8880
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqltcp/Protocol, Value: TCP
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqltcp/GuestPort, Value: 3306
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqltcp/HostPort, Value: 3336
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqludp/Protocol, Value: UDP
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqludp/GuestPort, Value: 3306
Key: VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqludp/HostPort, Value: 3336
misel@misel:~/downloads/finished$ |
which would suggest that it's all OK but when I try to connect to the port 2222 with ssh, or try any of the forwarded services I get "unable to connect" message.
I have tried scanning open ports on my localhost:
| Code: | misel@misel:~/downloads/finished$ sudo nmap -O localhost
Starting Nmap 4.62 ( http://nmap.org ) at 2009-04-01 13:54 CEST
Interesting ports on localhost (127.0.0.1):
Not shown: 1706 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
631/tcp open ipp
901/tcp open samba-swat
2049/tcp open nfs
3306/tcp open mysql
Device type: general purpose
Running: Linux 2.6.X
OS details: Linux 2.6.17 - 2.6.23
Uptime: 0.240 days (since Wed Apr 1 08:10:01 2009)
Network Distance: 0 hops
OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 2.045 seconds
misel@misel:~/downloads/finished$ |
I see that I don't have any of the forwarded ports open. How can I accomplish that?
Can anyone direct me to what am I doing wrong?
Thank You. |
|
| Back to top |
|
 |
JeffRubinoff
Joined: 03 Dec 2008 Posts: 18 Location: Prague
|
Posted: Tue Apr 07, 2009 12:10 am Post subject: |
|
|
Can you reach the other services on the forwarded ports? For example, can you access the Apache web server running on the guest using port 8880.
The problem might be in the network adapter type. When configuring port forwarding, the "pcnet" string in
VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort
works for the PCnet-FAST III interface. However, if you have your webstack's virtual machine in VirtualBox configured to use a different network adapter (e.g. "Intel Pro"), the reference should read "e1000".
This possibility was suggested by the engineer who first set up the webstack. He warns that it is just a guess, and there might be other reasons why the port forwarding doesn't work as expected. |
|
| Back to top |
|
 |
mmesh
Joined: 01 Apr 2009 Posts: 2
|
Posted: Tue Apr 07, 2009 6:30 am Post subject: |
|
|
| JeffRubinoff wrote: | | Can you reach the other services on the forwarded ports? For example, can you access the Apache web server running on the guest using port 8880. |
No, I can't.
Not one service on forwarded ports is available.
| JeffRubinoff wrote: |
The problem might be in the network adapter type. When configuring port forwarding, the "pcnet" string in
VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort
works for the PCnet-FAST III interface. However, if you have your webstack's virtual machine in VirtualBox configured to use a different network adapter (e.g. "Intel Pro"), the reference should read "e1000".
|
Well... I do have PCNet-Fast III set as network adaptor in my VM's configuration - so I think that isn't it.
| JeffRubinoff wrote: |
This possibility was suggested by the engineer who first set up the webstack. He warns that it is just a guess, and there might be other reasons why the port forwarding doesn't work as expected. |
I just rebooted my computer... and guess what
Port forwarding is working as advertised. My computer usually stays on 24/7 so I haven't picked up on it sooner.
Thank You for your help. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|