| 
    
     | 
       
        | Author |  |  
        | fret Newbie
 
  
 
 Joined: October 05 2015
 Online Status: Offline
 Posts: 2
 | 
          OK, I give up.  I recently replaced my PH machine with
           | Posted: October 05 2015 at 18:56 | IP Logged |   |  
           | 
 |  a new machine running Windows 10. My old machine died
 after a number of years of flawless operation.  In my
 old configuration I used eHome for a UI.  Since eHome
 isn't really around any more, I decided to take the
 plunge and try my hand at the CC and web server.
 Unfortunately, I can't get the web server to start-up.
 I've search the forum and tried the solutions posted -
 disabled the firewall and made sure no one else was
 using the port.  I even tried other ports. I just get
 the 404 error.  I've also tried going to 127.0.0.1
 directly form IE - says web page not found.
 
 I'm not a network guy at all (old school fortran) To
 tell the truth, I really don't understand how the web
 server works.  There is nothing in my \web directory
 but a bunch of gifs and two .css files.  Am I missing
 something here?
 
 Opps, forgot to say I'm using 2.5.1d
 
 Stumbled into some diagnostics.  I can get to the main
 web page thru IE using the address 127.0.0.1:port/ph-
 cgi/main.  From here all the links work.  I just can't
 get there using the PH world icon.
 
 Edited by fret - October 05 2015 at 21:05
 |  
        | Back to Top |     |  
        |  |  
        | dhoward Admin Group
 
  
  
 Joined: June 29 2001
 Location: United States
 Online Status: Offline
 Posts: 4447
 | 
          Fret,
           | Posted: October 05 2015 at 23:47 | IP Logged |   |  
           | 
 |  
 Sounds like you've got the webserver working. In IE,
 if you have a port other than 80, then you must
 specify http://127.0.0.1:port (and not just
 127.0.0.1:port). Firefox and Chrome, either method
 will work. From a machine other than PowerHome, you'll
 need to use the IP of the PowerHome machine (127.0.0.1
 is the local machine only). Most likely it will be
 something like 192.168.0.XXX or 192.168.1.XXX. If you
 just do the default IP and port, it will auto-redirect
 to /ph-cgi/main.
 
 The PowerHome webserver is capable of serving up
 static web pages (located under the web subdirectory),
 graphic files, etc. It can also serve up dynamic pages
 that end in .PSP (PowerHome Server Page) that is very
 similar to an ASP page. However, as you've discovered,
 PowerHome by default doesnt really have alot of files
 in the web directory. Most of the PowerHome webpages
 are internal within the program itself and will have
 the virtual directory /ph-cgi/ to signify an internal
 PH webpage so an actual file won't exist.
 
 The PH World icon in the PowerHome program is the "Web
 Center". This is just a programmable version of
 Internet Explorer and can point to ANY webpage and
 there are internal PowerHome functions that will allow
 you to control this screen. I find that very few
 people actually make use of this screen. In any event,
 to make it point to the PH webserver, open the Web
 center and you should see a new toolbar appear. The
 leftmost icon is "Show" and when clicked, will show an
 address bar where you can enter the
 http://127.0.0.1:port URL of the internal PH
 webserver. You can use the ph_wcsethome() function to
 change the default home page that is opened when the
 Web Center is launched or you can manually edit the
 launch page in the pwrhome.ini file. However, if
 you're working within PowerHome itself, you're better
 off using the internal clients for the Device Status
 screen (Alt+F6) and the Control Center (Alt+F1).
 
 Hope this helps,
 
 Dave.
 
 |  
        | Back to Top |       |  
        |  |  
        | fret Newbie
 
  
 
 Joined: October 05 2015
 Online Status: Offline
 Posts: 2
 | 
          That's fixed it!  Thanks for the overview as well.
           | Posted: October 06 2015 at 19:53 | IP Logged |   |  
           | 
 |  Things are making a little more sense.  Now its time to
 start playing.
 
 Kenny
 |  
        | Back to Top |     |  
        |  |  |  |