Hack Forums
Installing a PHP Script on my GoDaddy Hosting - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50)
+---- Thread: Installing a PHP Script on my GoDaddy Hosting (/showthread.php?tid=4437247)



Installing a PHP Script on my GoDaddy Hosting - WebDevDan - Sep 8, 2014

Hello,

I have recently bought this script from CodeCanyon:
http://codecanyon.net/item/chatloc-chat-with-nearby/5640785

I have uploaded the files to my GoDaddy Hosting account but need help executing the server.php file via SSH.

Can anyone help me do this via Skype / TeamViewer?


* - Crypto™ - Sep 8, 2014

I'm just about to head to bed, but check out these instructions.

https://support.godaddy.com/help/article/4942/enabling-ssh-on-your-linux-shared-hosting-account

Then you should be able to run the necessary command, and/or include it in your init.d file, or some other way to make it start up automatically should the machine restart.

However, the main part is just being able to start the php script.


* - WebDevDan - Sep 8, 2014

(Sep 8, 2014 07:45 AM)Crypto™ Wrote:  I'm just about to head to bed, but check out these instructions.

https://support.godaddy.com/help/article/4942/enabling-ssh-on-your-linux-shared-hosting-account

Then you should be able to run the necessary command, and/or include it in your init.d file, or some other way to make it start up automatically should the machine restart.

However, the main part is just being able to start the php script.

Yo.

Server Started : 2014-09-08 15:06:00
Listening on : (MY DOMAIN) port 10000
Master socket : Resource id #5

So that seems to have started the server.

But the script still isn't working... I have changed the file path to server.php.


* - Crypto™ - Sep 8, 2014

(Sep 8, 2014 08:14 AM)WebDevDan Wrote:  Yo.

Server Started : 2014-09-08 15:06:00
Listening on : (MY DOMAIN) port 10000
Master socket : Resource id #5

So that seems to have started the server.

But the script still isn't working... I have changed the file path to server.php.

Did you update the JS file? It's also possible that GoDaddy doesn't allow port 10000, so perhaps try port 8080 instead?


* - WebDevDan - Sep 9, 2014

(Sep 8, 2014 01:55 PM)Crypto™ Wrote:  Did you update the JS file? It's also possible that GoDaddy doesn't allow port 10000, so perhaps try port 8080 instead?

I tried this mate. Still no luck. In PuTTY it says:
Server Started : 2014-09-09 13:33:45
Listening on : www.mydomain.co.uk port 8080
Master socket : Resource id #5

I go to the website and look at the Console and the websocket status of 0 which means that the connection has not yet been established. Why would this be?

After so long the status changes to 3 and stops the server trying to establish a connection.