Hello i try to search my problem before posting but no luck!
I got file download while access my website instead of executing.
The apache configuration below
SuexecUserGroup "#1004" "#1004"
ServerName ***.cf
ServerAlias www.***.cf
ServerAlias webmail.****.cf
ServerAlias admin.***.cf
DocumentRoot /home/****/public_html
ErrorLog /var/log/virtualmin/****_error_log
CustomLog /var/log/virtualmin/***_access_log combined
ScriptAlias /cgi-bin/ /home/****/cgi-bin/
ScriptAlias /awstats/ /home/****/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
AddHandler fcgid-script .php5.5
FCGIWrapper /home/****/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/****/fcgi-bin/php5.fcgi .php5
FCGIWrapper /home/****/fcgi-bin/php5.5.fcgi .php5.5
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.****
RewriteRule ^(.*) https://*****:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.****
RewriteRule ^(.*) https://****:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
RemoveHandler .php5.5
php_admin_value engine Off
FcgidMaxRequestLen 1073741824
SSLEngine on
SSLCertificateFile /home/****/ssl.pem
SSLCertificateKeyFile /home/****/ssl.key
AuthName "**** statistics"
AuthType Basic
AuthUserFile /home/****/.awstats-htpasswd
require valid-user
IPCCommTimeout 31
php_value memory_limit 32M