Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Phillipa D's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Aug 2009
    Posts
    4
    Downloads
    0
    Uploads
    0

    I am trying to install php a script on my host server, however i am getting a unix

    error that i do not? understand. This is what i am getting
    Please set the correct user (e.g. apache) for the root folder of your script (e.g. chown www-data.www-data -R getboo/)

    What does this mean? do i have to CHMOD the folder where the script is? What does chown mean?

    Thanks in advance

  2. #2
    gingerjoos's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jan 2010
    Posts
    7
    Downloads
    0
    Uploads
    0
    chown and chmod are related commands. chmod changes the permission settings on a file (read-write-execute for user-group-others). chown changes the owner of a file. Your webserver(Apache) runs as a particular user - say, apache. What the error message is asking you to do is to change the owner of the script to the apache user. It works like this -
    chown USERNAME:GROUPNAME FILENAME
    so if your webserver is running as the user joe('ps aux | grep httpd' should tell you. Or check the httpd.conf), you might want to do something like
    chown joe:joe foobar
    OR
    chown -R joe:joe foobar # change for subdirectories too (recursive)

  3. #3
    gingerjoos's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jan 2010
    Posts
    7
    Downloads
    0
    Uploads
    0
    chown and chmod are related commands. chmod changes the permission settings on a file (read-write-execute for user-group-others). chown changes the owner of a file. Your webserver(Apache) runs as a particular user - say, apache. What the error message is asking you to do is to change the owner of the script to the apache user. It works like this -
    chown USERNAME:GROUPNAME FILENAME
    so if your webserver is running as the user joe('ps aux | grep httpd' should tell you. Or check the httpd.conf), you might want to do something like
    chown joe:joe foobar
    OR
    chown -R joe:joe foobar # change for subdirectories too (recursive)

  4. #4
    gingerjoos's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jan 2010
    Posts
    7
    Downloads
    0
    Uploads
    0
    chown and chmod are related commands. chmod changes the permission settings on a file (read-write-execute for user-group-others). chown changes the owner of a file. Your webserver(Apache) runs as a particular user - say, apache. What the error message is asking you to do is to change the owner of the script to the apache user. It works like this -
    chown USERNAME:GROUPNAME FILENAME
    so if your webserver is running as the user joe('ps aux | grep httpd' should tell you. Or check the httpd.conf), you might want to do something like
    chown joe:joe foobar
    OR
    chown -R joe:joe foobar # change for subdirectories too (recursive)

  5. #5
    gingerjoos's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jan 2010
    Posts
    7
    Downloads
    0
    Uploads
    0
    chown and chmod are related commands. chmod changes the permission settings on a file (read-write-execute for user-group-others). chown changes the owner of a file. Your webserver(Apache) runs as a particular user - say, apache. What the error message is asking you to do is to change the owner of the script to the apache user. It works like this -
    chown USERNAME:GROUPNAME FILENAME
    so if your webserver is running as the user joe('ps aux | grep httpd' should tell you. Or check the httpd.conf), you might want to do something like
    chown joe:joe foobar
    OR
    chown -R joe:joe foobar # change for subdirectories too (recursive)

  6. #6
    gingerjoos's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Jan 2010
    Posts
    7
    Downloads
    0
    Uploads
    0
    chown and chmod are related commands. chmod changes the permission settings on a file (read-write-execute for user-group-others). chown changes the owner of a file. Your webserver(Apache) runs as a particular user - say, apache. What the error message is asking you to do is to change the owner of the script to the apache user. It works like this -
    chown USERNAME:GROUPNAME FILENAME
    so if your webserver is running as the user joe('ps aux | grep httpd' should tell you. Or check the httpd.conf), you might want to do something like
    chown joe:joe foobar
    OR
    chown -R joe:joe foobar # change for subdirectories too (recursive)

 

 

Quick Reply Quick Reply

Click here to log in


How many letters in the word Rabroad

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12-31-2010, 05:33 AM
  2. Replies: 0
    Last Post: 12-31-2010, 05:33 AM
  3. Replies: 0
    Last Post: 11-12-2010, 04:21 AM
  4. Replies: 0
    Last Post: 01-29-2010, 10:08 AM
  5. Replies: 0
    Last Post: 05-22-2009, 10:16 PM

Bookmarks

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •