Sign up here and you can log into the forum!

Web frontend on HP Touchpad - use remote on interface?

Feature requests / enhancements discussion regarding the web interface

Re: Web frontend on HP Touchpad - use remote on interface?   

Postby thedude001 » Mon Mar 19, 2012 9:40 am

ok, made it writable with
Code: Select all
chmod a+rw /conf/apache-default


Did all included in wiki and mentioned above, and still get same error touchpad... :cry:.

Any way to confirm that apache now doesn't require a password to role out any errors?
thedude001
n00b
 
Posts: 14
Joined: Sat Mar 17, 2012 7:13 am

Re: Web frontend on HP Touchpad - use remote on interface?   

Postby mad_ady » Mon Mar 19, 2012 10:29 pm

Sure. Try out these commands:
Code: Select all
/etc/init.d/S66apache2 restart
cat /conf/apache-default
cat /etc/apache2/sites-available/default
diff /etc/apache2/sites-available/default /etc/apache2/sites-available/default
wget -O - http://127.0.0.1/
wget -O - http://192.168.1.x/


Replace the ip address with the ip of your wdtv. The diff shouldn't return anything, and the last wget shouldn't say 401 Authorization Required.
User avatar
mad_ady
Developer
 
Posts: 4522
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Web frontend on HP Touchpad - use remote on interface?   

Postby thedude001 » Tue Mar 20, 2012 4:55 pm

Finally got time to try this out... The conf/apache-default and S00user-script files I created yesterday were not in the /conf directory today... I assume they still should have been there? Therefor I was not able to runt he script you posted due to that. Just added again and will try again.
thedude001
n00b
 
Posts: 14
Joined: Sat Mar 17, 2012 7:13 am

Re: Web frontend on HP Touchpad - use remote on interface?   

Postby thedude001 » Tue Mar 20, 2012 5:43 pm

Ok, now I can not get into web frontend via my browser on my pcs.... Restarted WDTV with no avail. Was able to log in via cmd telnet and ran script previously mentioned and get:
Code: Select all
Connecting to 192.168.1.116:80... failed: connection refused
:(
As you mentioned, I did not get anything with diff.
Please help.... and thanks
thedude001
n00b
 
Posts: 14
Joined: Sat Mar 17, 2012 7:13 am

Re: Web frontend on HP Touchpad - use remote on interface?   

Postby mad_ady » Tue Mar 20, 2012 10:34 pm

Hmm... Connection refused means apache isn't running. The reason it's probably not running is some error in the configuration file. It should throw the error onscreen when you restart apache, or it should write it to /tmp/messages.txt.

Do you get the same error when doing the wget for 127.0.0.1?

If the diff returns nothing, then it means the apache config is the patched one - which is what you want.

You can also run the command
Code: Select all
netstat -tpan | grep LISTEN

to see on which interfaces apache is listening...

To keep the files persistent in /conf, you will need to run config_tool -s before rebooting (regular reboot does this, though).

Can you also post the output of
Code: Select all
cat /conf/apache-default

to see if we spot some obvious errors?
User avatar
mad_ady
Developer
 
Posts: 4522
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Web frontend on HP Touchpad - use remote on interface?   

Postby thedude001 » Wed Mar 21, 2012 5:10 am

Yes, recieved the same error from 127.0.0.1... Below is the output from the two scripts

Code: Select all
# netstat -tpan | grep LISTEN
tcp        0      0 0.0.0.0:10245           0.0.0.0:*               LISTEN
2102/MediaLogic
tcp        0      0 0.0.0.0:54950           0.0.0.0:*               LISTEN
2257/dmaosd
tcp        0      0 0.0.0.0:54727           0.0.0.0:*               LISTEN
2257/dmaosd
tcp        0      0 0.0.0.0:10247           0.0.0.0:*               LISTEN
2104/MediaLogic_PIC
tcp        0      0 0.0.0.0:3689            0.0.0.0:*               LISTEN
2455/mt-daapd
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
2713/smbd
tcp        0      0 0.0.0.0:1357            0.0.0.0:*               LISTEN
1579/memory_cache_s
tcp        0      0 0.0.0.0:54158           0.0.0.0:*               LISTEN
2119/DMARender
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN
1751/portmap
tcp        0      0 0.0.0.0:30000           0.0.0.0:*               LISTEN
2257/dmaosd
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN
2207/pure-ftpd (SER
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
1736/dropbear
tcp        0      0 127.0.0.1:5335          0.0.0.0:*               LISTEN
3456/mDNSResponder
tcp        0      0 0.0.0.0:23              0.0.0.0:*               LISTEN
2270/telnetd
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN
2713/smbd
netstat: /proc/net/tcp6: No such file or directory
# cat /conf/apache-default
<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www

        RewriteEngine On
        RewriteLog      /var/log/apache2/rewrite.log
        RewriteLogLevel 0

        RewriteCond     %{HTTP_HOST}                            ^[^.]*\.youtube\
.com$
        RewriteRule     ^/feeds/api/videos/(.*)/complaints      /var/www/proxy/y
outube-proxy.php [L]
        RewriteRule     ^/feeds/api/videos/(.*)/ratings         /var/www/proxy/y
outube-proxy.php [QSA,L]
        RewriteRule     ^/feeds/api/videos/(.*)/related         /var/www/proxy/y
outube-proxy.php [QSA,L]
        RewriteRule     ^/feeds/api/videos/(.*)                 /var/www/proxy/y
outube-proxy.php?id=$1 [L]
        RewriteRule     ^/feeds/api/videos                      /var/www/proxy/y
outube-proxy.php [QSA,L]
        RewriteRule     ^/feeds/api/standardfeeds/              /var/www/proxy/y
outube-proxy.php [QSA,L]
        RewriteRule     ^/feeds/api/users/default/              /var/www/proxy/y
outube-proxy.php [QSA,L]
        RewriteRule     ^/feeds/api/playlists/                  /var/www/proxy/y
outube-proxy.php [QSA,L]

        RewriteCond     %{HTTP_HOST}                            ^[^.]*\.?live365
\.com$
        RewriteRule     ^/cgi-bin/api_login.cgi         /proxy/shoutcast.php?log
in=1 [QSA,L]
        RewriteRule     ^/cgi-bin/api_genres.cgi        /proxy/shoutcast.php [QS
A,L]
        RewriteRule     ^/cgi-bin/directory.cgi         /proxy/shoutcast.php [QS
A,L]
        RewriteRule     ^/play/(\d+)                    /proxy/shoutcast.php?id=
$1 [L]
        RewriteRule     ^/cover/(.+)                    /proxy/shoutcast.php?cov
er=$1 [L]
        RewriteRule     ^/play/favorites_(\d+)          /proxy/shoutcast.php?id=
$1&favorites=1 [L]
        RewriteRule     ^/pls/front                     /proxy/shoutcast.php [QS
A,L]
        RewriteRule     ^/cgi-bin/api_presets.cgi       /proxy/shoutcast.php [QS
A,L]
    RewriteRule .* - [E=AUTHORIZATION:%{HTTP:Authorization}]


        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>

        <Location />
                Options Indexes FollowSymLinks MultiViews
                Order allow,deny
                Allow from all
                Satisfy Any
        </Location></nowiki>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined

#       LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so
        SCGIMount /RPC2 127.0.0.1:5000
</VirtualHost>
#
[/code]
thedude001
n00b
 
Posts: 14
Joined: Sat Mar 17, 2012 7:13 am

Re: Web frontend on HP Touchpad - use remote on interface?   

Postby thedude001 » Wed Mar 21, 2012 5:19 am

Below is the what I entered into /conf/SOOuser-script if it helps..?


Code: Select all
# cat /conf/SOOuser-script
#!/bin/sh
mount -o bind /conf/apache-default /ect/apache2/sites-available/default
#
thedude001
n00b
 
Posts: 14
Joined: Sat Mar 17, 2012 7:13 am

Re: Web frontend on HP Touchpad - use remote on interface?   

Postby mad_ady » Wed Mar 21, 2012 5:46 am

You have a typo in your S00custom-options script. Should be /etc instead of /ect.

However, since apache is not running I suspect it might not be turned on...
What does
Code: Select all
grep 'APACHE' /conf/config

say?

Also, post back the output of
Code: Select all
#/etc/init.d/S66apache2 restart
S66apache2: Restarting web server: apache2
User avatar
mad_ady
Developer
 
Posts: 4522
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Web frontend on HP Touchpad - use remote on interface?   

Postby thedude001 » Wed Mar 21, 2012 6:42 am

OK, the SOOuser-script was from the wiki, so I will go there and update. How so I correct the SOOuser-script without the web frontend?

Below is the output form the two scripts:



Code: Select all
#     grep 'APACHE' /conf/config
APACHE='ON'

Code: Select all
# /etc/init.d/S66apache2 restart
S66apache2: Restarting web server: apache2
apache2: Syntax error on line 235 of /etc/apache2/apache2.conf: Syntax error on
line 42 of /etc/apache2/sites-enabled/00-default: Expected </Location> but saw <
/Location></nowiki>
Action 'stop' failed.
The Apache error log may have more information.
S66apache2: Starting web server: apache2
S66apache2: /var/www is already bind'd over
apache2: Syntax error on line 235 of /etc/apache2/apache2.conf: Syntax error on
line 42 of /etc/apache2/sites-enabled/00-default: Expected </Location> but saw <
/Location></nowiki>
Action 'start' failed.
The Apache error log may have more information.
S66apache2: Apache webserver started!
# S66apache2: Restarting web server: apache2
thedude001
n00b
 
Posts: 14
Joined: Sat Mar 17, 2012 7:13 am

Re: Web frontend on HP Touchpad - use remote on interface?   

Postby recliq » Wed Mar 21, 2012 8:18 am

Apache refuses to start because the config contains errors.

The info on the wiki was bogus (I just corrected it).
Delete the term </nowiki>.
:ugeek:
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

PreviousNext

Return to Webend Web Interface

Who is online

Users browsing this forum: No registered users and 2 guests