Php script and File Usergroup Problem

Posted on 2009-02-21
Medium Priority
Last Modified: 2012-05-06

  I've just moved one of my servers but after the move i started to have file ovner problems with my centos 5.2 installation.

  When i create or upload a file it sets user group as  "usern:psacln" however with that user setting my script can not create files and folders for users uploads. When i change user group to user:nobody scipt can upload the files to these folders. But in each newly registered user a new folder is created and i have to manually change the file owner manually.

 How can i solve that problem completely? i heard smth about phpsuexec, can it solve my problem? if yes how can i solve that?

 centos 5.2 plesk 9.0

Question by:jolly_joker
LVL 40

Expert Comment

ID: 23702635
when you moved your server, why user:nobody is not the userid and group id of the owner? can you change the user group to nobody? this can be done by usermod command

Accepted Solution

jolly_joker earned 0 total points
ID: 23702656
i have found out its a phpsafe mode problem. After turning off the safe mode, usergroup permission problem soved.


Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question