V
vincentd
Guest
Hello all,
I've just started working with plesk 7.5.6 software and find out a problem i cant handle direct. Maybe some of U ppl can help me to trigger this problem:
Ive written an CGI-BIN . EXE with with divers options. The CGI uses a XML database where it stores all the data, also the setup and cookie information.
When i acces the CGI and wanna know some of the data, it gives all the information i want, no problems so far.
If i wanna Update the data, still not a problem. When i Post the update on the server, the server seems to write the document virtual or just dont gives an error.
Some of the writing on disk code:
procedure Tusers.SaveNewUser;
var
xmlRoot, XmlSection, xmlgebruiker :ixmlnode;
node,subnode :Ixmlnode;
XML :Txmldocument;
i:integer;
begin
getcontentdata;
if controlreg then
if FileExists (XMLfile) then
begin
//here it starts the write code.....
finally
try
xml.SaveToFile(xmlfile);
except
on e: Exception do
responsestring := Format ('<font color="red" size="1"> Error Saving file to %s <p>' + e.Message,[xmlfile] )
end;
responsestring := Format ('Welkom bij van Reuvers Bouw & ontwikkeling. <p>'+
' <font color="red" size="1"> The file should be saved on %s <br> </font>',[xmlfile]);
xml.Active :=false;
end;
freeandnil (xml);
end
end;
If the CGI-BIN.exe has problems with writing the code, it should give the error on screen.
I think the CGI-BIN hasnt got the right authorization on disk, but i cant change it in plesk software:
Virtual directory
Name cgi-bin
Path /cgi-bin
Script source access No
Read permission Yes
Write permission No
Directory browsing No
Log visits Yes
Application settingsCreate application No
Execute permissions Scripts and Executables
Enable parent paths No
Enable to run in MTA No
DocumentsEnable default content page Yes
Default documents search order at_domains_index.html, Index.html, Index.htm, Index.cfm, Index.shtml, Index.shtm, Index.stm, Index.php, Index.php3, Index.asp, Index.aspx, Default.htm, Default.asp, Default.aspx
Directory securityEnable anonymous access Yes
Require SSL No
Ill hope som of u can help me with this problem, or some off u have solved some kind of problem....
Thanks so far
vincentd
I've just started working with plesk 7.5.6 software and find out a problem i cant handle direct. Maybe some of U ppl can help me to trigger this problem:
Ive written an CGI-BIN . EXE with with divers options. The CGI uses a XML database where it stores all the data, also the setup and cookie information.
When i acces the CGI and wanna know some of the data, it gives all the information i want, no problems so far.
If i wanna Update the data, still not a problem. When i Post the update on the server, the server seems to write the document virtual or just dont gives an error.
Some of the writing on disk code:
procedure Tusers.SaveNewUser;
var
xmlRoot, XmlSection, xmlgebruiker :ixmlnode;
node,subnode :Ixmlnode;
XML :Txmldocument;
i:integer;
begin
getcontentdata;
if controlreg then
if FileExists (XMLfile) then
begin
//here it starts the write code.....
finally
try
xml.SaveToFile(xmlfile);
except
on e: Exception do
responsestring := Format ('<font color="red" size="1"> Error Saving file to %s <p>' + e.Message,[xmlfile] )
end;
responsestring := Format ('Welkom bij van Reuvers Bouw & ontwikkeling. <p>'+
' <font color="red" size="1"> The file should be saved on %s <br> </font>',[xmlfile]);
xml.Active :=false;
end;
freeandnil (xml);
end
end;
If the CGI-BIN.exe has problems with writing the code, it should give the error on screen.
I think the CGI-BIN hasnt got the right authorization on disk, but i cant change it in plesk software:
Virtual directory
Name cgi-bin
Path /cgi-bin
Script source access No
Read permission Yes
Write permission No
Directory browsing No
Log visits Yes
Application settingsCreate application No
Execute permissions Scripts and Executables
Enable parent paths No
Enable to run in MTA No
DocumentsEnable default content page Yes
Default documents search order at_domains_index.html, Index.html, Index.htm, Index.cfm, Index.shtml, Index.shtm, Index.stm, Index.php, Index.php3, Index.asp, Index.aspx, Default.htm, Default.asp, Default.aspx
Directory securityEnable anonymous access Yes
Require SSL No
Ill hope som of u can help me with this problem, or some off u have solved some kind of problem....
Thanks so far
vincentd