i’ve ubuntu server with virtualmin installed, i set up a vhost for my website, but when i access
http://intranetip/~test1/phpinfo.php , it print out
<? echo phpinfo ?>and another site print blank page and view source code you can see <? echo phpinfo ?>
but when i put it in /var/www/html , it can print the phpinfo
After searched in google and tried several answer, still not work.
here is my vhost config
SuexecUserGroup “#1002” “#1002”
ServerName test1.mydomain.com
ServerAlias www.test1.mydomain.com
ServerAlias webmail.test1.mydomain.com
ServerAlias admin.test1.mydomain.com
DocumentRoot /home/test1/public_html
ErrorLog /var/log/virtualmin/test1.mydomain.com_error_log
CustomLog /var/log/virtualmin/test1.mydomain.com_access_log combined
ScriptAlias /cgi-bin/ /home/test1/cgi-bin/
ScriptAlias /awstats/ /home/test1/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/test1/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/test1/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/test1/fcgi-bin/php5.fcgi .php5
anyone can find out the problems? i’also uncomment the php related line in /etc/mime.types, it also not work