LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2006, 06:38 PM   #1
artfuldrone
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
Newbie Question


I'm a newbie to Linux so please bare with me.

I have a list of instructions, these are to get an API to work on our web server.

Instructions:
1. Add a new user.
2. Give the new user read and execute permissions for the /var/www/vhosts/ directory.
3. Change the system configuration so that PHP runs as this new user instead of 'nobody'.

Does this make sense? Can anyone help?
 
Old 07-20-2006, 06:51 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
Title "Newbie Question" <- read the forum rules...questions are better answered with a relavant title.

1) add a new user
google for useradd or adduser
2) Read execute permissions
google chmod
3) change sys config
google php and apache and read docs

Last edited by bosewicht; 07-20-2006 at 06:58 PM.
 
Old 07-20-2006, 06:52 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
You can easily look up this information on google. Have you tried searching before posting??

Quote:
1. Add a new user.
'useradd' command is what you're looking for.
Quote:
2. Give the new user read and execute permissions for the /var/www/vhosts/ directory.
'chmod' is the command you're looking for. Read the man pages if you need further help.
Quote:
3. Change the system configuration so that PHP runs as this new user instead of 'nobody'.
PHP is a module in a webserver. It doesn't have its own daemon. Do you mean you want apache, or whatever web server you are using, to run as this new user instead of 'nobody'?

-twantrd

Last edited by twantrd; 07-20-2006 at 06:53 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache newbie question.. (very newbie question) tarballed Linux - Newbie 1 02-07-2003 09:41 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 01:53 PM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 07:40 PM
Security question {newbie question} Radio Linux - Security 3 05-17-2002 07:32 PM


All times are GMT -5. The time now is 10:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration