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

  • Home
  • SEARCH
  • 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 1021117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:15:47+00:00 2026-05-16T11:15:47+00:00

I have access to a shared web host. The website installed there uses exec()

  • 0

I have access to a shared web host.
The website installed there uses exec(). About 4 months ago the function was enabled, but now they have put it on the disable_functions list. They put exec, passthru and shell_exec on that list but they forgot to put system🙂 This makes me think that the server admin is not very aware on what he’s doing. Anyway, they now say that those functions should have never be enabled and they wont re-enable them.

The installed website uses exec() to start some php scripts that would do some background work. Right now i’m looking to see if there is any other “legal” way to start those php scripts in background(i expect system() to work, but maybe they will disable it in the future also).
And now my simple question:
In the perdefined file structure i see a cgi-bin folder. Whats its use? From what i read on the web it is used to generate “dynamic” pages when accessed through the browser, but the server has php anyway installed, so i dont see its use.

  • 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-05-16T11:15:48+00:00Added an answer on May 16, 2026 at 11:15 am

    /cgi-bin/ is a directory where CGI script should be placed.
    You can work around restrictions on exec in PHP by using CGI.

    Create a file named somefile.sh with contents:

    #!/bin/sh
    printf "Content-Type: text/plain\n\n"
    #your code here
    

    This will only work if /bin/sh actually exists, and is executable (if you’re not in a chroot without /bin/sh for example)

    There are enough ways to get a command executed. If they disable CGI, you can continue with SSI.

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

Sidebar

Related Questions

I have a Drupal site on a shared web host, and it's getting a
I have installed a PHP application onto a shared hosting web server. I am
Modern ATL/MFC applications now have access to a new shared pointer class called CAutoPtr,
I have a MS-access database. But it is on the shared drive. And it
I have access to an Oracle server that has some databases that I would
EDIT: I also have access to ESXLT functions. I have two node sets of
Unfortunately I don't have access to a *nix box at work or at home.
Many of our customers have access to InstallShield, WISE or AdminStudio. These aren't a
We have a system with an Oracle backend to which we have access (though
How can I programmatically determine if I have access to a server (TCP) with

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.