# SUEXEC problem

**URL:** <https://forum.virtualmin.com/t/suexec-problem/28625>\
**Category:** Virtualmin\
**Created:** [February 18, 2008, 6:44pm UTC](https://forum.virtualmin.com/t/suexec-problem/28625 "2008-02-18T18:44:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![uwe](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/u/c57346/32.png) [@uwe](https://forum.virtualmin.com/u/uwe)\
**Post date:** [February 18, 2008, 6:44pm UTC](https://forum.virtualmin.com/t/suexec-problem/28625/1 "2008-02-18T18:44:32Z")

</div>

Hi all,

after search and applying all the tips (like reinstall) that I found in this forum (and others) I still have trouble with suexec. This is the output of it :

# /usr/lib/apache2: ./suexec2 -V

-D AP\_DOC\_ROOT="/var/www"  
-D AP\_GID\_MIN=100  
-D AP\_HTTPD\_USER="www-data"  
-D AP\_LOG\_EXEC="/var/log/apache2/suexec.log"  
-D AP\_SAFE\_PATH="/usr/local/bin:/usr/bin:/bin"  
-D AP\_UID\_MIN=100  
-D AP\_USERDIR\_SUFFIX="public\_html"

But shouldn’t it read -D AP\_DOC\_ROOT="/home" ?

I never got a suexec downloaded that fit that line. I am running :

Operating system Ubuntu Linux 6.06.1  
Webmin version 1.401  
Virtualmin version 3.52 (Pro)

Webmin/virualmin just updated thinking it might fix the issue, but it gave me the above suexec back.

Please help

Uwe

---

<div class="post-metadata">

**Author:** ![sgrayban](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/sgrayban/32/5867_2.png) [@sgrayban](https://forum.virtualmin.com/u/sgrayban)\
**Post date:** [February 19, 2008, 12:14pm UTC](https://forum.virtualmin.com/t/suexec-problem/28625/2 "2008-02-19T12:14:12Z")

</div>

If you also enable the apache module "userdir" the /home/public\_html which is the default location for VM websites it will work.

---

<div class="post-metadata">

**Author:** ![uwe](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/u/c57346/32.png) [@uwe](https://forum.virtualmin.com/u/uwe)\
**Post date:** [February 19, 2008, 12:36pm UTC](https://forum.virtualmin.com/t/suexec-problem/28625/3 "2008-02-19T12:36:38Z")

</div>

Hi **sgrayban,**

If you also enable the apache module "userdir" the /home/public\_html which is the default location for VM websites it will work.

Thanks for your help!

It is enabled. And if I delete/move the installed suexec2 everything seems to work but there is no user switching (obviously) and I want to have that for more security.

Uwe

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [February 19, 2008, 8:38pm UTC](https://forum.virtualmin.com/t/suexec-problem/28625/4 "2008-02-19T20:38:06Z")

</div>

Try using apt-get to update apache2 (apt-get install apache2). For some reason that I’ve yet to determine apt-get will sometimes ignore our Apache package during installation. You may even have to force it to use our repository instead of the default.

---

<div class="post-metadata">

**Author:** ![uwe](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/u/c57346/32.png) [@uwe](https://forum.virtualmin.com/u/uwe)\
**Post date:** [February 20, 2008, 12:08pm UTC](https://forum.virtualmin.com/t/suexec-problem/28625/5 "2008-02-20T12:08:32Z")

</div>

Hi Joe,

thanks for pitching in.  
I tried that, but it looks like its pulling it from here :  
[archive.ubuntu.com](http://archive.ubuntu.com) dapper-updates/main apache2 2.0.55-4ubuntu2.3

I tried forcing it by re-sorting sources.list but no luck. Any other idea to force it? And also, do I still need to uninstall apache2 before I try it again?

Thanks Uwe

---

<div class="post-metadata">

**Author:** ![uwe](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/u/c57346/32.png) [@uwe](https://forum.virtualmin.com/u/uwe)\
**Post date:** [April 5, 2008, 12:41am UTC](https://forum.virtualmin.com/t/suexec-problem/28625/6 "2008-04-05T00:41:51Z")

</div>

Hi,

just to update and close the thread.

I ended up reinstalling the sever and also switching from ubuntu to centos. It installs fine, just a few little setup bugs here and there (postfix,dovecot) which were easy to handle in minutes.

Solved the problem and I have it now on a second vps.

Uwe

---

<div class="post-metadata">

**Author:** ![balzercomp](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/b/41988e/32.png) [@balzercomp](https://forum.virtualmin.com/u/balzercomp)\
**Post date:** [April 5, 2008, 6:02am UTC](https://forum.virtualmin.com/t/suexec-problem/28625/7 "2008-04-05T06:02:26Z")

</div>

Hi Uwe,

could you please tell me what problems you had with Postfix and Dovecot? I’m failing to get my server to work correctly. CentOS 5.1, VM Pro.

Thanks

Gerald

---

<div class="post-metadata">

**Author:** ![uwe](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/u/c57346/32.png) [@uwe](https://forum.virtualmin.com/u/uwe)\
**Post date:** [April 10, 2008, 11:06am UTC](https://forum.virtualmin.com/t/suexec-problem/28625/8 "2008-04-10T11:06:12Z")

</div>

Hi Gerald,

just post whats not working on your machine. One of the fixes I had to do is posted here : [http://www.virtualmin.com/index.php?option=com\_fireboard&Itemid=77&func=view&id=9640&catid=8#9640](http://www.virtualmin.com/index.php?option=com_fireboard&Itemid=77&func=view&id=9640&catid=8#9640)  
Which fixes a dovcot problem I also had. In postfix the limits for mailbox size and message size were not set correctly giving error messages, easy fix.

Uwe

---

<div class="post-metadata">

**Author:** ![balzercomp](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/b/41988e/32.png) [@balzercomp](https://forum.virtualmin.com/u/balzercomp)\
**Post date:** [April 10, 2008, 11:12am UTC](https://forum.virtualmin.com/t/suexec-problem/28625/9 "2008-04-10T11:12:09Z")

</div>

Uwe,

Thanks for your reply, but I got it to work myself.

All the best

Gerald

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 5:42am UTC](https://forum.virtualmin.com/t/suexec-problem/28625/10 "2020-04-30T05:42:58Z")

</div>

Closed on April 30, 2020, 5:42am UTC


