Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6875759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:23:38+00:00 2026-05-27T04:23:38+00:00

[Meta notes: the following question is not answered, but the problem that the question

  • 0

[Meta notes: the following question is not answered, but the problem that the question is involved in is considered solved. Thanks to @georgek]

I am experimenting Noir web framework on a home machine running Ubuntu linux. I followed the "Getting started" part from the Noir site and got the demo server up and running. But that example was running at the testing port 8080. I wanted it to run at the default http port (port 80), so I edited the "8080" part of the clojure file my-website/src/my_website/server.clj:

(ns my-website.server
  (:require [noir.server :as server]))

(server/load-views "src/my_website/views/")

(defn -main [& m]
  (let [mode (keyword (or (first m) :dev))
        port (Integer. (get (System/getenv) "PORT" "80"))] ; <- I changed "8080" to "80"
    (server/start port {:mode mode
                        :ns 'my-website})))

And tried to run the demo again, but I got the following:

$ lein run
Starting server...
2011-11-27 13:26:27.183:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
2011-11-27 13:26:27.189:INFO::jetty-6.1.25
2011-11-27 13:26:27.242:WARN::failed SocketConnector@0.0.0.0:80: java.net.BindException: Permission denied
2011-11-27 13:26:27.242:WARN::failed Server@111ded2: java.net.BindException: Permission denied
Exception in thread "main" java.lang.RuntimeException: java.net.BindException: Permission denied
    at clojure.lang.Util.runtimeException(Util.java:165)
    at clojure.lang.Compiler.eval(Compiler.java:6476)
    at clojure.lang.Compiler.eval(Compiler.java:6455)
    at clojure.lang.Compiler.eval(Compiler.java:6431)
    at clojure.core$eval.invoke(core.clj:2795)
    at clojure.main$eval_opt.invoke(main.clj:296)
...
...

I have root access to the machine, I just don’t know where to start to solve this problem. Could anybody help?


What I have tried:

I tried to run lein run as su, but it didn’t work either.


I stopped the Apache2 server for releasing port 80 (Is this the right way to do it?):

$ sudo /etc/init.d/apache2 stop

Still doesn’t work.


I did it all over again on a macbook, it worked for port 80 (“sudo” is needed). Don’t know why it doesn’t work for Ubuntu.


The solution that I took

A practical solution to the problem (not an answer to the question):

I followed this web page, and used 8080 port as a service, and then configured the “httpd.conf” file of the Apache2 server to let port 8080 listen all the requests to port 80. This solution is provided by @georgek .

[I am sorry if this post is not valuable to some people, I’m new in this field. Thank you again everyone!]


An alternative solution

@ivant provides an alternative solution which also works!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:23:39+00:00Added an answer on May 27, 2026 at 4:23 am

    I would recommend running Noir as a non-root user on 8080 and using a rule to forward that domain and port to your Apache running on 80. Is there another reason you don’t want to do that?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[Meta-note:] I was browsing the question page, getting really tired of DIVS vs Tables
I ask this question as a followup of this question . A solution that
I have the following form: class ModuleItemForm2(forms.ModelForm): class Meta: model = Module_item fields =
Given the following tables: CREATE TABLE #USGS_24K_TOPOMAP_BOUNDARIES( [OBJECTID] [int] NOT NULL, [AREA] [numeric](38, 8)
I have <footer class=meta> <ul> <li><a href=# class=numNotes>3 notes</a></li> <li><a href=# class=numComments>10 comments</a></li> <li><a
The following HTML shows the 3rd search (search for Practice Guidelines Professional) does not
note: question title is change as discussed in this meta Q&A I'm using the
Having already read this question I haven't managed to figure out what the problem
Does anyone know why the following, that worked so well all the way to
I'm working on a lighttpd server in an embedded system that is not configured

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.