Make UCP run on port 81 and disable AMI?

Is it possible to have the new UCP run on port 81 and also disable the current AMI? For instance if my url is the UCP url is, but what I don’t want to have happen is my users forget or don’t add /ucp they are greeted with the ability to get to the admin login. I just want them to go to or even better switch the admin port to 81 and UCP to run on port 80. I know how to switch the ports, but how to disable AMI and have UCP run on that port?

If you are using the FreePBX Distro you can setup your apache ports in sysadmin under Port management.

Right which I understand and works as it should, but changing the admin port to 81 and the User Control Panel to 80 does not change the url for the new User Control Panel in FreePBX 12. If I go to in my browser it loads the old User Portal from FreePBX 11. And all the UCP link in the menu bar of FreePBX points to

Shouldn’t the setting in the Port Management for User Control Panel actually control the port for the new User Control Panel?

Make sure you are on the latest Distro of 6.12.65-21 as this was fixed already.

I am indeed on 6.12.65-20, and in System Admin > Updates it is reporting that “This system is up to date.”?

I have manually used the upgrade script. It seems to have fixed it. Thank you @tonyclewis.

Took me a bit to figure out what you meant by the distro version. For the next guest go here to see how to check your distro version and to update it if needs be,

More on this. I have updated to the latest and great but my primary issue with UCP ports is still happening. That is that when I create a new user the email that is sent has the wrong port on it. I can work around this by editing the email template for user creation. However another oddity is that the email subject that gets sent contains the entire message not just the subject text.

I’m having the same issue. I noted yesterday that I was running 6.12.65-20, ran all the scripts to upgrade to 6.12.65-24. My UCP is still running on port 80 instead of 81. Checked Port Management, shows UCP pointing to port 81.

What script is that?

I still have this problem!

Email states gives me the Default Apache page

But the real link is

Are you running the distro? Have you modified the schmooze.conf file in httpd manually?

Yes running the Distro

I have not edited the file. Here is the entry:

<VirtualHost *:81>
        DocumentRoot /var/www/html/recordings/

You didn’t define the ports in sysadmin. Otherwise that file would look completely different than it does.

Yes I have the ports defined.

If I change the port to 811 the /etc/httpd/conf.d/schmoozecom.conf file does not change.