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 8436727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:15:40+00:00 2026-06-10T07:15:40+00:00

I have an Amazon ec2 instance (linux). I’d like you (yes, you) to be

  • 0

I have an Amazon ec2 instance (linux).

I’d like you (yes, you) to be able to upload a PHP file and then serve it live on http://www.mydomain.com/yourname. I’d also like to be able to do this for numerous other people (www.mydomain.com/theirname).

I’m worried that you (or they, let’s not point fingers) could do malicious things (purposefully or accidentally). For example, an infinite loop, reading/writing outside of one’s root directory, taking the server down, running system commands, etc. This is what I would try if I wanted to be malicious.

Is there any way to set up PHP/apache/user permissions, or maybe search through their code before serving it, so that being malicious would at least be much, much harder?

  • 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-10T07:15:42+00:00Added an answer on June 10, 2026 at 7:15 am

    Among other things, you’ll definitely want to adjust your PHP.ini to include this:

    disable_functions =exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
    

    This will prevent the execution of those functions within any PHP files that utilize this .ini

    I would also enable open_basedir support to lock down users to within their own directories so they can’t use something like:

    require_once '../../another_user/index.php';

    or

    $notMyFile = file_get_contents('../../another_user/config.php');

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

Sidebar

Related Questions

I have elastic search running on a linux instance on Amazon EC2. I use
I have set up an Amazon EC2 instance and am able to SSH into
I have an EBS backed Amazon EC2 instance. I would like to change the
I have an EC2 instance running an AMI based on the Amazon Linux AMI.
I am new to EC2. I have created an instance with Amazon Linux AMI
I have a django test, on an amazon ec2 instance, I see the It
I have created an Amazon EC2 Instance that provides Windows Server 2008 with SQL
I have strange JRUN issue. I have installed ColdFusion 9.0 on Amazon EC2 instance
I have an ec2 instance running on amazon which has AMI(ami-1b814f72).Its running RedHat 4.4.4-13
I have a Amazon EC2 instance and the purpose of this instance is to

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.