FS PBX Now Installs in One Command – No More Separate FusionPBX Setup!

markjcrane

Active Member
Staff member
Jul 22, 2018
582
206
43
50
FS PBX benefits greatly from FusionPBX by using its foundation, database, and code, saving you an enormous amount of work. Then you benefit even more from using this forum as a place for marketing people.

The collaboration offer wasn't offered ahead of time. There was no indication of how you would collaborate. You have been encouraging people to use an older version of FusionPBX 5.1. This holds them back from getting bug fixes and performance improvements. Keeping it on FusionPBX 5.1 and the forked version benefits you. It forces people to get support from your group. Are you prepared to offer them support? It makes it difficult for the FusionPBX project to support it in the long term because it's an older version and a modified version. Let's say someone used your software but modified it would you feel comfortable supporting 3rd party changes?

We are making significant improvements including bug fixes, and performance improvements to FusionPBX in each version. Our improvements are based on user feedback and years of thinking about finding better ways to get things done.

Competition does lead to improvements happening at a faster pace. In this way the community will benefit from this competition.
 
Last edited:

pbxgeek

Active Member
Jan 19, 2021
253
99
28
38
@vuthy09 You made it to the last command in the install script. Can you try running this command separately


Code:
cd /var/www/fspbx
php artisan fspbx:initial-seed


If it fails, check this log for the last errors /var/www/fspbx/storage/logs/laravel.log. If not, rerun the install script again, and it will probably go through all the way.
 

TharunV

New Member
Jul 24, 2024
10
0
1
35
CDR page is empty on a fresh install using this method. it is not updating the cdr from local storage i guess.

is there a solution for this?

1741094945658.png
 

franciscom.corona

New Member
Nov 7, 2023
5
1
3
45
nginx is already the newest version (1.22.1-9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Restarting Nginx...
Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
Nginx installation and configuration completed successfully!
Nginx installed successfully.
No existing fusionpbx site in sites-enabled to remove.
No existing fusionpbx site in sites-available to remove.
Copied new Nginx site config to sites-available.
Existing symbolic link for fspbx.conf removed.
Linked new Nginx site config to sites-enabled.
SSL directory structure created successfully.
.+......+...+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+..+.......+.....+...............+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.+.....+.+.....+....+...+...+..............+..........+...........+.......+...+..+.+.....+....+...+........+......+...............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
..+......+...+.....+.+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+.+.........+...+...+..............+...+...+....+........+.......+...+...+........+....+.....+......+.......+.....+...+.......+.....+...+......+......+..........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+......+.+.....+....+.........+.....+....+...............+...+........+.+.....+.+..+............+......+...+....+......+...........+......+....+.....+...+......+....+...+..+.+..+..................+......+.+...+......+......+............+...........+......+....+...........+...+.............+..+.+.....+.+..............+.......+..+.+..+...+.+...+...+..+.........................+...+...+......+..............+.........+...+...+....+............+........+......................+...+......+..+.......+..+......+....+...+.....+.......+...........+..........+..+.+..............+.+.....+......+.+..............+.+...+..+...+....+...+...+......+...........+...+.+......+..+...+....+.....+..........+.........+......+...+...+.....+...+....+..+..................+.+.................+..................+....+..+....+...........+.+..............+...+................+..+..........+..+................+......+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Self-signed SSL certificate and key created successfully.
/var/www/fspbx/install/install.sh: line 344: service: command not found
Error occurred during Nginx reload and restart.

how can I pass this?
 

pbxgeek

Active Member
Jan 19, 2021
253
99
28
38
@TharunV I was able to reproduce this problem on another server. I'm looking into this, and I will get back to you shortly.
 

pbxgeek

Active Member
Jan 19, 2021
253
99
28
38
Thank you all for reporting additional issues following the initial installation. I have made several improvements to the script, including automatic updates for menu links, resolving CDR upload issues, and addressing other minor enhancements. These updates have now been integrated into the main script.

For those who installed the system before this update, I highly recommend upgrading to version 0.9.40 by following these steps:

1) Go to Default Settings. Remove all records under Switch. Select all -> delete.
2)Then SSH to the server and do the following.

Code:
cd /var/www/fspbx
git pull
php artisan app:update

This will repopulate the Switch settings under Default Settings and perform some other tasks mentioned above.

To install a new menu with updated links (also a part of updated installation script) do the following:

Code:
php artisan menu:create-fspbx
php artisan db:seed

I also recommend enabling two-factor authentication (2FA) after configuring the mail server in the .env file. To enable 2FA, update the config/fortify.php file by uncommenting the email-challenge line.

If you have any questions or encounter any issues, feel free to reach out. Your feedback has been invaluable in improving the installation script, making it more efficient and user-friendly for future use.
 

pbxgeek

Active Member
Jan 19, 2021
253
99
28
38
@vuthy09 Run this to install it.
Code:
sudo cp /var/www/fspbx/public/app/event_guard/resources/service/debian.service /etc/systemd/system/event_guard.service
sudo sed -i "s|WorkingDirectory=/var/www/fusionpbx|WorkingDirectory=/var/www/fspbx/public|" /etc/systemd/system/event_guard.service
sudo sed -i "s|ExecStart=/usr/bin/php /var/www/fusionpbx/app/event_guard/resources/service/event_guard.php|ExecStart=/usr/bin/php /var/www/fspbx/public/app/event_guard/resources/service/event_guard.php|" /etc/systemd/system/event_guard.service
sudo systemctl enable event_guard
sudo service event_guard start
 

pbxgeek

Active Member
Jan 19, 2021
253
99
28
38
@vuthy09 Did the link above not help you? You get this error when the session variable doesn't match the browser URL address. It's a security measure that the Laravel framework has against people trying to brute force. If you follow all the steps in the article, you should be able to fix it. If it doesn't fix it, send me a private message, and I'll help you. The same goes for Azure installs. I'd like to see what's causing the issue on those virtual machines.
 
  • Like
Reactions: Dice9797

Dice9797

New Member
Mar 2, 2025
2
1
3
45
View attachment 4564

After the installation, login page shows up, but I can't login due this error message.
The fix is to update the .env file.


Updating Environment Configuration​

After creating the SSL certificate, it is recommended to update the .env file with the following settings:

APP_URL=https://fs-pbx.example.com
SESSION_DOMAIN=fs-pbx.example.com
SANCTUM_STATEFUL_DOMAINS=fs-pbx.example.com


These settings ensure that your application correctly handles secure sessions and authentication over HTTPS.

After making changes to this file make sure to run this command php artisan config:cache
 
  • Like
Reactions: vuthy09

pbxgeek

Active Member
Jan 19, 2021
253
99
28
38
@vuthy09 Something is not working on your machine. I just checked a newly installed server, and sip profiles and modules pages load without any issue. Is Freeswitch running on your machine?
 
  • Like
Reactions: vuthy09