Changed admin port - The requested URL was not found on this server


(Mvogel4949) #1

I needed to open port 80 for Zulu so I changed the admin port to 8088 in the port management section. It seemed to change internal programming

Automatically Generated File - 1589565172

{“acp”:{“port”:“8088”,“dir”:"/var/www/html"},“ucp”:{“port”:“81”,“dir”:"/var/www/html/ucp/"},“restapi”:{“port”:“83”,“dir”:"/var/www/html/restapi/"},“restapps”:{“port”:“82”,“dir”:"/var/www/html/restapps/"},“hpro”:{“port”:“84”,“dir”:"/tftpboot/"},“leport”:{“port”:“80”,“dir”:"/invalid/folder/name"}}

Do NOT edit this file as it is auto-generated

Starting acp

acp

Listen 8088
<VirtualHost *:8088>
Alias /.well-known /var/www/html/.well-known
Alias /.freepbx-known /var/www/html/.freepbx-known
RewriteEngine on
RewriteRule ^/.(well-known|freepbx-known)/ - [H=text/plain,L]
RewriteRule (^.|/.) - [F]
DocumentRoot /var/www/html

But when I go to access the system I get

The requested URL was not found on this server.

Asterisk/13.32.0

Did I miss a step? I ran a fwconsole restart but that didn’t seem to help


(Sergio Lobera) #2

Hi ! How are you ?
So, you are trying to open http://your-ip-here:8088 ?
What’s the output for this: lsof -i:8088 ?


(Mvogel4949) #3

You are correct on the address

[root@hcp fop2]# lsof -i:8088
COMMAND    PID     USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
asterisk 22872 asterisk   16u  IPv6 1899378      0t0  TCP *:radan-http (LISTEN)

(Sergio Lobera) #4

Something is wrong there, it’s only listening for ipv6 ?
Try to restart httpd service: service httpd restart

Paste the output of this command:

fwconsole sysadmin ports


(Mvogel4949) #5
[root@hcp fop2]# fwconsole sysadmin ports
+------+-------------+
| Port | Name        |
+------+-------------+
| 82   | restapps    |
| 83   | restapi     |
| 81   | ucp         |
| 8088 | acp         |
| 84   | hpro        |
| 80   | leport      |
|      | sslrestapps |
|      | sslrestapi  |
|      | sslucp      |
|      | sslacp      |
|      | sslhpro     |
+------+-------------+

(Mvogel4949) #6

That is odd. Prior to the port management switch it was working great on port 80 (IPV4)


(Sergio Lobera) #7

Try to change the port manually, type: nano /etc/httpd/conf.d/schmoozecom.conf

At the beginning you should see Listen 8088 and *VirtualHost :8088
Change port to 85 and then type: service httpd restart

Now try to access to http://your-ip:85 from your browser
Finally if that works, go again to System Admin > Ports Management and use port 85 instead.


(Sergio Lobera) #8

I know what is it, 8088 is default Asterisk Builtin mini-HTTP server port.
You are trying to use the same port at Apache.
So just do what I suggested above and change the port for any other than 8088.


(Mvogel4949) #9

Ha! What are the chances. Port 85 works great. Thank you for your help!


(Sergio Lobera) #10

Nice! Have a great weekend!


(system) closed #11

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.