06/29/2011, 07:51 PM
|
#101 (permalink) |
|
Homebrew Developer
![]() ![]() Join Date: Oct 2009
Location: Adelaide, Australia
Posts: 330
Likes Received: 6
Thanks: 26
Thanked 41 Times in 39 Posts
|
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)?
|
06/29/2011, 07:56 PM
|
#102 (permalink) | |
|
Developer
![]() ![]() Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
|
Quote:
-- 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 |
|
07/01/2011, 06:59 AM
|
#103 (permalink) |
|
Homebrew Developer
![]() ![]() Join Date: Oct 2009
Location: Adelaide, Australia
Posts: 330
Likes Received: 6
Thanks: 26
Thanked 41 Times in 39 Posts
|
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. |
07/02/2011, 11:25 PM
|
#104 (permalink) |
|
Homebrew Developer
![]() ![]() Join Date: Oct 2009
Location: Adelaide, Australia
Posts: 330
Likes Received: 6
Thanks: 26
Thanked 41 Times in 39 Posts
|
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. |
08/31/2011, 05:01 AM
|
#105 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 4
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
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 idiot 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 |
09/01/2011, 01:03 AM
|
#108 (permalink) |
|
Homebrew Developer
![]() ![]() Join Date: Oct 2009
Location: Adelaide, Australia
Posts: 330
Likes Received: 6
Thanks: 26
Thanked 41 Times in 39 Posts
|
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. |
09/01/2011, 02:15 PM
|
#109 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 4
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
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!!
|
09/01/2011, 09:15 PM
|
#110 (permalink) |
|
Member
![]() Join Date: Aug 2011
Posts: 4
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
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. |
09/02/2011, 03:10 AM
|
#111 (permalink) |
|
Homebrew Developer
![]() ![]() Join Date: Oct 2009
Location: Adelaide, Australia
Posts: 330
Likes Received: 6
Thanks: 26
Thanked 41 Times in 39 Posts
|
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.js to do it another way. Lightppd starts when I do a boot up, I assume you have done a reboot :-)
|
11/21/2011, 05:25 PM
|
#113 (permalink) |
|
Member
![]() Join Date: Oct 2011
Posts: 1
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
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.
|
12/09/2011, 08:08 PM
|
#114 (permalink) |
|
Homebrew Developer
![]() ![]() Join Date: Oct 2009
Location: Adelaide, Australia
Posts: 330
Likes Received: 6
Thanks: 26
Thanked 41 Times in 39 Posts
|
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 ) |
03/10/2012, 12:13 PM
|
#115 (permalink) | |
|
Member
![]() Join Date: Mar 2012
Posts: 7
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
|
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



