I want to run a shell script off my VPS through a website to start and stop a service. I have a script i currently execute by puttying in and typing ctf.sh. I had a look at using CGI and stuff, however this has left me thoroughly confused. On my VPS my web folder is ofcourse /var/www so where would i find the cgi-bin folder and how would i go about runing such things? Sorry for such a stupid question :S
How to execute a script on a server from a webpage?
210 Views Asked by cheese510 At
1
There are 1 best solutions below
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in SHELL
- passing text with \n as one argument in shell
- Delete the extra space after special character in all the lines of text file
- Calling a python function with options from shell script
- bc: prevent "divide by zero" runtime error on multiple operations
- schedule and automate sqoop import/export tasks
- How can launch an external process from java and still be able to interact with this process?
- Linux find files where mtime and ctime are not equal
- Find all files contained into directory named
- Quick way to remove all folders titled CVS in a directory and it's subdirectories?
- shell process not exiting on `exit` inside `$()`
- How to set environment variables with a forward slash in the key
- System 'bash -ic' stuck when I hit ctrl+c
- bash functions returns "command not found"
- Why does pattern "*.so?(.*)" produce a syntax error in a script but not on command line?
- retrieve plaintext password from file using bash command
Related Questions in CGI
- Disconnect Client connected to cgi application
- Python CGI script won't execute if I 'import cgi'
- .jpg out of .cgi with java (IP Webcam)
- Input parameter for perl CGI script
- A C cgi script to serve binary file from sqlite3_column_blob pointer
- How to run CGI script in web browser?
- Can parse GET params from URL
- How to get POST parameters from CGI scripts written in bash?
- Can not get params from URL - why is my cgi.FieldStorage() empty?
- File not found error, but file exists
- QUERY_STRING is not obtained in CGI (C code)
- Get username on Server that uses digest authentication (Perl)
- calling cgi script from other cgi script
- Attaching CGI python script to PyCharm debugger?
- Having trouble executing a python script from the web browser
Related Questions in VPS
- SPF and DKIM records for Mandrill on DigitalOcean
- RAM allocation in WHM/Cpanel using SSH
- How to know how much Ram and how many CPU are available for a Linux/Plesk Vps?
- Setup VPS with a Symfony2 project from git repository
- laravel5: chdir(): No such file or directory (errno 2)
- plesk when upgrading php, will this break everything?
- Multi-domains I/O n CPU restrictions via nginx vps
- Heroku. Two or more applications in one dyno
- best mysql config for my vps
- Permittion Denied whilst executing '.sh'
- My VPS restarting every hour
- Remote access from my PC to MySQL 5.6 installed on VPS with Ubuntu Server 14.04
- Heroku makes you pay to use specific features, why? how does this work with hosting solutions?
- Hosting webapp on an AWS EC2 server. Do I need to use the AWS "application services" for search and email?
- Setup a MYSQL database on a Windows VPS for connecting outside network
Related Questions in CGI-BIN
- running a python script from cgi-bin at other location
- cgi-bin, bash and formatting output
- How to successfully run Perl script with setuid() when used as cgi-bin?
- Server-side E-mail scripting
- Complex cgi script works, but test.cgi doesn't
- Android HttpURLConnection not working with cgi-bin?
- Getting output from the subprocess.Popen command into a webpage? (maybe an apache issue)
- How to run a perl script in localhost?
- xmlhttpRequest to pass URL in xmlhttp.open()
- Is this an attempt to hack me?
- 2 tuples equal the same when printed and are in unicode but when compared they dont match Python 2.7
- embedding external css and script in python cgi shows 500 Internal Server Error
- Apache 2.4.56 MOD_REWRITE is not working for /cgi-bin/
- Redirect Default Domain Access and Non-Existent Links to 404 Page with Specific Conditions
- Standards for infrastructure in cgi-bin directory
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could execute your script like: