We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Run scripts via GUI ?
-
- Posts: 6
- Joined: Fri Apr 07, 2017 2:06 pm
Run scripts via GUI ?
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
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
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Run scripts via GUI ?
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
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
-
- Posts: 6
- Joined: Fri Apr 07, 2017 2:06 pm
Re: Run scripts via GUI ?
the idea isn't to run them via cronmehargags 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 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
Re: Run scripts via GUI ?
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.
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.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Run scripts via GUI ?
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
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