SME server (e-smith) and FOP2

Hello,

I've been interested in integrating FOP2 with my myPBX () system through a SME (e-smith) server.

I've installed FOP2 onto the server, created an ibay and moved the files to the bay directories.

I can access the fop2 login page as well as the fop2 manager page with my browser.

However, I cannot seem to create users in fop2 manager. I enter in all the details to create a user with extension '500' and secret '123456', I press 'Add User' or 'Submit Changes', the page refreshes yet no user has been created. - Screenshot included

I am also have difficulty getting the service to run from my ibay directories instead of the default install.

I have tried the command "./fop2_service -c /home/e-smith/files/ibays/fop2/server" yet the shell responds by telling me that there's no license file, then doesn't return control back to me and I have to SSH again.

Any advice would be greatly appreciated, thanks!

P.S I need to get any solution up and running in 16 hours so I'm more than willing to jump ship off of SME!

Comments

  • Hi,

    First of all, please do not install server files on a path that might be reachable via a web server. I am not sure about SME. but if /home/e-smith-files/ibays/fop2 is reachable via web, then it is very bad practice to put the server files there, as you will be exposing configuration files, etc. Only the web portion should be inside a web reachable directory. The server files should be located outside any public accessible directory, like /usr/local , /opt , etc.

    When you run:

    [fixed]
    ./fop2_server -c /path/to/config
    [/fixed]

    You are actually running the fop2 server, without daemonizing it, so it will took the console until you stop it with ctrl-c. That is normal and expected. If you want to send it to the background, pass the -d parameter, like

    [fixed]
    ./fop2_server -c /path/to/config -d
    [/fixed]

    Now, for creating users you need to have the database and tables created. If the mysql credentials you put in /admin/config.php have permissions to create tables, then you only need to create the database (that is the easiest way to do it, let the manager create the tables if they are not there). Or, you can run the install.sql commands to create the tables. My guess is that the database is not created, or you do not have enough privileges to create tables.

    Best regards,

Sign In or Register to comment.