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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:51:23+00:00 2026-05-22T01:51:23+00:00

Using a standard LAMP server with full control, I need to upload an image

  • 0

Using a standard LAMP server with full control, I need to upload an image from DomianA using a PHP script to a directory on DomainB. The server has suPHP and mod_security in place.

Currently using an absolute path to DomainB I am getting the error:

Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect.

I tried to chown the upload directory on DomainB to the user of DomainA (where the script is being run). With no luck.

After researching I have found two potential solutions, and want to see if there are any better methods. And maybe some code to get me going in the right direction.

  1. Symlink – so basically have a dir (below the domain level I guess?) then have each domain have a symbolic link to that location.
  2. Modify my httpd.conf – not sure what to do, but I don’t want to open any potential security holes by doing this.
  • 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-22T01:51:23+00:00Added an answer on May 22, 2026 at 1:51 am

    If domain B only needs to serve up files from that directory and not modify them, then put the directory somewhere in domain A’s tree, with proper permissions to allow the uploads.

    You can then configure domain B to access that directory via an alias:

    Alias /path/to/the/files/in/domain/A  /dom_a_dir
    

    Then you can access the files directly via

    http://dom.b.com/dom_a_dir
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I have a custom tool which generates vanilla-SQL (only using standard SQL), from
Using standard mysql functions is there a way to write a query that will
I am using standard 3G connection for video streaming. Streaming Media application works fine.
I'm using standard Delphi constants DayMonday, etc and I want to convert them to
I am using standard windows forms controls under C#. I have two controls which
Using the standard win32 api, what's the best way to detect more than one
I'm using the standard edition of JIRA and on the whole, I love it.
I am using the standard .Net 2.0 DataGridView with sort mode of automatic on
I am using the standard outputcache tag in my MVC app which works great
We're using the standard ASP.NET authentication provider (AspNetSqlMembershipProvider as it happens) and the defualt

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.