LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-30-2011, 02:27 PM   #1
wyattbiker
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
Add an additional service account to Apache???


I am running Apache using the service account httpd. (Linux box)

I made a user proj1 and created the virtual directory myproj. I then chowned that directory with:

chown -R proj1roj1 myproj

I login as proj1 using ftp and can create directories and php code. The problem I can't figure out is how to tell Apache & PHP that it is ok for it to create/write to the directories of proj1 (E.g mkdir() ).

I would prefer that all directories be created with 755. Is there a way to add proj1 to be an additional service account to the virtual directory?

P.S. PHP safe mode is off and have root access to this server
 
Old 12-31-2011, 03:39 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Quote:
Is there a way to add proj1 to be an additional service account to the virtual directory?
There is apache2-mpm-itk

Or you can use suphp, that is used to run php scripts with the rights of a specific user/group.

Regards
 
1 members found this post helpful.
Old 12-31-2011, 10:04 AM   #3
wyattbiker
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Hi,


There is apache2-mpm-itk

Or you can use suphp, that is used to run php scripts with the rights of a specific user/group.

Regards
Yep, was trying to avoid installing this stuff on a live server. For now I found a solution for what I need it. I created a user with the same uid,gid as httpd (allow duplicate ids options). This way at least I can login with sftp as a normal user. Works great.
 
  


Reply



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
MRTG - how to add an additional device deibertine Linux - Networking 9 06-27-2020 09:52 AM
Unable to add "apache" service to Conga - Red Hat Cluster vikas027 Linux - Server 10 11-09-2010 01:20 PM
[SOLVED] How to add additional users to Slackware? Asinine Linux - Newbie 5 09-08-2009 04:29 PM
Add additional checking edhan Linux - Newbie 9 06-11-2005 10:02 PM
Add Additional Hard Drives rawdave Linux - Newbie 3 03-17-2004 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:00 AM.

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
Open Source Consulting | Domain Registration