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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:12:27+00:00 2026-05-24T06:12:27+00:00

This problem occurred to me multiple times now, and it’s time for me to

  • 0

This problem occurred to me multiple times now, and it’s time for me to do it the right way!

How can I upload a website to the server, where php has access to the folders for writing data.

Usually I use an FTP program, but I can’t upload as root, so there are restriction problems all over the place…

How do you do stuff like this?

Thanks!

EDIT

I’m sorry, I accidentally added rails to the tags instead off php.

Probably I need to clarify my problem, since the answers didn’t really help me out here:

I already have a server running apache, DirectAdmin and some other stuff like rails.

And the problem is when I upload a website like joomla or wordpress via FTP the restrictions always need to be set to 777/775 or these sites can’t write to the folders..

So what I need to know is:
How can I upload these sites (via FTP/SSH) as a user (root) that is the same as php, so that php can create files in all folders it needs to write to?

Hope I’m being more clear now, thanks for the help so far!

  • 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-24T06:12:27+00:00Added an answer on May 24, 2026 at 6:12 am

    The solution

    1. Upload your site with FTP

    2. SSH to the server and go to the public_html folder

    3. chown -R [user_name]:[group_name] [folder_name]

    For me the right user was apache..

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

Sidebar

Related Questions

This problem occurred during daylight saving time change. After the change occurred, we've noticed
This problem crops up every now and then at work. Our build machine can
This problem has bugged me so many times and i have now decided to
This problem has been kicking my butt for a few days now. I have
This problem is very strange and I'm hoping someone can help me. For the
I am having this problem An error occurred while trying to make a request
This is a problem I've had on my mind for a long time. Being
I have a problem involving NDSolve in Mathematica, which I run multiple times with
I have a form where users can enter multiple images to upload along with
This problem has been solved thanks to your suggestions. See the bottom for details.

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.