Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8110889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:55:09+00:00 2026-06-06T01:55:09+00:00

I have searched for a CGI and read about it but nothing useful found.

  • 0

I have searched for a CGI and read about it but nothing useful found. what i can understand is the concept.

which in my case is an interface that is responsible for executing binary files without the apache permission or in an enviroment where the directing and redirecting of the binary execution is monitored and safe.

But couldn’t find any tutorials.
I have created a cgi-bin in my public_html and then i created a .sh file with the following header

#!/usr/bin/env bash

What i am trying to do is to execute some binary files from my web application. but every script line in this file work fine, exclude the binary execution.
Does anyone have any ideas or good tutorials of the following question:

1) Is the header i am using is fine?

2) what is the extension of the file should be?

3) does Zend provide any libraries that can make my job easier and tidy?

4) If it is configured okay. how can i excute it from a php script (my guess is exec(filename)).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T01:55:11+00:00Added an answer on June 6, 2026 at 1:55 am

    Have you simply tried exec()? I use it all the time… and has worked on virtual hosts, local servers, nginx (php-fpm). Sample code below:

    <?
    $command="uptime"; $output; $retval; $errors="";
    exec ( $command ,  &$output, &$retval  );
    echo $output[0]."\n";
    unset($output);
    ?>
    

    With output:

    09:30:37 up 269 days, 18:08,  3 users,  load average: 0.00, 0.00, 0.00
    

    Most recently, I used a php script to act like a remote bash script to delete the cache in a Magento server when a special case happens and an extension’s developer said we need to manually delete the files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have searched the forums and found a few threads, but nothing specific to
I have searched the web for hours but I can not find anything about
I have searched far and wide on the Internet but have not found anything
I have searched a bit on google, but didn't really found an answer to
I have searched a lot about the difference between Website and WebApplication but didn't
I have searched the knowledge base high and low, but nothing seems to give
I have searched for this, and I can't find any documentation about doing these
I have searched through the forum, but found no match for the issue I
I have searched around for an answer to this but can't find one. When
I have searched on strings, lists, append etc. but can't seem to handle this.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.