Experimental Physics and Industrial Control System
On Feb 11, 2006, at 02:43 , liushu wrote:
According to the manual.pdf.I create directory
/var/www/html/archive/cgi,and copied
ChannalArchiver/XMLRPCServer/O.linux-x86/ArchiveDataServer
/var/www/cgi-bin/xmlrpc/ArchiveDataServer.cgi,and ChannalArchiver's
example
serverconfig.xml,serverconfig.dtd to /var/www/cgi-bin/xmlrpc/,and add
following to httpd.conf:
<Directory "/var/www/html/archive">
Order Allow,Deny
Allow from from All
</Directory>
<Directory "/var/www/html/archive/cgi">
...
So you configure
/archive/cgi
to host the ArchiveDataServer CGI tool,
but then you try to execute it in
/cgi-bin/xmlrpc ??
Then I restart httpd by /etc/rc.d/init.d/httpd restart.I run
ArchiveDataClient.pl -u
http://192.168.20.155/cgi-bin/xmlrpc/ArchiveDataServer.cgi -i
I got these output:
not well-formed (invalid token) at line 1, column 0, byte 0 at
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/XML/
Parser.pm line
185
Well, it means that the client got to the web server,
and it received some response, but nothing that looked
like a valid XML-RPC response.
In this case it often helps to look at the raw data server response
yourself:
telnet my_web_server_host 80
GET /cgi-bin/xmlrpc/ArchiveDataServer.cgi HTTP/1.0<RETURN>
<RETURN>
You should see an error message about ``XML-RPC Fault: Expected HTTP
method POST'',
indicating that the data server was launched correctly and
was looking for a proper XML-RPC request.
If you see only pages of binary-looking garbage, your web server
doesn't recognize ArchiveDataServer.cgi as a CGI program,
and instead of running it, you get a copy of it.
It might help to review which web directories you intend
to configure as CGI directories.
Refer to the manual for your web server how to do that.
The archiver manual can only give suggestions.
And I have some questions:As I know that ArchiveEngine is web
server too,so
I want to know if I start ArchiveEngine I don't need to start
httpd,right?And
if I start httpd I don't need to start ArchiveEngine either,right?
Correct, they're separate:
The engine takes samples and serves status info via its httpd,
your Apache or other httpd serves web pages and maybe data via the
ArchiveDataServer.cgi
Or if I use
ArchiveDataServer,which one I need,ArchiveEngine or httpd running?
httpd like Apache which executes ArchiveDataServer as a CGI tool.
-Kay
- References:
- ArchiveDataServer errors liushu
- Navigate by Date:
- Prev:
Re: ChannelArchiver build error D. Peter Siddons
- Next:
Re: some error about archive-viewer-14 Kay-Uwe Kasemir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
<2006>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
- Navigate by Thread:
- Prev:
ArchiveDataServer errors liushu
- Next:
labCA crashes with bad PV Dennis Nicklaus
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
<2006>
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025