• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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