From: Michael T. <wa...@ko...> - 2006-01-27 18:47:39
|
Raul Elizondo (wizardteam) wrote: > Hi again, > > Well, i copied httpdthread.tcl and then that issued ends, but now it comes > another problem i cant handle. If i set another port for tclhttpd, it > starts with no problem, but if i set port 80, i get this problem: > > # service tclhttpd start > Starting tclhttpd: myhost.mydom.org:80 couldn't open socket: permission > denied > cmd=socket -server {HttpdAccept {http 100.100.100.100 80}} -myaddr > 100.100.100.100 80 > while executing > "Httpd_Server $Config(port) $Config(host) $Config(ipaddr)" > (file "/usr/bin/tclhttpd" line 230) > [FAILED] > > There is no apache in this server and no other app is using port 80, > however, its getting me that error. > Any hint? Port 80 is restricted for use by the root user. If you are not running your process as root, then it won't be able to listen on port 80. Now, this isn't supposed to be a problem with tclhttpd because it starts as root and then changes to a non-root user as defined in the tclhttpd config file. However, the /etc/init.d/startup script tries to force the user to 'tclhttpd' before it starts the server, so tclhttpd never gets a chance to be root when it opens port 80. In short, this is a bug in the /etc/init.d startup script that comes with the rpm. Please file a bug on it and I'll work on fixing it. Was your earlier issues with missing httpthread.tcl a problem in the rpm installer or just the tarball installation? If it was a rpm installation problem then can you provide me with the package version that you used (rpm -q tclhttpd)? Thanks, --Wart |