Running the APM Server in Ubuntu 16.04LTS

144 views
Skip to first unread message

Pinku Deb Nath

unread,
Dec 27, 2016, 10:03:39 AM12/27/16
to apmonitor
Hello,

Is there a way to run the APM Server in Ubuntu?

John Hedengren

unread,
Dec 27, 2016, 10:34:18 AM12/27/16
to APM Google Groups
You can run APMonitor on Linux (Ubuntu), Windows, or MacOS with the client available in Python (pip install APMonitor), MATLAB (http://apmonitor.com/wiki/index.php/Main/MATLAB), or Julia (http://apmonitor.com/wiki/index.php/Main/JuliaOpt). These clients use a default public server: byu.apmonitor.com. If you'd like to run without an Internet connection on http://127.0.0.1 (localhost) or on your own dedicated server then you can download the APMonitor server for Windows (http://apmonitor.com/wiki/index.php/Main/APMonitorServer). The version available for download does not have some of the commercial solver options available with the public server. The public server (byu.apmonitor.com) is a Linux version running CentOS. Unfortunately, I don't have a version of the Linux server that is compiled without some of the commercial solver options. If you do need to run a version locally, I'd recommend finding a Windows computer, install the server, and then modify your client (Python, MATLAB, Julia) to point to it on your Intranet.

Best regards,

John Hedengren

On Tue, Dec 27, 2016 at 8:00 AM, Pinku Deb Nath <pran...@gmail.com> wrote:
Hello,

Is there a way to run the APM Server in Ubuntu?

--
--
APMonitor user's group e-mail list.
- To post a message, send email to apmo...@googlegroups.com
- To unsubscribe, send email to apmonitor+unsubscribe@googlegroups.com
- Visit this group at http://groups.google.com/group/apmonitor

---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmonitor+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
John Hedengren
APMonitor Modeling Language
jo...@apmonitor.com

http://www.youtube.com/subscription_center?add_user=APMonitorCom

Landen Blackburn

unread,
Jul 17, 2017, 8:03:57 PM7/17/17
to apmonitor
I noticed a web-page that describes how to install an APMonitor server on Linux:
http://apmonitor.com/wiki/index.php/Main/APMonitorServerLinux

Does that mean that there is now a way to use it locally without having to point to a windows computer? Or is the above web-page referring only to the commercial version?

I tried to install it by following the instructions, but I ran into an issue with Ubuntu 16.04 because php5 is apparently not supported; instead they have switched to php7:
https://askubuntu.com/questions/756879/cant-install-php5-on-ubuntu-16-04 

Is there a work-around for this?

Thanks,

Landen


On Tuesday, December 27, 2016 at 9:34:18 AM UTC-6, John Hedengren wrote:
You can run APMonitor on Linux (Ubuntu), Windows, or MacOS with the client available in Python (pip install APMonitor), MATLAB (http://apmonitor.com/wiki/index.php/Main/MATLAB), or Julia (http://apmonitor.com/wiki/index.php/Main/JuliaOpt). These clients use a default public server: byu.apmonitor.com. If you'd like to run without an Internet connection on http://127.0.0.1 (localhost) or on your own dedicated server then you can download the APMonitor server for Windows (http://apmonitor.com/wiki/index.php/Main/APMonitorServer). The version available for download does not have some of the commercial solver options available with the public server. The public server (byu.apmonitor.com) is a Linux version running CentOS. Unfortunately, I don't have a version of the Linux server that is compiled without some of the commercial solver options. If you do need to run a version locally, I'd recommend finding a Windows computer, install the server, and then modify your client (Python, MATLAB, Julia) to point to it on your Intranet.

Best regards,

John Hedengren
On Tue, Dec 27, 2016 at 8:00 AM, Pinku Deb Nath <pran...@gmail.com> wrote:
Hello,

Is there a way to run the APM Server in Ubuntu?

--
--
APMonitor user's group e-mail list.
- To post a message, send email to apmo...@googlegroups.com
- To unsubscribe, send email to apmonitor+...@googlegroups.com

- Visit this group at http://groups.google.com/group/apmonitor

---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmonitor+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

John Hedengren

unread,
Jul 17, 2017, 8:10:53 PM7/17/17
to APM Google Groups
Landen,

The Linux APMonitor executable is part of the download so you can run it locally on any Linux distribution. I think I installed it with php7 on my Windows subsystem for Linux but I didn't record the commands. The commands for php5 are on the web-page link but php7 should also work. If you do go through the php7 install, could you send me the sequence of modified commands so that others can also have help?

Thanks, 

John Hedengren 

- To unsubscribe, send email to apmonitor+unsubscribe@googlegroups.com

- Visit this group at http://groups.google.com/group/apmonitor

---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmonitor+unsubscribe@googlegroups.com.

Landen Blackburn

unread,
Jul 18, 2017, 10:52:43 AM7/18/17
to apmonitor
I followed almost the same sequence of commands used on this web-page: http://apmonitor.com/wiki/index.php/Main/APMonitorServerLinux
Here are the commands I used:

(connect to internet)

Step 1 Apache Web Server)
1.1) sudo apt-get update
1.2) sudo apt-get install apache2

Step 2 PHP Installation and Configuration)
2.1*) sudo apt-get install libapache2-mod-php
2.2*) sudo gedit /etc/php/7.0/apache2/php.ini
      **find "max_execution_time" and change the value: max_execution_time = 100000000
2.3) sudo apachectl restart (got some warning message about determining the server's fully qualified domain name; ignored it)

Step 3 APMonitor Installation)
3.1) cd /var/www/html
3.2) sudo wget http://apmonitor.com/download/apmonitor_install.tar.gz
3.3) sudo tar -xvf apmonitor_install.tar.gz
3.4) sudo rm apmonitor_install.tar.gz

3.5*) sudo chown -R www-data:www-data /var/www/html/*
3.6) sudo cp -n /var/www/html/bin/apmonitor /usr/bin/apmonitor
3.7) sudo cp -n /var/www/html/bin/apmonitor /usr/bin/apmonitor
3.8) sudo chmod 4775 /usr/bin/apmonitor
3.9) sudo cp -n /var/www/html/lib/* /usr/lib/

*commands that were different than the above website

Now, I can use APM without Internet, and I just use the 'http://127.0.0.1/' for the server in the python code. I verified that it works.

 Thanks for the quick reply!

John Hedengren

unread,
Jul 18, 2017, 11:18:29 AM7/18/17
to apmo...@googlegroups.com

Thanks Landen! I’ve updated the web-page with your instructions.

Reply all
Reply to author
Forward
0 new messages