Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
u will have to edit the httpd.conf file to bind to the ip-address of ur computer .. or u could make it bind to 127.0.0.1 [loopback address] for testing...
root@myroom ben # netstat -an | grep :81
root@myroom ben # httpd -k start
(98)Address already in use: make_sock: could not bind to address 192.168.0.160:81
no listening sockets available, shutting down
Unable to open logs
first do ps aux | grep httpd
if one is running kill it ("kill <process-id>" / see man kill)
try to connect to your pc with a browser. "http://your_ip_address:81".
if it fails and there really is no prog listening on port 81 there's something messed up. reboot your pc and try again. then try to start your httpd.
if this doesn't work (same error) use another port the way Usual mentioned.
port 81 usually isn't used by a program, but you may have configured something to use this port, so another process won't be able to use it too.
the only reason im using port 81 is so it is still accessable from outside my network because i have a server and amongst other things its running a webserver.
Code:
ben@myroom ben $ ps aux | grep httpd
ben 22832 0.0 0.0 1436 452 pts/2 S+ 02:03 0:00 grep httpd
ok the problems im having are on gentoo not Fbsd. my server runs fine, it has a web server running on port 80 and that is my main webserver. the problems are on gentoo which i have set apache to run on port 81 as port 80 is already forwarded to my server and i want a web-server on my box to have simple php-stats page etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.