Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Run scripts via GUI ?

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
diogojesus95
Posts: 6
Joined: Fri Apr 07, 2017 2:06 pm

Run scripts via GUI ?
  • Quote

Post by diogojesus95 » Thu Sep 28, 2017 11:53 am

is there a plugin or a way to run internal files scripts?

So i have these 2 scripts written in php.
Is there a way to run them via GUI or only ssh is available?
Files.php are stored inside server /home/user/scripts and not in /home/user/web/site.com/
Is there another way to run them without need to login via ssh every time?

thanks
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Run scripts via GUI ?
  • Quote

Post by mehargags » Fri Sep 29, 2017 7:23 am

Why not,
you call run these scripts via Cron automatically.
or
if you are good at coding (with PHP) you may edit Vesta Front end scripts and inject a button/link there that fires your scripts
Top

diogojesus95
Posts: 6
Joined: Fri Apr 07, 2017 2:06 pm

Re: Run scripts via GUI ?
  • Quote

Post by diogojesus95 » Fri Sep 29, 2017 7:42 am

mehargags wrote:Why not,
you call run these scripts via Cron automatically.
or
if you are good at coding (with PHP) you may edit Vesta Front end scripts and inject a button/link there that fires your scripts
the idea isn't to run them via cron
the problem is that our company website has been hacked a lot of times and me as sysadmin have to secure everything so everytime that our devs need to change something on the website they need to run a script that will change files and directory permissions and once changes are done they need to run a second script that will change permissions once again. so far they are doing it via ssh but i wanted to put under GUI so it would be faster and easier for them.
can you provide me the vesta cp folder? in order to change the front end? thank you for the reply
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Run scripts via GUI ?
  • Quote

Post by skamasle » Fri Sep 29, 2017 6:49 pm

All is posible in vesta, is a open source panel, by default is not posible but you can edit source code and add some links to your script.

Order way to do it is and alias and make a script in a protect dir domain.com/someprotecteddir

Put your script there, and when you what chante permitions access with your password there and run script.

Most secure way is access from ssh, is easy and fast

Always you can edit vesta gui as your needs.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Run scripts via GUI ?
  • Quote

Post by mehargags » Fri Sep 29, 2017 7:49 pm

Infact, just make a VestaCP user, host your site under it, enable bash SSH for that VestaCP user then copy those scripts inside /home/<vestauser>/xxx.sh

Now they can SSH into the server and will only have access to their own /home/<vestauser> so that they can edit site files and then run/re-run any scripts there. to make it faster, you can create aliases for the scripts so that they can be run with short one word commands
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password