Author Topic: I changed Zentyal administration port to 80 and cannot login to it  (Read 9906 times)

mob_dream

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Hello guys,
Please help me I changed Zentyal administration port to 80 and right now when I try to access I get this message:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

and port 443 is not working any more (the default) please guide to solve this.

thank you in advance,

andyp

  • Zen Apprentice
  • *
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #1 on: March 14, 2012, 03:27:44 pm »
Hi,

Have you tried logging in via SSH and rebooting?  Or restarting apache?

Code: [Select]
/etc/init.d/zentyal apache restart

I'm not sure whether Zentyal writes over this config file or not but have a look at /etc/apache2/ports.conf.  Maybe edit it back to 443 and try restarting apache or rebooting Zentyal.  Mine looks like this:

Code: [Select]
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

Hope this helps.

Cheers,
Andy

mob_dream

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #2 on: March 18, 2012, 11:07:58 am »
Hello,
I tried to edit the port but I couldn't because of permission issue.

Is there any way

Thank you,

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #3 on: March 18, 2012, 12:09:55 pm »
Hello,

You may reset the administration port by running this command line from a terminal:
Code: [Select]
sudo dpkg-reconfigure zentyal
Best,

Marcus

mob_dream

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #4 on: March 19, 2012, 12:35:29 pm »
permission denied !!!!

Any ideas

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #5 on: March 19, 2012, 12:44:57 pm »
Hello mob_dream,

Please post the full error message.  This will let us know if:
1) a wrong password was used for your sudo
2) you didn't typed "sudo"
3) there is an update/install rolling

Best,

Marcus

mob_dream

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #6 on: March 19, 2012, 02:00:48 pm »
Please find picture.

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #7 on: March 19, 2012, 03:05:12 pm »
Hello mob_dream,

You must use an editor like nano.
e.g.
Code: [Select]
nano /etc/apache2/ports.confbreakdown of that command line:
nano: will start the nano editor
/etc/apache2/ports.conf: and edit the ports.conf file located in /etc/apache2/

Hit CTRL+X followed by Y when done.

Best,

Marcus

mob_dream

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #8 on: March 20, 2012, 11:55:13 am »
Thanks my dear for your kind post. I did the steps and changed the ports.conf settings but still cannot access the administration dash board. Please check attached.

I understand the situation but your support is needed.

Thanks again,

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #9 on: March 20, 2012, 02:42:43 pm »
Hello mob_dream,

Have you tried running this command line from a terminal:
Code: [Select]
sudo dpkg-reconfigure zentyal
Best,

Marcus


mob_dream

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #10 on: March 20, 2012, 03:43:46 pm »
I did and restarted the server (you know windows users :(  ) but I got this error while boating up and nothing changed.

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: I changed Zentyal administration port to 80 and cannot login to it
« Reply #11 on: March 20, 2012, 04:20:43 pm »
Hello mob_dream,

Let's try to fix the problem step by step

1) Restore the Apache configuration like it was

2) run the suggested command and choose port 1100
Code: [Select]
sudo dpkg-reconfigure zentyal
3) restart zentyal by running the following:
Code: [Select]
sudo /etc/init.d/zentyal restart
4) start firefox by running this command:
Code: [Select]
firefox
5) point your browser to https://127.0.0.1:1100

Let me know on how each steps went.

Best,

Marcus