문제

I'm trying to set up my web site in a hosting server which is running CentOS 6.4. The domain has been already set up.

I have checked the DocumentRoot in the Apache config file. It is var/www/html. So, I added a new file "index.php" in that directory. The file is just echoing phpinfo().

<?php
echo phpinfo();
?>

But, when I browse mydomain.com, I just see the Web Server's Default Page with Parallels Panel. I think var/www/html/index.php should be running.

What I still need to configure?

도움이 되었습니까?

해결책 2

I found my domain needs a hosting setup. When I set up a hosting for the domain, I got a document root /var/www/vhosts/mydomain.com/httpdocs and it FTP information. I think it is just like a virtual host setup. Eventually, /var/www/vhosts/mydomain.com/httpdocs/index.php is made running from mydomain.com.

When I add a new sub-domain, I got /var/www/vhosts/mydomain.com/mysubdomain.com/ as a document root for that sub-domain.

다른 팁

To rectify the issue, please log in to PP under admin and browse "Domains" -> domain.tld -> "Domain Administrator Access." Check the "www" check-box and click "OK."

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top