Monday, September 22, 2014

How to edit a file on a deployed web site FREE hosted at 000webhost


In this tutorial we see step by step how to edit a file on a deployed web site FREE hosted at   000webhost, without using any FTP software.  Provided that your web site is not big, you can manage it with no need of any software but the one that  000webhost puts at your disposition for free . Here we'll learn how to edit a file or fix a bug on your web site with exclusively free software.
This article is the continuation of the previous post about how to deploy your web site for free at the      000webhost  web hosting.
Thus this tutorial supposes that you have already deployed your web site at 000webhost .
And now you need to edit some file to fix a bug at your deployed site. For this example, i'll use a web site of mine hosted at 000webhost:

How to edit a file on a deployed web site FREE hosted at 000webhost



How to edit a file on a deployed web site FREE hosted at 000webhost


Let's say that my web site , which calls an OData Web Service, stops working properly , showing as follows :



I can see that the Ajax call to the OData protocol based web service has returned a 404 (NOT FOUND) response, and i need to fix this bug editing the proper script file at 000webhost.
Therefore, open the CPanel of your web site:


edit a file on a deployed web site FREE hosted at 000webhost


At the CPanel , open the "Another File Manager" :



 Find the file to edit and click on "download" :



After you downloaded it , open the file with the Notepad clicking "Edit" , or use the really good editor of Notepad++ , which you can get for FREE at the Notepad++ site :



Notepad++ has a lot of functionality to offer , like testing your web pages at different browsers, and if you're using it , you will edit your file as follows :



After your done, save it and return to your account at 000webhost. Open the File Manager, and find the file that you want to replace with the new fixed version Click on "Upload File" and "Choose file" to the just edited file :


In our case, that fixed the problem, and now the requests to the OData service are getting the proper  code 200 ("OK") responses :



If you get the following error while opening the 000webhost File Manager,  is just because the session ended, so close the manager , and login again to 000webhost :



Then open again the file manager.

That's all!! 
We learned how to edit a file on a deployed web site FREE hosted at 000webhost, fixing a bug on your deployed web site.
Happy programming.....

      by Carmel Schvartzman

כתב: כרמל שוורצמן