• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Apache 2 Test Page after installation

HafsteinnM

New Pleskian
Hey Guys,

I'm having issues with Plesk, i just installed the most recent version and everything worked out perfectly, except that all domains i create seem to be pointing to "/var/www/html" and therefore show the "Apache 2 Test Page" instead of using the DocumentRoot

Any ideas on why this is happening ?.
 
Could you please first rebuild all the vhosts with
Code:
 /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
 
Yes,

Already did that, and didn't do anything...

Just did this again:

[root@ns0 ~]# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
[root@ns0 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns0 ~]#
 
Already did that, but it didn't help me...

Did again, and same issue.

[root@ns0 ~]# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
[root@ns0 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@ns0 ~]#
 
Already did that, didn't do anything. Still having the same issue

# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
 
You may also confirm that the root path in the conf files
Code:
/var/www/vhosts/system/domain.com/conf
is "/var/www/html" as stated ..

Otherwise, if it's not and it's the correct one, then most likely your domain name does not resolve to the IP defined on the server assigned to the domain ...
 
The root path is correct in */vhosts/conf/ _httpd.include so it looks good, i'm however pointing the domain via localhosts hosts file, that shouldn't be an issue ?.
 
Hey,

Basically, i created the webspace let's say thedomain.com on Plesk Box, and the IP's there are correct, server IP's and everything "looks" ok. Then i point from my personal localhost host file to the server IP.

Such as:

46.149.29.235 www.thedomain.com
46.149.29.235 thedomain.com

To see if is working correctly before moving the domain it self, but it's not. It's not reading the "/var/www/vhosts/thedomain.com/httpdocs" and instead it's pointing to "/var/www/html"

I've done this several times, without issues to see how the server responded to the domain before moving it to the server.
 
The possible reason I see is if your domain name is not assigned to the IP address 46.149.29.235 On your plesk server.
 
Back
Top