PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, February 11, 2022

[FIXED] Run a tool on LAMP server as service

 February 11, 2022     lamp, service     No comments   

Issue

I have installed and configured LAMP to run on my Ubuntu 11.10. Now I need to set up a tool to be run on this LAMP server. The tool can be run by a jar file and there is also a shell script to run it. Contents of script are:

#Script must be in the same directory as tool.jar
java -Dapple.laf.useScreenMenuBar=true -Xmx900m -jar `dirname $0`/tool.jar $*

I have copied the tool directory in the /var/www/ folder but do not know what to do next. Specifically I need to add link on my Localhost page to run this tool. Expecting help.

AK


Solution

http://php.net/manual/en/function.shell-exec.php



Answered By - 5566
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing