FreePBX WebAdmin broken

Apache doesn’t have permissions to load anything in that folder. Fix your permissions.

/usr/local/lib/php/ ? just tried changing group and owner to both apache and asterisk.

drwxrwxrwx 15 root root 4096 Sep 16 10:25 .
drwxr-xr-x. 3 root root 4096 Sep 15 13:24 …
drwxr-xr-x 2 apache apache 4096 Sep 15 13:25 Archive
drwxr-xr-x 2 apache apache 4096 Sep 17 14:09 build
drwxr-xr-x 3 root root 4096 Sep 15 13:25 .channels
drwxr-xr-x 2 apache apache 4096 Sep 15 13:25 Console
drwxr-xr-x 3 apache apache 4096 Sep 15 13:25 data
-rwxrwxrwx 1 apache apache 1782 Sep 16 10:25 DB.php
-rw-r–r-- 1 root root 2470 Sep 15 13:25 .depdb
-rw-r–r-- 1 root root 0 Sep 15 13:25 .depdblock
drwxr-xr-x 6 apache apache 4096 Sep 15 13:25 doc
drwxr-xr-x 4 apache apache 4096 Sep 17 09:42 extensions
-rw-r–r-- 1 root root 6961 Sep 15 13:25 .filemap
-rw-r–r-- 1 root root 0 Sep 15 13:25 .lock
drwxr-xr-x 2 apache apache 4096 Sep 15 13:25 OS
drwxr-xr-x 11 apache apache 4096 Sep 15 13:25 PEAR
-rw-r–r-- 1 apache apache 15176 Sep 15 13:25 pearcmd.php
-rw-r–r-- 1 apache apache 35473 Sep 15 13:25 PEAR.php
-rw-r–r-- 1 apache apache 1025 Sep 15 13:25 peclcmd.php
drwxr-xr-x 5 root root 4096 Sep 15 13:25 .registry
drwxr-xr-x 3 apache apache 4096 Sep 15 13:25 Structures
-rw-r–r-- 1 apache apache 20288 Sep 15 13:25 System.php
drwxr-xr-x 5 apache apache 4096 Sep 15 13:25 test
drwxr-xr-x 2 apache apache 4096 Sep 15 13:25 XML

So what about essentially starting over with freepbx? Is there a way to start over with the latest version? All of my asterisk settings should remain, right? Is that maybe easier?

FreePBX REQUIRES your web server to run as the asterisk user. php ownership is a non-sequitor but it requires your code to comply with its version

sbin]$ ls -al httpd
-rwxr-xr-x 1 asterisk asterisk 367136 Jun 19 08:45 httpd

Just changed it, still the same.

Dig deeper. Provide logs

For Apache:
- - [18/Sep/2018:11:47:34 -0700] “GET /admin/config.php HTTP/1.1” 200 108 “-” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36”

I don’t see anything written to /var/log/asterisk/freepbx.log - is that the file I should be looking at?

Not really, that file is a little obtuse and needs fully interpreting by Sangoma, I would start with your apache2/httpd access and error logs.

Sorry - yep, that was my access.log -
X.X.X.X - - [18/Sep/2018:18:29:13 -0700] “GET /admin/config.php HTTP/1.1” 200 108 “http://pbx.munged.com:8000/admin/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0”

Nothing written to /var/log/httpd/error_log

Yep, it seems like it’s not working. I would start over with a modern and supported version of FreePBX on a modern (but not too modern :wink: ) supported OS

:frowning: It’s a colo VM, so I’m at the mercy of them… Hoping I can get the support to answer me

My sympathies. Many are happy with much cheaper cloud providers.

Any recommendations for a provider? Just 2 phones for me, 1 number, home user so basic setup, but hoping I can maybe somehow copy over my configs (import / export?) I have 2 extensions, as well as incoming calls ring 2 SIP phones as well as ring an external #. Nothing too fancy.

That’s a question that inflames all sorts of religidioticy :wink: any reputable/reliable provider will work, I would budget 5 dollars a month to get a “reputable/reliable” one.

Thanks. I’ll give my current provider a bit more time, I really don’t want to leave… Everything I’m seeing is about $19 a month, but I’ll do more looking tomorrow.

Vultr

Thanks! Prices look great, gotta figure out what config I need :slight_smile:

1 Like

Is there a way to export my blacklist? Stored somewhere in a database I can access ?

From the GUI of course and from bash prompt:

asterisk -x "database show blacklist"

Usually the $6 per month / $5 plus $1 for backups will work fine.