Skip to content

imhaka/runonsharedhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Run On Php Shared Host Any App

How to use?

Get method use for all request.

For example:

  • Run Node app:
    • Download the favorite node version from this site http://nodejs.org/dist/
    • Extract the node-vxx.yy.zz.tar.gz on your php host and change the name "node"
    • Upload your node application to your host.
    • and use to below instruction

Attention: Do not forget change to application directory permission

GET example.com/index.php?server=node/bin/node&app=mqtt/index.js
  • result:
{
    "pid": "2199255",
    "output": "starting mqtt application",
}
  • List all PID
GET  example.com/index.php?listpid
  • result:
{
    "pids": [
    "2199255  : node/bin/node mqtt/index.js >log/log1349610073.txt 2>&1 & echo $!" ]
}
  • Kill app
GET  example.com/index.php?kill=2199255
  • result:
{
   "pid": "2199255",
   "output": null
}

About

run on shared host any app eg: node server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages