Hi,
I just buy a new server and install Virtualmin to migrate my hold cpanel server. All migration was done very well except one think. it look my php script doesnt run as account owner but run as www-data. So every script trying to write cache or edit file not working.
I have try what is on that post : http://www.virtualmin.com/node/8462
here is my actual configuration :
SuexecUserGroup usertest usertest
ServerName mydomaine.com
ServerAlias www.mydomaine.com
ServerAlias webmail.cesttoilechef.com
ServerAlias admin.cesttoilechef.com
DocumentRoot /home/usertest/public_html
ErrorLog /var/log/virtualmin/mydomaine.com_error_log
CustomLog /var/log/virtualmin/mydomaine.com_access_log combined
ScriptAlias /cgi-bin /home/usertest/public_html/cgi-bin
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/usertest/public_html>
Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
allow from all
AllowOverride All
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/usertest/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/usertest/fcgi-bin/php5.fcgi .php5
</Directory>
<Directory /home/usertest/cgi-bin>
allow from all
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.mydomaine.com
RewriteRule ^(.*) https://mydomaine.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.mydomaine.com
RewriteRule ^(.*) https://mydomaine.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
IPCCommTimeout 31
I wish someone would be able to help me.