Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Completely new to Linux and virtual private servers so please bear with me.

I have a webapp built on ExpressJS and NodeJS that runs on port 5000 of my server, accessible via web by typing: http://00.000.000.000:5000. When you go to my non-port IP address (http://00.000.000.000) it shows the CentOS Apache setup welcome page.

I've tried running my Express app on port 80, but I get an Address In Use error.

What do I have to do to set up CentOS so that accessing its IP address at 00.000.000.000 loads up my Express app? I've tried adding port 5000 to listeners in my /etc/httpd/conf/httpd.conf file but this did nothing.

share|improve this question

closed as off-topic by Iain, Ward, cole, Jenny D, mdpc Dec 2 '13 at 20:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Iain, Ward, cole, Jenny D, mdpc
If this question can be reworded to fit the rules in the help center, please edit the question.

1  
For reference, if you like, you can use TEST-NET-1 (192.0.2.0/24) to substitute for IPs, instead of zeros. –  Falcon Momot Dec 1 '13 at 11:43
    
You may want to read some documentation on how TCP/IP, basic ports and apache etc work before jumping in at the deep end. –  Iain Dec 1 '13 at 11:48

1 Answer 1

up vote 2 down vote accepted

You got the Address In Use error because Apache is already listening on port 80.

If you want to access your Express app throught port 80, then you have to shutdown Apache and run your app on port 80.

share|improve this answer
    
Got it, cheers. –  Jascination Dec 1 '13 at 11:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.