• 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

Multiple odd vhost httpd.includes

T

TobiI

Guest
Perl and Python test-pages are being downloaded

Hello,

I recognized the Perl and Python test-scripts of my test-domain Plesk default site not being executed. My browser offers to download them.

The setup is Plesk 10.4.4 on SuSE 11.4 1013111102.18

I am following the includes for Apache from /etc/apache2/conf.d/zz010_psa_httpd.conf and found out, that the
/usr/local/psa/admin/conf/vhosts_bootstrap.conf contains the following include:

Include '/srv/www/vhosts/zotoyabi.com/conf/13229047880.25194400_httpd.include'

This file does not exist.

# ls -al /srv/www/vhosts/mydomain.com/conf/
total 56
drwxr-x--- 2 root psaserv 4096 Dec 3 10:33 .
drwxr-xr-x 13 root root 4096 Dec 3 09:26 ..
-rw-r----- 1 root www 368 Dec 3 09:26 13229007920.11597800_httpd.include
-rw-r----- 1 root www 5892 Dec 3 09:26 13229007920.11597800_httpd_ip_default.include
-rw-r----- 1 root www 368 Dec 3 09:26 13229007970.01582600_httpd.include
-rw-r----- 1 root www 5892 Dec 3 09:26 13229007970.01582600_httpd_ip_default.include
-rw-r----- 1 root www 368 Dec 3 09:39 13229015750.56575400_httpd.include
-rw-r----- 1 root www 5892 Dec 3 09:39 13229015750.56575400_httpd_ip_default.include
-rw-r----- 1 root www 368 Dec 3 10:33 13229047880.25194400_httpd.include
-rw-r----- 1 root www 5892 Dec 3 10:33 13229047880.25194400_httpd_ip_default.include

After reconfiguring the domain the include is correct:
#/usr/local/psa/admin/bin/httpdmng --reconfigure-domain mydomain.com

Why is there so many obsolete includes? When do they get cleaned up?

Yet, the test pages for Perl and Python still to not work (scripts are being downloaded).
Any hints?
 
Last edited by a moderator:
what about the settings ot the perl- and python-option in the hosting-parameters?
- are they activated for the right domain?
- if so, were the options passed correct to the .include-file?

should look like this somewhere in the .include-file
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>


Btw the cleaning-up of old config files should have been fixed with MU#5, as I read in another discussion. Yet I haven't tested ist.

Greets
 
The active include does not contain any directives for mod_perl or mod_python.

I am using a domain subscription to the Unlimited Service plan template. There, Python and Perl are allowed.
Initially, I deactivated Perl and Python once in that template & afterwards triedto reenable it. The changes could not be synchronized to the subscription upon pressing the confirmation button (the button-animation would just circle away endlessly). I then completely deleted the domain subscription and recreated it from scratch.

Yet, on the subdomain lists.mydomain.com, the mailman mailinglists running on python do work.
 
and are the options perl and python activated in the subscription, also? They both, template and subscription are not necessarily synced. (thus, if you recreated the subscription they should be sync...)

if all does not work, try to place the above mentioned directives (mod_perl, mod_python) into an 'vhost.conf'-file, put it in the dir where the .inlude-files for the domain resides and make plesk reconfigure the domain.

if now the perl-scripts or python scripts are running you are fine, otherways it could be a misconfiguration of apache...
 
Back
Top