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