jola
Basic Pleskian
I am migrating a large site to plesk. Most of my perl scripts are not working under plesk. I have tried to debug this and have noticed several problems, here is an example:
A have written a test file called bar.pl that contains:
Accessing this file via http displays "hello world" in my browser, as it should
If have also written a second file foo.pl that contains:
In theory this file should just include the bar.pl file which should display "hello world". However, accessing foo.pl via http only works intermittently. Sometimes it shows "hello world", but most of the time it will not display anything. I have discovered that if I restart apache (/etc/init.d/httpd restart) foo.pl will always work. Hence, this problems seems to somehow be related to cache problems or something.
Anyone have any clues about what this can be related to? Perl under plesk does not seem to work in the same way as perl worked under my previous hosting environment.
I am running this on Plesk 8 since we are using the Migration Manager available in 8. Once I've got the Migration finished we will upgrade to Plesk 10 before we launch the site under plesk.
A have written a test file called bar.pl that contains:
Code:
#!/usr/bin/perl
print("Content-type: text/plain\n");
print("\n");
print("hello world\n");
Accessing this file via http displays "hello world" in my browser, as it should
If have also written a second file foo.pl that contains:
Code:
#!/usr/bin/perl
require "/var/www/vhosts/website.com/httpdocs/bar.pl";
In theory this file should just include the bar.pl file which should display "hello world". However, accessing foo.pl via http only works intermittently. Sometimes it shows "hello world", but most of the time it will not display anything. I have discovered that if I restart apache (/etc/init.d/httpd restart) foo.pl will always work. Hence, this problems seems to somehow be related to cache problems or something.
Anyone have any clues about what this can be related to? Perl under plesk does not seem to work in the same way as perl worked under my previous hosting environment.
I am running this on Plesk 8 since we are using the Migration Manager available in 8. Once I've got the Migration finished we will upgrade to Plesk 10 before we launch the site under plesk.