LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-23-2005, 06:54 PM   #1
bmorel
LQ Newbie
 
Registered: Mar 2005
Location: Paris, France
Distribution: RHEL 3
Posts: 17

Rep: Reputation: 0
SuExec with Apache: permissions denied


Hi there,

I've got a permission problem with SuExec/Apache 2.046

Here is my VirtualHost config in httpd.conf :

<VirtualHost my.ip:80>
ServerName mydomain.com
ServerAlias www.mydomain.com
DocumentRoot /var/www/home/myuser/mydomain.com
SuExecUserGroup myuser myuser
</VirtualHost>

/var/www/home/user/mydomain.com is chmod 755, owned by user/group "myuser"

Here is the result of `suexec -V` :

-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="apache"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX="public_html"

Now if I test a php file in this website:
<?php system("touch testfile"); ?>

I get a permission denied error when trying to create the file via system("touch file") or via fopen("file","w") ...
Can someone explain this ?

Thanks in advance.
Ben
 
Old 05-25-2005, 05:33 AM   #2
bmorel
LQ Newbie
 
Registered: Mar 2005
Location: Paris, France
Distribution: RHEL 3
Posts: 17

Original Poster
Rep: Reputation: 0
Strange thing, I tried a system("whoami") and my script answers ... apache !!!
Why SuExec does not work ?
 
  


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
problems with enablin SUexec w/ apache nevarlen Linux - Newbie 14 06-23-2007 12:18 AM
apache suexec hassan2 Linux - Software 0 08-03-2005 07:01 PM
Apache, suexec and virtual hosts :\ chibi Linux - Software 1 05-02-2005 12:17 PM
Apache Suexec Maze the Kid Linux - Software 0 04-05-2005 04:05 PM
Apache suexec Rachel Carter Linux - Software 0 01-31-2003 03:27 PM

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

All times are GMT -5. The time now is 10:39 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
Open Source Consulting | Domain Registration