Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 17:57:25

Author Topic: Custom Button untuk Perintah di Backend  (Read 2739 times)

0 Members and 1 Guest are viewing this topic.

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Custom Button untuk Perintah di Backend
« on: 2015-05-17, 17:24:37 »
mau tanya pak, kalo buat custom button untu menjalankan perintah di backend (server side) bisa nggak pak?

kasusnya gini, user perlu button untuk restart aplikasi yg jalan dengan nodejs, tapi cukup lewat control panel, gak perlu masuk untuk akses dengan ssh

bisa gak pak dibuat custom button nya di panel kloxomr?

terima kasih

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Custom Button untuk Perintah di Backend
« Reply #1 on: 2015-05-17, 19:06:51 »
Mungkin bisa pakai 'Custom buttons' di 'Admin > custom buttons'. Hanya mengarahnya ke url sehingga anda perlu buat php file di /usr/local/lxlabs/kloxo/httpdocs dan di url diisi dengan 'http://<domain atau ip>:7778/phpanda.php'.

Isi php yang anda buat bisa (contoh; perlu penyesuaian):
Code: [Select]
<?php
        exec
("/etc/init.d/notejs restart");
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Custom Button untuk Perintah di Backend
« Reply #2 on: 2015-05-21, 18:21:05 »
berarti kalo pake https, di arahkan ke port untuk https nya juga ya pak?
misalnya https://<domain atau ip>:7777/filetombol.php
begitu kah pak mustafa?

trims

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Custom Button untuk Perintah di Backend
« Reply #3 on: 2015-05-21, 18:28:30 »
berarti kalo pake https, di arahkan ke port untuk https nya juga ya pak?
misalnya https://<domain atau ip>:7777/filetombol.php
begitu kah pak mustafa?

trims
Mestinya.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Custom Button untuk Perintah di Backend
« Reply #4 on: 2015-12-08, 16:21:31 »
kalau buat custom button per-user gimana ya pak?

saya coba buat custom button kok nongolnya untuk semua user ya pak?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Custom Button untuk Perintah di Backend
« Reply #5 on: 2015-12-08, 16:25:52 »
kalau buat custom button per-user gimana ya pak?

saya coba buat custom button kok nongolnya untuk semua user ya pak?
Tidak bisa per-user.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.054 seconds with 18 queries.

web stats analysis