That is no port, that is the IP-address also known as localhost. Accessing this don’t go through the firewall anyway.
If it’s just a web server, port 80 is enough (a web server normally listens on port 80).
You don’t need to open any other port if you don’t want to offer any other service. (well, some of them might be desirable for you of course, like SSH which is port 22 f.e.)
What do you want to do?
You need the port 80 for http and you can use LAMP.
127.0.0.1 is the ip address for localhost. You can use this address only on the local machine!
You can’t use 0.127.0.0. Which ip address do you have for your server?
ifconfig eth0
You can get a connection to your LAMP-Server with the ip address, which you get with the command.
Well, apache is listening on port 80 (http) and 443 (https). Port 631 is the cups server. Port 25 is SMTP (postfix).
So for a Web server only, port 80 is enough as I already said, although you should open port 443 as well if you want to be able to connect via https:// (encrypted).
i have difficultieis to add 0.127.0.0.
Where?
And 0.127.0.0 is not a valid IP address and not a port number. You mean 127.0.0.1 I guess.
In that case, please read my last post again. 127.0.0.1 is the localhost, it doesn’t go through the firewall, therefore you don’t have to open any ports.
**btw **- can i do all the configuration through the terminal - that would be much much easier -
what do you think? Honestly i would prefer to configure through the terminal - and not through the http-wizzard.
On 11/03/2013 11:32 PM, dilbertone wrote:
>
> btw: see the netstat -lntp
>
> Code:
> --------------------
>
> 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 127.0.0.1:4242 0.0.0.0:* LISTEN 7477/firefox
> tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1422/cupsd
> tcp 0 0 127.0.0.1:25 0.0.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 #
>
> --------------------
>
> hmmm - well - do i have to take only the port 80 - is this enough.
> i have difficultieis to add 0.127.0.0.
As he mentioned before, you ONLY need port 80. The text above confirms
that. If you are asking about something specific in the above output
please call it out explicitly since otherwise we’re left to speculate on
what causes you some amount of disquiet.
> *btw *- can i do all the configuration through the terminal - that would
> be much much easier -
Sure. The configuration files are all in /etc/apache2 though if you do
this and then run Yast again (in the terminal or otherwise) you may
dislike the results. I would probably recommend deleting the Yast httpd
module so that you do not accidentally use it if doing everything manually.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…