Php script and File Usergroup Problem

Posted on 2009-02-21
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

    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

    i have found out its a phpsafe mode problem. After turning off the safe mode, usergroup permission problem soved.


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
    Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now