DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th June 2008
kapom kapom is offline
New User
 
Join Date: Jun 2008
Posts: 8
Default How to open port 80 on FreeBSD

Hello everybody,

I newbie for FreeBSD. Now i'm install FreeBSD Lasted version in my notebook and install apache web server form ports.Apache install was sucessesfull but i cannot acess webserver by another computer. i will try telnet to my notebook in result cannot respond plz helpme.
Reply With Quote
  #2   (View Single Post)  
Old 18th June 2008
Nightweaver's Avatar
Nightweaver Nightweaver is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Belgrade, Serbia
Posts: 47
Default

If you are using FreeBSD then what is this thread doing in OpenBSD subforum?

Can you ping your machine from any other machine on the local network? How are you connected to your LAN? Or are you trying to access your box from the Internet? You'll have to give us a bit more info if you want us to help you.
Reply With Quote
  #3   (View Single Post)  
Old 18th June 2008
kapom kapom is offline
New User
 
Join Date: Jun 2008
Posts: 8
Default

OH i am sorry. miss forum

i can ping form n/b to anthor machine in local network but cannot open web from n/b.

Last edited by kapom; 18th June 2008 at 11:29 AM.
Reply With Quote
  #4   (View Single Post)  
Old 18th June 2008
kapom kapom is offline
New User
 
Join Date: Jun 2008
Posts: 8
Default How to open port 80 on FreeBSD

Affter install FreeBSD with Apache sucessfully. i cannot open web form Apache.

plz solve my problem. if have any question plz ask me.

ps.i am newbie
Reply With Quote
  #5   (View Single Post)  
Old 18th June 2008
kapom kapom is offline
New User
 
Join Date: Jun 2008
Posts: 8
Default

this error after start apache


$ apachectl start
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Reply With Quote
  #6   (View Single Post)  
Old 18th June 2008
Nightweaver's Avatar
Nightweaver Nightweaver is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Belgrade, Serbia
Posts: 47
Default

You are starting Apache as normal user? Are log files created in your /var/log dir?
Reply With Quote
  #7   (View Single Post)  
Old 18th June 2008
Nightweaver's Avatar
Nightweaver Nightweaver is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Belgrade, Serbia
Posts: 47
Default

Have you got any firewalls enabled? Is Apache working at all? Try: sockstat -4 | grep httpd to see if Apache is listening on port 80.
Reply With Quote
  #8   (View Single Post)  
Old 18th June 2008
kapom kapom is offline
New User
 
Join Date: Jun 2008
Posts: 8
Default

just now i start apache again with root user after command $ apachectl start not appear anything .i try open website again cannot.


this's not log fie it's appear after type $ apachectl start

(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Reply With Quote
  #9   (View Single Post)  
Old 18th June 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

  1. You need to be root to bind to port 80.
  2. You need a directive in /etc/rc.conf.
  3. Consider using the /usr/local/etc/rc.d/apache[..] rc script.

Which apache port did you install?
__________________
Kill your t.v.
Reply With Quote
Old 18th June 2008
kapom kapom is offline
New User
 
Join Date: Jun 2008
Posts: 8
Default

You need to be root to bind to port 80. complete
You need a directive in /etc/rc.conf. complete
Consider using the /usr/local/etc/rc.d/apache[..] rc script. i don't understand

same result cann't open -_-

now i install apache again
Reply With Quote
Old 18th June 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

Can you explain how you're installing apache?
__________________
Kill your t.v.
Reply With Quote
Old 18th June 2008
kapom kapom is offline
New User
 
Join Date: Jun 2008
Posts: 8
Default

Update Ports Collection and run this command

# cd /usr/ports/www/apache22
# make config ; make install clean


if i miss some step plz advise me
Reply With Quote
Old 18th June 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

Why don't you start RTFM and read what
apachectl configtest
tell you?
__________________
da more I know I know I know nuttin'
Reply With Quote
Old 18th June 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Default

Quote:
Originally Posted by kapom View Post
$ apachectl start
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
That little "$" at the beginning implies that you are trying to run apache as a non-superuser. Only superusers (such as root) can run services on ports below 1024. Since webservers run on port 80, you'll need to run it as root.

If you still have problems even as root, please paste the entire contents of your /usr/local/etc/apache22/httpd.conf* (try to use the [ code ] brackets).

* Note that /usr/local/etc/apache22/httpd.conf may be different for you if you installed a different version of apache...
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
Old 19th June 2008
kapom kapom is offline
New User
 
Join Date: Jun 2008
Posts: 8
Default

thx every body now this problem is resolved. I am new install freeBSD again and config firewall step by step follow http://http://www.cyberciti.biz/faq/...ipfw-firewall/
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
namp show me a 1720 open port ?? killa74 OpenBSD Security 11 11th February 2009 02:55 PM
cannot open cloning pty l2fl2f FreeBSD General 2 10th December 2008 07:30 PM
PF wont open port despite rules... Dain_L OpenBSD Security 3 12th September 2008 01:14 AM
port JDownloader to freebsd? tfcheng FreeBSD General 2 29th August 2008 10:20 PM
What Open Source package shall I run? satimis Off-Topic 2 2nd June 2008 12:43 PM


All times are GMT. The time now is 06:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick