• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

cgi problems withj server

D

doppelt

Guest
Hi

I am a webmaster who does not know much about servers.

I have a site hosted on a UNIX server using Plesk 8.1
Their support is not helping me at all.

If I upload a cgi script to the cgi-bin , it will not work. I upload with WS_FTP in ascii, I even put the cgi ext in the ext list under options.

I have never had these problems before. No script I have will work
if I upload.

I can get the script to at least 'run' if I actuall Creat the file on the server in control panel. But even then, it runs but does not send out mail to me from the form script I use (which works on any other server no prob)

the support guys said they tried formmail.pl by Matt, and it sends mail, but that does not solve the problem with the sendmail not working in mine.

They said they at least fixed the problem with uploading by telling me to include the '.cgi' extension in the extensions tab list under options. I did that, it seems to work but now it does not.

I always upload manually in options anyway.

any ideas?

thanks
dennis
 
Try putting the cgi script into a separate folder,
I came across this problem a few weeks ago.

All works fine for me!?
 
Hi

thanks,


do you mean put the script in a directory under the cgi-bin directory?

thxs
dennis
 
hi,

update

I put my script in a seperate directory under the cgi-bin drectory.

it made no difference.

here are the current problems:


1. If I upload the file now in asciii using cute ftp
the script runs but it does not send me email using sendmail.

2. If I upload using ws_ftp , in ascii, the script does not even run,.



the same script will run anywhere else in any server.

a different script called 'ForMail.pl' will run and send mail, but I don't want to use that script.

very strange.

the path to sendmail is the same in both

Dennis scripts.


thanks
 
Same problem

[Mon Jan 15 02:42:21 2007] [error] [client 85.54.242.142] failed to open log file /var/log/httpd/suexec_log, referer: http://www.xxxxxxxx.es/contacto.html
[Mon Jan 15 02:42:21 2007] [error] [client 85.54.242.142] fopen: Permission denied, referer: http://www.xxxxxxxxxxx.es/contacto.html
[Mon Jan 15 02:42:21 2007] [error] [client 85.54.242.142] Premature end of script headers: contacto.cgi, referer: http://www.xxxxxxxxx.es/contacto.html

Problem permission in sendmail, execute the script logged in root and run perfectly.
 
details

Hi

thanks


I do not know what you mean by this:

(Problem permission in sendmail, execute the script logged in root and run perfectly.)

-thanks


dennis
 
Originally posted by doppelt
If I upload a cgi script to the cgi-bin , it will not work. I upload with WS_FTP in ascii, I even put the cgi ext in the ext list under options.

Sounds like a permission problem - checked the apache error log? (Can be accessed under Log Manager in Plesk)

Make sure the cgi-file you're uploading is owned by your FTP-user and in the psacln group. And have 755 permissions (-rwxr-xr-x)* - you should be able to set this via File Manger in Plesk or via WS_FTP.

Else your script wont be allowed to run.

* owner: read,write,execute; group: read,execute; other: read,execute
 
The problem this in the permissions of the sendmail.

In error_log appears permission denied on fopen when script cgi tries to open sendmail.

If execute script by console with root it works correctly

Somebody knows like fixing it?
 
I had the same problem. Mine was solve by changing the ownership of the file from:

xxxxuser: psaserv

to:

xxxxuser: psacln

(group must be psacln, not psaserv).
 
Any other solutions.

I can not get the default installed cgi script to work.
domainname.com/cgi-bin/test/test.cgi

I have tried other scripts and they do not work.
 
Back
Top