• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

- New subdomains not working (Forbidden)

D

ddegroot

Guest
Hello All,

We got some very wierd problem... When we try to create a new subdomain for a domain, all the files give a 'Forbidden' message.

I tryed:

- Create a new subdomain (with no options selected)
- Upload a index.html file with just hello in it

When going to the site new.domain.com i get the RedHat 'Red Hat Enterprise Linux Test Page'. When going direct to the file new.domain.com/index.html i get a 'You don't have permission to access /index.html on this server.' message.

I looked up a lot of thing, like permissions, httpd.include file, error log file. nothing different from normal.

When trying the same steps with another domain, everything works great. No need to go to the file directly.

Permissions:
/var/www/vhosts/domain.com/subdomains/new/httpdocs
drwxr-x--- 2 new_domain psaserv 4096 Oct 5 19:06 .
drwxr-xr-x 7 root root 4096 Oct 5 18:53 ..
-rw-r--r-- 1 new_domain psacln 6 Oct 5 19:08 index.html

/var/www/vhosts/domain.com/subdomains/new
drwxr-xr-x 7 root root 4096 Oct 5 18:53 .
drwxr-xr-x 15 root psaserv 4096 Oct 5 18:53 ..
drwxr-x--- 2 new_domain psaserv 4096 Oct 5 18:53 cgi-bin
drwxr-x--- 2 root psaserv 4096 Oct 5 18:53 conf
drwxr-x--- 2 root psaserv 4096 Oct 5 18:53 error_docs
drwxr-x--- 2 new_domain psaserv 4096 Oct 5 19:06 httpdocs
drwxr-x--- 2 new_domain psaserv 4096 Oct 5 18:53 httpsdocs

httpd.include
<VirtualHost 192.168.1.118:80>
ServerName new.domain.com:80
DocumentRoot /var/www/vhosts/domain.com/subdomains/new/httpdocs
CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/domain.com/statistics/logs/error_log
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/domain.com/subdomains/new/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
Options -Includes -ExecCGI
</Directory>
</VirtualHost>

error_log:
[Sun Oct 05 19:12:03 2008] [error] [client 192.168.1.223] (13)Permission denied: access to /index.html denied
[Sun Oct 05 19:12:03 2008] [error] [client 192.168.1.223] (13)Permission denied: access to /index.html denied
[Sun Oct 05 19:12:03 2008] [error] [client 192.168.1.223] (13)Permission denied: access to /index.html denied

I added the host to my windows 'host' so dns could not be the problem.

Also plesk is uptodate to the lastest version.

CPU AuthenticAMD, AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Version psa v8.6.0_build86080910.19 os_RedHat el5
OS Linux 2.6.18-8.el5


Anyone any idea? I'm out of things to try...

Thanks in advance!!

Dennis,
 
Requesting a file that nog excist does turn in a 'The webpage cannot be found' error. So its working in the correct directory. Also other subdomains are working ok, just new ones are not working (also tryed different names).
 
Hi,

I would recommend rebuilding all web server config files according to records in Plesk database:
/usr/local/psa/admin/bin/websrvmng -v -a
 
Hello Ziba,

Thanks for youre reply. I tryed the command but it did not change the situation..
 
Back
Top