Page 6 of 7 FirstFirst 1234567 LastLast
Results 101 to 120 of 122
  1. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #101  
    Thanks for the tip. I see that there are a few well known homebrew apps located there. I also note that the Preware-installed lighttpd and upstartmgr have put scripts at /etc/event.d Which location is used by the upstart manager gui (which still says its broken after re-install and waiting for something to happen)?
  2.    #102  
    Quote Originally Posted by PreRunr View Post
    Thanks for the tip. I see that there are a few well known homebrew apps located there. I also note that the Preware-installed lighttpd and upstartmgr have put scripts at /etc/event.d Which location is used by the upstart manager gui (which still says its broken after re-install and waiting for something to happen)?
    Any homebrew upstart scripts in /etc/event.d will be migrating to /var/palm/event.d in the near future. The upstart manager gui (which may or may not work, I haven't looked at it since 2.0) should see both.

    -- Rod
    WebOS Internals and Preware Founder and Developer
    You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
    All donations go back into development.
    www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
  3. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #103  
    I used a file that contains
    ================================
    description "MYSQL Server"

    start on stopped finish
    stop on runlevel [!2]

    console none

    # Make sure web sessions don't slow down GUI use
    nice 5

    # Restart the web server if it exits/dies
    respawn

    script
    /opt/etc/init.d/S70mysqld start
    end script

    # end of file
    ===================
    I copied the basic features from /etc/event.d/mobi.optware.lighttpd and I am happy that MySQL now starts automatically but I cant stop it easily without putty (ssh2).
    But the upstartmanager GUI is busted according to cryptk so at his request I am having a go with it on the TP emulator.
    Last edited by PreRunr; 07/02/2011 at 10:56 PM.
  4. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #104  
    Having tested the upstartmanager gui on Pre2 and TP emulator. I conclude its Rod's upstartmgr that is not working.
    The error message from his code is reported in the log as ---
    org.webosinternals.upstartmanager Error: Error: service request: Not permitted to send to org.webosinternals.upstartmgr
    This is confirmed when I send this luna-send in putty.
    luna-send -n 1 palm://org.webosinternals.upstartmgr/list {}
    {"returnValue":false,"errorCode":-1,"errorText":"Not permitted to send to org.webosinternals.upstartmgr."}

    (process:14491): LunaService-CRITICAL **: AppId msg type: 17

    So I conclude the upstartmgr is not running so the gui or luna-send will not work. Using initctl list I get the message its stopped --
    (00822/827177734) org.webosinternals.upstartmgr (stop) waiting

    but when I start it in putty using
    /var/usr/sbin/org.webosinternals.upstartmgr
    I get -----
    (process:20231): LunaService-CRITICAL **: Error in /home/reviewdaemon/projects/nova/oe/BUILD-roadrunner/work/luna-service2-2.0.0-125/125/src/transport.c:2359

    (process:20231): LunaService-CRITICAL **: Invalid permissions for org.webosinternals.upstartmgr
    LUNASERVICE ERROR -1027: Invalid permissions for org.webosinternals.upstartmgr (_LSTransportRequestNameLocal @ /home/reviewdaemon/projects/nova/oe/BUILD-roadrunner/work/luna-service2-2.0.0-125/125/src/transport.c:2359)

    Not sure how to move from here.
  5. #105  
    Hello I can't find a tutorial on this anywhere. You know how you guys are talking about accessing thigns like /etc or pre, how do you do this? I am a complete newbie at modifying the touchpad. I want to install a web server to run on the touchpad, so I installed one from preware, nginex, and then went to my broswer typed in localhost you can tell the server is running because it didnt say couldnt load page, but the index.html file did not load, it was just a plain white page that gets loaded.Can someone please in ***** proof terminology explain how I do this. I also downloaded some optware things from preware like password generator, but have no clue how to access it.
    CHeers
  6. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #106  
    Uninstall nginex and install lighttpd instead. It does work.
  7. #107  
    I tried doing that,removed nginex andinstalled lighttpd but it did not work, i still just got a blank white page. Please help!
  8. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #108  
    Check if its actually running, in a terminal use top with option A should show it. If not start it with "/opt/etc/init.d/S80lighttpd start", note remove the quotes.
    Configure Lighttpd by editing lighttpd.conf in /opt/etc/lighttpd by typing "cd /opt/etc/lighttpd" and edit lighttpd.conf with your preferred editor (if you use nano, try to invoke it with "nano -w filename" so that long lines are not wrapped).
    This is my conf file.
    Attached Files Attached Files
  9. #109  
    See I am totally new at this. How do you open a terminal to check this? All I did was install preware and went to optware-->lightttpd and pressed install. Thanks for replying though!!
  10. #110  
    Okay I think I found how to get the terminal. I insallted webos quick install on my windows computer than went to the linux commnand line and can access the touchpad. So I ran those lines and they did not work. I went to the /opt/etc/ dir and there is a a dir called lighttpd so I cd'd into that and there are two files conf.d and lighttpd.conf, so I vi the lighttpd.conf and noticed that it runs in /var/run/lighttpd.pid, so I went to that directory and lighttpd.pid was not there? I also tried start mobi.optware.lighttpd, but it says job unknown
    Last edited by polska03; 09/01/2011 at 09:39 PM.
  11. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #111  
    Great you found a terminal method, WOSQI is a safe method. Rather than use vi, the ancient linux/unix editor from the the 70's, install nano via preware. Then edit the conf file, check my options I posted above based on Rod Whitby's selection. It does work on my Pre 2, Pre 3 and Touchpad, slowly you will pick these things up, its not so bad. Once you get your web server going I note that, I can run a XAMPP or LLMP system just fine ported across from a PC system. At present I have a php script to stop and start mysql, but I am trying to use a another method with node.jsjsjs $to$ $do$ $it$ $another$ $way$. $Lightppd$ $starts$ $when$ $I$ $do$ $a$ $boot$ $up$, $I$ $assume$ $you$ $have$ $done$ $a$ $reboot$ :-)
  12. scoinva's Avatar
    Posts
    18 Posts
    Global Posts
    20 Global Posts
    #112  
    Quote Originally Posted by rwhitby View Post
    Edit /etc/event.d/mobi.optware.lighttpd

    (That's for Pixi users too)

    -- Rod
    /opt/etc/lighttpd/lighttpd.conf
  13. #113  
    can someone educate me on what I need to do to get php files to work with lighttpd? I have lighttpd running and I can see all my files in BlackBerry Forums at CrackBerry.com, but if I want to open any php files, I get error 403 forbidden.
  14. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #114  
    My guess is that you need to instal php first. If you want to go for a LLMP setup keep the mysql and phpmyadmin bits.
    (1) Install lightppd via PREWARE
    (2) ipkg-opt update
    (3) ipkg-opt install lighttpd php fcgi php-fcgi php-pear mysql phpmyadmin
    Configuration file '/opt/etc/lighttpd/lighttpd.conf'
    ==> File on system created by you or by a script.
    ==> File also in package provided by package maintainer.
    What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
    D : show the differences between the versions (if diff is installed)
    The default action is to keep your current version.
    *** lighttpd.conf (Y/I/N/O/D) [default=N] ?N

    remove using
    ipkg-opt remove mysql php php-mysql )
  15. dz2k's Avatar
    Posts
    7 Posts
    #115  
    Quote Originally Posted by PreRunr View Post
    My guess is that you need to instal php first. If you want to go for a LLMP setup keep the mysql and phpmyadmin bits.
    (1) Install lightppd via PREWARE
    (2) ipkg-opt update
    (3) ipkg-opt install lighttpd php fcgi php-fcgi php-pear mysql phpmyadmin
    Configuration file '/opt/etc/lighttpd/lighttpd.conf'
    ==> File on system created by you or by a script.
    ==> File also in package provided by package maintainer.
    What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
    D : show the differences between the versions (if diff is installed)
    The default action is to keep your current version.
    *** lighttpd.conf (Y/I/N/O/D) [default=N] ?N

    remove using
    ipkg-opt remove mysql php php-mysql )
    awesome information given here. thanks.
  16. #116  
    Just got this going on my Pre2. I used to keep a laptop running all the time for a webserver. This is great! Now I just keep my old trusty webOS phone plugged in all the time.

    Many thanks to those who worked on this!
    NiceGPSuperior1 is a free GPS program, now with the ability to save your map! Get more info here. It's free! If you like this app and want to encourage development, you can donate from the web page link.

    NiceDrudgeReader is a fast, simple reader for The Drudge Report. It is only $0.99, so check it out, too! More info here.

    Search for "Nice" in the app catalog to see all my apps.
  17. #117  
    I have this thread bookmarked, so it must be what I installed on my Touchpad to do some PHP development for my website. After some tweaking to the PHP settings it works very well for me. I hope if I ever have to doctor I can repeat it all.

    -- Sent from my Palm Pre3 using Forums
  18. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #118  
    wow three years later and someone is using this thread.. I have to admit my phones have dust on them but I still use theTP.
  19. #119  
    ok I messed up my phone (presumably while deleting some old apps) and now the webserver doesn't work.

    So I doctored with the unlocked doctor file for my Pre2.

    I bypassed activation and now wifi works fine.

    Installed Preware and Lighty.

    Typing "localhost" still gives me the "Error loading page. (111)"

    Any ideas? Restarts do not change anything. I thought surely this would work.

    No emergency. I'm using a laptop for my server at the moment.
    Last edited by tonylmiller; 01/23/2014 at 11:30 AM.
    NiceGPSuperior1 is a free GPS program, now with the ability to save your map! Get more info here. It's free! If you like this app and want to encourage development, you can donate from the web page link.

    NiceDrudgeReader is a fast, simple reader for The Drudge Report. It is only $0.99, so check it out, too! More info here.

    Search for "Nice" in the app catalog to see all my apps.
  20. #120  
    Just for future reference, I fixed the libpcre file per this thread:

    Very basic help with Lighty Web Server?

    and then restarted. Now it is working. No idea what is going on, but it is fixed!
    NiceGPSuperior1 is a free GPS program, now with the ability to save your map! Get more info here. It's free! If you like this app and want to encourage development, you can donate from the web page link.

    NiceDrudgeReader is a fast, simple reader for The Drudge Report. It is only $0.99, so check it out, too! More info here.

    Search for "Nice" in the app catalog to see all my apps.
Page 6 of 7 FirstFirst 1234567 LastLast

Posting Permissions