FusionPBX Installation on Ubuntu 20.04

Status
Not open for further replies.

zeroiq

New Member
Oct 10, 2022
6
1
3
26
Hey,
I want to install FusionPBX on Ubuntu 20.04, on the weekend 2 days ago it was succesful, i deleted so much necessary things and decided to reinstall.
Did a clean re-installation on my VPS, but the problem is what you can see below. Tried to re-install clean again, tried to install it twice, install it with sudo don't know where to search for the answer.

ALTER ROLE
ALTER ROLE
PHP Warning: Use of undefined constant PROJECT_PATH - assumed 'PROJECT_PATH' (this will throw an Error in a future version of PHP) in /var/www/fusionpbx/resources/functions.php on line 2165
PHP Warning: Use of undefined constant PROJECT_PATH - assumed 'PROJECT_PATH' (this will throw an Error in a future version of PHP) in /var/www/fusionpbx/resources/functions.php on line 2165
ERROR: relation "v_domains" does not exist
LINE 1: insert into v_domains (domain_uuid, domain_name, domain_enab...
^
error: SQLSTATE[08006] [7] FATAL: database "{database_name}" does not exist<br/>PHP Warning: Use of undefined constant PROJECT_PATH - assumed 'PROJECT_PATH' (this will throw an Error in a future version of PHP) in /var/www/fusionpbx/resources/functions.php on line 2165
PHP Warning: Use of undefined constant PROJECT_PATH - assumed 'PROJECT_PATH' (this will throw an Error in a future version of PHP) in /var/www/fusionpbx/resources/functions.php on line 2165
PHP Warning: Use of undefined constant PROJECT_PATH - assumed 'PROJECT_PATH' (this will throw an Error in a future version of PHP) in /var/www/fusionpbx/resources/functions.php on line 2165
PHP Warning: Use of undefined constant PROJECT_PATH - assumed 'PROJECT_PATH' (this will throw an Error in a future version of PHP) in /var/www/fusionpbx/resources/functions.php on line 2165
ERROR: relation "v_users" does not exist
LINE 1: insert into v_users (user_uuid, domain_uuid, username, passw...
^
ERROR: relation "v_groups" does not exist
LINE 1: select group_uuid from v_groups where group_name = 'superadm...
^
PHP Warning: Use of undefined constant PROJECT_PATH - assumed 'PROJECT_PATH' (this will throw an Error in a future version of PHP) in /var/www/fusionpbx/resources/functions.php on line 2165
PHP Warning: Use of undefined constant PROJECT_PATH - assumed 'PROJECT_PATH' (this will throw an Error in a future version of PHP) in /var/www/fusionpbx/resources/functions.php on line 2165
ERROR: relation "v_user_groups" does not exist
LINE 1: insert into v_user_groups (user_group_uuid, domain_uuid, gro...
^
error: SQLSTATE[08006] [7] FATAL: database "{database_name}" does not exist<br/>
 

dbbrito

Member
Oct 27, 2021
44
1
8
45
I'm also having the same problem on debian 11
error: SQLSTATE[08006] [7] FATAL: database "{database_name}" does not exist
 
Last edited:

markjcrane

Active Member
Staff member
Jul 22, 2018
503
177
43
49
The issues reported here have been fixed. I have to do another install to see if there are more things to fix.
 

firmfoit

New Member
Jul 5, 2022
18
0
1
Thanks @markjcrane, I've just retried the install on my side (Deb 11) the initial errors are fixed as you noted, if it is helpful my system is now producing the errors below, and I'm unable to log in using the printed username and password.

Code:
Processing triggers for man-db (2.9.4-2) ...
CREATE DATABASE
CREATE DATABASE
CREATE ROLE
CREATE ROLE
GRANT
GRANT
GRANT
ALTER ROLE
ALTER ROLE
INSERT 0 1
PHP Warning:  Illegal string offset 'default_setting_subcategory' in /var/www/fusionpbx/resources/classes/switch_settings.php on line 263

Warning: Illegal string offset 'default_setting_subcategory' in /var/www/fusionpbx/resources/classes/switch_settings.php on line 263
PHP Warning:  Illegal string offset 'default_setting_enabled' in /var/www/fusionpbx/resources/classes/switch_settings.php on line 264

Warning: Illegal string offset 'default_setting_enabled' in /var/www/fusionpbx/resources/classes/switch_settings.php on line 264
PHP Warning:  Illegal string offset 'default_setting_subcategory' in /var/www/fusionpbx/resources/classes/switch_settings.php on line 265

Warning: Illegal string offset 'default_setting_subcategory' in /var/www/fusionpbx/resources/classes/switch_settings.php on line 265
PHP Warning:  Illegal string offset 'default_setting_value' in /var/www/fusionpbx/resources/classes/switch_settings.php on line 265

Warning: Illegal string offset 'default_setting_value' in /var/www/fusionpbx/resources/classes/switch_settings.php on line 265
 

codemonkey76

New Member
May 14, 2020
22
1
3
47
I just did an install on ubuntu 20.04 and cpu running at 100%, and journal is being flooded with:

feof() expects parameter 1 to be resource, bool given in /var/www/fusionpbx/resources/classes/event_socket.php on line 145
 

markjcrane

Active Member
Staff member
Jul 22, 2018
503
177
43
49
feof() expects parameter 1 to be resource, bool given in /var/www/fusionpbx/resources/classes/event_socket.php on line 145

This should be fixed.
 

codemonkey76

New Member
May 14, 2020
22
1
3
47
I reinstalled from scratch... OK, another problem. I zip up my theme from another fusionpbx server and replace on the new server, and even through both default folders under the /var/www/fusionpbx/themes folder are identical, i am getting:
The stylesheet https://xxxxxxxxxxxxxxxxx/themes/default/css.php was not loaded because its MIME type, “text/html”, is not “text/css”.
 
Aug 10, 2017
37
0
6
56
I confirm, I have installed FusionPBX on a VM this morning and the install went flawlessly,
The CPU was running at 50% and I did Mark said, everything WORKS !!!
 
Status
Not open for further replies.