[WBEL-users] litle OT // Probs with suexec / apache and postfix-techie.org

Andy industrial_soup@dynacomp.net
Mon, 16 Aug 2004 12:24:39 -0400


This is a multi-part message in MIME format.
--------------080601000207060001040101
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

um, your suexec is compiled for

AP_USERDIR_SUFFIX="public_html"

but your script resides in 

/var/www/*html*/replex/cgi-bin/

instead of "html" it should be "public_html"

Andy


Stefan Sabolowitsch wrote:

>Hi List,
>
>somebody has experiences with suexec and apache ?
>
>I use the TechieAdmin (php) from techie.org in order to manage virtual
>postfix with WBEL.
>There is here a script (postfixhelper.php) which creates the maildirs
>automatically if a new Account is generated.
>He is started via suexec and apache.
>
>I get always the fault report that I no right has to create this directory.
>I tested already everything so far also 777 in the dir,s.
>
>Somebody an idea
>
>Thanks for every aid / hint
>
>Stefan
>
>
>
>Infos:
>
>User / Group "tester" UID / GID 501
>
>[root@mailmx log]# suexec -V
> -D AP_DOC_ROOT="/var/www"
> -D AP_GID_MIN=500
> -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"
>
>
>httpd.conf
>ScriptAlias /cgi-bin/ /var/www/html/replex/cgi-bin/
>SuexecUserGroup tester tester
>
>message.log
>Aug 12 17:13:22 mailmx httpd: PHP Warning:  is_dir(): Stat failed for
>/var/spool/postfix/virtual/bigapache.org/ (errno=13 - no rights) in
>/var/www/html/replex/cgi-bin/postfixhelper.php on line 50
>
>_______________________________________________
>Whitebox-users mailing list
>Whitebox-users@beau.org
>http://beau.org/mailman/listinfo/whitebox-users
>
>
>
>  
>

--------------080601000207060001040101
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
um, your suexec is compiled for <br>
<pre wrap="">AP_USERDIR_SUFFIX="public_html"

but your script resides in 

<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>var/www/<b>html</b>/replex/cgi-bin<span
 class="moz-txt-tag">/

</span></i><span class="moz-txt-slash"><span class="moz-txt-tag">instead of "html" it should be "public_html"

Andy
</span></span></pre>
<br>
Stefan Sabolowitsch wrote:<br>
<blockquote
 cite="mid5190E6DF2243D6119CA300047573E7B479DE88@serrig.feltengmbh.de"
 type="cite">
  <pre wrap="">Hi List,

somebody has experiences with suexec and apache ?

I use the TechieAdmin (php) from techie.org in order to manage virtual
postfix with WBEL.
There is here a script (postfixhelper.php) which creates the maildirs
automatically if a new Account is generated.
He is started via suexec and apache.

I get always the fault report that I no right has to create this directory.
I tested already everything so far also 777 in the dir,s.

Somebody an idea

Thanks for every aid / hint

Stefan



Infos:

User / Group "tester" UID / GID 501

[root@mailmx log]# suexec -V
 -D AP_DOC_ROOT="/var/www"
 -D AP_GID_MIN=500
 -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"


httpd.conf
ScriptAlias /cgi-bin/ /var/www/html/replex/cgi-bin/
SuexecUserGroup tester tester

message.log
Aug 12 17:13:22 mailmx httpd: PHP Warning:  is_dir(): Stat failed for
/var/spool/postfix/virtual/bigapache.org/ (errno=13 - no rights) in
/var/www/html/replex/cgi-bin/postfixhelper.php on line 50

_______________________________________________
Whitebox-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Whitebox-users@beau.org">Whitebox-users@beau.org</a>
<a class="moz-txt-link-freetext" href="http://beau.org/mailman/listinfo/whitebox-users">http://beau.org/mailman/listinfo/whitebox-users</a>



  </pre>
</blockquote>
</body>
</html>

--------------080601000207060001040101--