Ticket #2081 (closed Bugs: fixed)

Opened 6 years ago

Last modified 6 years ago

Error after latest SVN of 2.3

Reported by: vgster Assigned to:
Priority: blocker Milestone: 2.3
Component: Installation Version: 2.3-branch
Keywords: Cc:
Confirmation: Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

After install clicking freepbx admin in the gui just returns a blank page. I did an amportal stop and got

/usr/sbin/amportal: line 26: /var/lib/asterisk/bin/freepbx_engine: Permission denied

Looks like it just needs a chmod +x and it's fine.

Change History

07/12/07 00:40:06 changed by pnlarsson

This is the problem in install_amp:

// **** Set permissions all files

if ($install_files)
{
        outn("Setting permissions on files..");
        if (!$dryrun) {
                exec($amp_conf["AMPSBIN"]."/amportal chown");
        }
        out("OK");
}

Becouse /var/lib/asterisk/bin/freepbx_engine can't run then this will fail *silently*. There needs to be a chmod 774 / chown, before running this.

07/12/07 21:07:57 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to worksforme.

freepbx_engine has is set to execute in its svn property. I just did an svn export of 2.3 and it comes out executable? This seems to work - if there are still problems, please reopen with step by step instructions on exactly what you are doing that is resulting in it not being executable.

07/12/07 21:57:45 changed by vgster

  • status changed from closed to reopened.
  • resolution deleted.

Did an svn up to get the latest version
rm /var/lib/asterisk/bin/freepbx_engine
./install_amp --force-version=2.2.2

[root@localhost freepbx]# amportal start

FATAL: can not find freepbx_engine to start Asterisk

ll /usr/src/freepbx/amp_conf/bin
-rwxr-xr-x  1 root root  6379 Jul 10 01:07 freepbx_engine

ll /var/lib/asterisk/bin/freepbx_engine
-rw-r--r--  1 root root 6379 Jul 10 14:59 /var/lib/asterisk/bin/freepbx_engine

07/12/07 22:16:02 changed by pnlarsson

                                                } else {
                                                        copy($source, $destination);
                                                }

It seams that php copy does not set permissions on a copy - just lite cp does, needs the -a thing... Maybe this will be better?

exec("cp -a  $source $destination");

07/12/07 22:33:45 changed by p_lindheimer

  • status changed from reopened to closed.
  • resolution set to fixed.