Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Installed zend-server CE.

I would like to use this port (10088). But anytime I enter localhost I should enter localhost:10088, because localhost doesn't work.

In the hosts file I tried to enter localhost. In this case localhost:10088 works, localhost - doesn't.

If I do localhost both ways don't work.

share|improve this question

Web browsers connect to port 80 by default, because it's the default port for HTTP. To open a connection on a different port, you need to specify it after the address, as in http://localhost:10088.

From the Zend Server help:

Zend Server will be installed on the bundled Apache web server which listens on port 10088 by default. This can be set to another port by editing your Apache configuration file at /usr/local/zend/apache2/conf/httpd.conf and changing the value of the directive Listen.

So if you want Zend Server on port 80 just make change described above.

Changes in /etc/hosts that you described couldn't work - in hosts file you can just map IPs to hostnames.

Another solution will be creating some redirections on firewall using iptables, but for me it will be overkill...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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