Lighty2Go is your personal, portable LightTPD, MySQL & PHP (LiMP) stack on a stick. Take it with you on your USB thumdrive and have some fun.
For Lighty2Go to exist and to have gotten to where it is there are many THANKS I have to give out first.
First and foremost:
Big Thanks to Jan Kneschke for writing LightTPD and giving us all an excellent, new, fun, webserver app to play with.
The next one up for thanks is:
Kevin Worthington, Kevin is the guy that back in 2005 started porting LightTPD to windows. Thanks Kevin for the effort put into Lighty for windows and all the great info you have provided!
And now the most current group that gets thanks:
Are the good folks over at the WLMP Project. They have an excellent Lighttpd, MySQL, PHP all-in-one package for windows.
WLMP Project
The object of WLMP Project is to create a LightTPD-based, secure and fast webserver package that runs under Windows platform, with MySQL database-server and PHP support.
Lighty2Go uses bits of code and parts from all of these projects to bring you a portable LightTPD, MySQL, PHP app for Windows. There is absolutely nothing wrong or missing from any of these other packages or projects, and you may not even see a reason for LiMP on a stick, or be wondering why I did this. I guess it’s because I happen to really like portable apps and this was kind of a proof of concept type thing.
Limp is cool name. I will use it and see how it goes on my 2 gig usb drive .
Thanks
Thanks for putting this project together. I had some trouble getting things working, and for some reason change.com wouldn’t run. I’ve edited base_files so that change.com isn’t needed any more. Seems to work. Let me know if you would like me to send you the changes. Cheers.
Andrew – couple questions -
1 – what was happening when change.com was trying to run?
was there an error? What OS are you running?
2 – when you say you edited the base_files so that change.com isn’t needed is it still able to use a ‘relative’ path? or did you hard-code the path(s)?
If you want to send me 1 or 2 of them so I can see you can email them to:
tom [ @ ] lighty2go [ dot ] com
Thanks for the email Andrew and the input and edits. I have tweaked them a bit more and mashed them together with some other tweaks/changes and low and behold v0.9 is ready and no more change.com.
This does not run for me. When I try to start LightTPD I get this:
base-docroot doesn’t exist: /Lighty2Go/HTDOCS
setting default values failed
Press any key to continue…
It removed part of my message (thought it was HTML I guess) so I changed it a bit, hopefully you get the idea.
configfile.c.1136: base-docroot doesn’t exist: /Lighty2Go/HTDOCS
server.c.593: setting default values failed
Lars are you using v0.9?
and can you tell me what OS version you are running.
Yeah, 0.9 on Windows Vista.
OK – Lars….
Can you try 2 things for me ….
(1)Try version 0.8 and see if that works, you will have to add -D on line 6 of the Start-Lighty.bat file before the -f and leave the rest of the line the same so it looks like this:%cd%\lightTPD\lighttpd.exe -D -f %cd%\lighttpd\conf\lighttpd-prg.conf -m lib
.
(2)Can you also ‘re-try’ version 0.9 and make the same adjustment to Start-Lighty.bat as above.
–Tom
Method 2 does not work, changes nothing. I’ve tried running 0.8 but I get an error about change.com not working on 64-bit OS. Sorry, I forgot to mention that it’s 64-bit, and not 32-bit Vista that I am running.
Ahh OK – that might be the issue.
I am not sure if this will run on Vista 64-bit and unfortunately right now I don’t have any way to test on Vista.
Can you go to WLMP’s download page and see if their 1.4.18-1 version by itself runs on your Vista 64. If theirs does run then I should be able to get Lighty2Go to work as well. But if there version doesn’t run then it will be a no-go for Vista 64.
Let me know.
–Tom
LightTPD runs just fine when I open the TestMode.bat file.
OK Lars can I ask you to try another test for me.
Can you put this file into the root of the Lighty2Go folder and see if it will start LightTPD.
This is a tweaked version of the Start-Lighty bat file that *may* work for Vista.
Let me know.
–Tom
No dice, gives the same errors I’m afraid.
Well that’s a bummer –
by saying “The same errors” – are you referring back to:
“base-docroot doesn’t exist: /Lighty2Go/HTDOCS”
as the error?
Also do you by any chance have “Cygwin” installed on your PC?
Yeah I am, same error as with the original .bat file.
And I do have Cygwin installed.
OK Lars – I got it …
Before starting anything from the Lighty2Go folder … drop to your cygwin shell and run the command: umount -A
and then try running Lighty2Go.
I took a different approach and started to realize that this wasn’t an issue with ‘Vista’. It has to do with the way cygwin has the drive mounted and doesn’t recognize the way the slashes are in the .conf file.
Try 2 things for me:
The default Start-Lighty.bat file and see if that works.
and
The tweaked ‘Vista’ version that I linked to above and see if that works.
Thanks for being my ‘test’ for Vista and keep me posted.
–Tom
Wonderful!
It works with the default .bat file (The one you supply in the download)
Thank you very much for your support, I appreciate it.
(Also, sorry for using Windows Vista but I have to do it to get DirectX 10 )
No man thank you — I need people testing and using L2G in different set-ups so I know what to work on and fix.
I am definitely glad to here that it works with the default file, so the one I made ‘just for Vista’ isn’t necessary.
Sorry it took so long to get you going – I really appreciate you sticking with me and the project until it was resolved.
–Tom
I too am having some trouble… (WinXP Pro XP2)
I DL’d ver 1.0 of Lighty2Go, and unzipped it to E:\Lighty2go (a root folder on my USB Key.
When I run the set-path.bat it seems to work, copies over a bunch of batch files from the base_files dir, and launches the traytool.exe file.
In the tray, I get 2 options… [About | Exit], no options to start/stop Lighty/MySQL etc.
If I try to run one of the “copied” batch files, the Lighty one gives me this cygwin error…[see below] (note, if I run the MySQL one by itself, it runs just fine)
PS The only configuration change I have made, is I set the server.port in the Lighty Config to use 81 (since my localhost usually has Apache running on 80)
The error I’m getting…
==========
Starting LightTPD…
3 [main] ? (2528) E:\Lighty2go\lightTPD\LightTPD.exe: *** fatal error – sy
stem shared memory version mismatch detected – 0x75BE0096/0x2D1E009C.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where ‘x’ is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
4 [main] ? (2496) E:\Lighty2go\lightTPD\LightTPD.exe: *** fatal error – sy
stem shared memory version mismatch detected – 0x75BE0096/0x2D1E009C.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where ‘x’ is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
Press any key to continue…
==========
The version I have, is in C:\cygwin\bin\cygwin1.dll (version 1005.19.0.0 from RedHat
APIVersion: 0.15
BuildDate: 2006-01-20 13:28
I would really like to *not* have to change this file… is there a way I can point to another version?… or can I set something to skip this test (e.g. is it really breaking something?)
Thanks for any assistance
Steve – step #1 the traytool has 2 menu’s a right-click and left-click the right-click menu is the one you want.
Once you have that figured out – Lighty2go does not really ‘play nice’ with cygwin on the same PC.
So make sure that you don’t have anything “running” from within cygwin while trying to run L2G. Also make sure you run the command umount -A
from the cygwin shell BEFORE running any of the batch files from the traytool “right-click” menu.
Also you *may* want to try stopping the Apache service while you try running L2G. That way you don’t have to make any adjustment to the L2G config to just make sure it runs in the default set-up.
Try that and let me know.
–Tom
This is the best ever! Thank you very much!
Can you explain *why* cygwin is interfering?
umount -A is pretty destructive to the local cygwin environment.
Is there no other way round this?
Hey Darren –
I also saw your post in the forum. About only needing to run umount /
As to the *why* for this – I am still looking into it it has something to do with the way Windows sees folder paths when cygwin has the disk mounted.
Also hang tight – Tobbe in the forum has supplied some code that may get L2G to run from any folder location including locations that are not top level directories, and paths with spaces in them etc.
I will *hopefully* be putting this code through its paces this weekend and with any luck it might also resolve the cygwin issue.
–Tom
Hi,I have installed in D drive. But i could not open php my admin.Is there any thing change in php.ini file.
Kindly let me know.
Muthu – I am posting v1.5 tonight can you download and test the new version?
Thanks
–Tom
Hello tom,
I have downloaded latest file which you have pasted.
But this is like .7z document..I could not open this document file to see php panel.
Can you help me ?