AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Hosting chatbot in amazon server as a web page
 
 

Hello everyone,

I am a newbie.If anything is wrong,kindly convey below.

I tried to put my basic chatbot bulit
[running in command propmt on windows os in local system] with ChatScript into Amazon ec2 server instance.
For doing that,I came to know it can be done using WinSCP and running chatbot as a php page [instead of using cmd prmpt].

Now,
I am not able to run the index.php (already given sample page)
As you can see in the attachment,How to set the ipaddress and host name?

From Winscp how to post the content into amazon ec2 server. As the tutorial [given with ChatScript] is very abstract according to me ,I cannot understand what to do.

THANKS IN ADVANCE

Image Attachments
php_3.PNG
 

 
  [ # 1 ]

How to find the ChatScript Server IP address??


Please anyone say me

 

 
  [ # 2 ]

Revised doc now says:
You need to set the IP address in the file WEBINTERFACE/SIMPLE/index.php to be the IP address of your instance. If your webpage is on the same machine as your chatscript server, you should use “localhost” as the ip address, meaning the current machine. My webpage is on a different machine than my chatscript server.  In the Amazon EC2 instances display of the AWS console is a line corresponding to my EC2 machine, which names both my public DNS and my public IP. Either can be used in the script, but I use the IP since it’s simpler. I edited the ChatScript test webpage to:
$host = “1.22.08.4”;  //  <<<<<<<<<<<<<<<<< YOUR CHATSCRIPT SERVER IP ADDRESS GOES HERE

 

 
  [ # 3 ]

I am running the chatscript server and webpage on the same machine but I am getiing the error as

“Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:1024 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\wamp\www\index.php on line 45”

I have correctly directed to the chatsript server right? Or should the port number have to be changed?

 

 
  [ # 4 ]

The server and client are working perfectly in command prompt (with a sample bot I wrote) but the same is not working in webpage (.php)

 

 
  [ # 5 ]

I am no expert in this area. The message (when looked up on the web) suggests that a firewall or port has not been opened.

 

 
  [ # 6 ]

If anyone have found the solution , kindly post..

 

 
  login or register to react