• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Cannot show CGI counter in Parallels Plesk Panel 9.3

E

eddyc

Guest
I have migrated serveral sebsites in an old Solaris Sparc server to new Linux base server that installed Paralles Plesk Panel 9.3.

Here are steps that I have done:

1. Create new domain in new server with same domain name as old server.
2. Enabled cgi-support and PHP support(I have tried enabled everything in Domain Service)
3. Copy all files in public_html in old server to htmldocs in new server
4. Copy all files in public_html/cgi-bin in old server to cgi-bin in new server
5. modify the c:\windows\system32\service\etc\hosts to force the domain redirect to new testing server.

I found that the HTML website can show normal, but CGI counter in the website cannot show.

Can anyone give me some advice that how can I set up the server to may it show CGI in the migrated website?

Thanks so much.
 
Check that the permissions on the files are set to owner:group and they are 0755 on the cgi-bin, all sub folders and files. Also check the suexec log ( usually found here: /var/log/httpd/suexec.log ) to see if there are any helpful messages there. Also you can check /var/www/vhosts/domain.com/statistics/logs/error_log and access_log to ensure that the files are being hit and ran.

Also ensure that CGI is enabled for the domain and afterwards that you stop && start httpd just to be sure that it took it.
 
Thanks for your reply.
I have checked that all permission from "Domain.com" to httpdocs and cgi-bin are 755, also the suexec.log showed that the CGI have been run, but the error log in the domain is shown as follow:
[Mon Jun 27 10:10:34 2011] [error] [client xxx.xx.xx.xx] fopen: Permission denied, referer: http://domain.net/mainfront.html
[Mon Jun 27 10:10:34 2011] [error] [client xxx.xx.xx.xx] Premature end of script headers: Count.cgi, referer: http://domain.net/mainfront.html

I have tried another website that have CGI script webpage, which have the same problem(CGI cannot show), but with different errors message.
 
The problem here is actually not cgi/perl but most likely permissions

fopen: Permission denied

^^ that means that PHP is not able to open a file - make sure that the path is set properly for the fopen call and that permissions are set so that the user that runs php can write to the file - probably 777 to start with but running as cgi you could probably get away with 755.
 
Back
Top