• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

- 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