Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-23-2005, 06:54 PM   #1
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>
DocumentRoot /var/www/home/myuser/
SuExecUserGroup myuser myuser

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

Here is the result of `suexec -V` :

-D AP_DOC_ROOT="/var/www"
-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_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.
Old 05-25-2005, 05:33 AM   #2
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 ?


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:47 PM.

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