Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-03-2013, 01:51 PM   #1
Registered: May 2013
Posts: 221

Rep: Reputation: Disabled
workin on a lamp - which ports are needed!? to configure

hello dear community,

good evening dear linux-experts. currently i want to build a Lamp on my opensuse 12.3

according the manual shown here Webserver (LAMP) unter openSUSE 12.1 installieren | mnTechBlog

i ve installes the LAMP via yast

now i want to configure with the HTTP-Server-Wizard

which ports should i open

port 80 - which is preconfigured.

anything else - eg the firewall-port. - that is the port

how to do this - how to proceed?

love to hear from you
Attached Thumbnails
Click image for larger version

Name:	configuring_http_ports.jpg
Views:	12
Size:	52.1 KB
ID:	13885  

Last edited by sayhello_to_the_world; 11-03-2013 at 01:57 PM.
Old 11-03-2013, 02:15 PM   #2
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
Originally Posted by sayhello_to_the_world View Post
port 80 - which is preconfigured.
This is the standard HTTP port, which will need to be open on any production web server. If you want to provide HTTPS access to your site, you will also need to open port 443.
anything else - eg the firewall-port. - that is the port isn't a port - it's the loopback IP address, also known as 'localhost'. It's used only for access to services installed on the same server, and is not accessible from elsewhere.

A "firewall port" should not need to be open, as the purpose of a firewall is to control access to other services.

Which other ports need to be open depends on what services need to be accessible across the network. For most web servers, port 80 (and 443) are sufficient, but frequently, port 22 (SSH) will be opened for remote command-line access (though that might be only opened to some other addresses). Some servers, though, might be running other services (for example, chat) which require other ports to be accessible.

You can see what services you have listening by running the following command in a terminal (run as root for info on which programs are using which ports):
netstat -anp -Ainet,inet6 | grep LISTEN
Note that not all of these ports should be openly accessible.
Old 11-03-2013, 02:56 PM   #3
Registered: May 2013
Posts: 221

Original Poster
Rep: Reputation: Disabled

many many thanks for all the tipps - for your answer which covers lots of facts & information.

i benefit alot

Old 11-03-2013, 03:39 PM   #4
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Okay in order to know what ports you need to open, we need to know what software.

First off runt his command

# netstat -lntp

This will show what services are running and listening on those ports. Don't open all listening ports, but open the ones you need.

Typicall your going to need

Port 80:443 Outgoing and Incoming (Outoging allows System updates usually, but may not be needed depending on your setup.
Port 53 Outgoing if your web server performs DNS looksup, incomming if you have a DNS server running.
Port 21 Outgoing and incoming for FTP connections. You may also have to configure passive FTP.
Port 25,587 for SMTP connections, if running mail server.

Open the Port for SSH, Besure to edit sshd_config and change port to a non stadard number.

Hope this helps some.
Old 11-03-2013, 04:42 PM   #5
Registered: May 2013
Posts: 221

Original Poster
Rep: Reputation: Disabled
hello dear jmc 1987

many thanks for the hints. great to hear from you:

see the netstat -lntp

linux-70ce:/home/martin #  netstat -lntp
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0*               LISTEN      7477/firefox        
tcp        0      0 *               LISTEN      1422/cupsd          
tcp        0      0  *               LISTEN      691/master          
tcp        0      0 :::80                   :::*                    LISTEN      20352/httpd2-prefor 
tcp        0      0 :::631                  :::*                    LISTEN      1/init              
tcp        0      0 ::1:25                  :::*                    LISTEN      691/master          
tcp        0      0 :::443                  :::*                    LISTEN      20352/httpd2-prefor 
linux-70ce:/home/martin #
well - do i have to take only the port 80 - is this enough.
i have difficultieis to add

btw - can i do all the configuration through the terminal - that would be much much easier -

what do you think?

love to hear from you




Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LAMP installation tutorial needed mbennettinvail Red Hat 2 02-09-2010 01:40 AM
. /Configure not workin and Synaptic not working chrischristian Linux - Newbie 44 01-18-2009 12:04 PM
Help needed to set up LAMP harrybazeegar Linux - Server 8 05-12-2008 03:33 AM
Help needed setting up LAMP on my PC harrybazeegar Linux - Server 6 08-31-2007 03:36 AM
Getting my NIC workin! Configure Driver for Nvida Nforce - hjortur Mandriva 3 10-03-2006 11:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration