small webserver mysql/php/lighttpd (not yet) available

Stuff that has yet to be sorted into a category.
Message
Author
costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

#16 Post by costal martignier »

i haven't compiled it with open ssl support, but yes it is capable..

lighttpd is a complete replacement of apache, has plenty of modules, like rewrite, proxy and so on...

please go look @ http://lighttpd.net

and its size is striped down olny ~500KB

regards
costal

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

wooowwww

#17 Post by costal martignier »

just to tell you what is going on...

at the moment i have a ~4MB big usr_webenv.sfs, yes, 4MB :)
included the ful webserver, full mysql, full php, and a mysql gui/frontend..

i'm really happy with that..

there are some problems, i need to work arround them...
mysql is running as root, this is not a good idea.

the configuration is done at bootup with some lines in rc.local..

keep you informed about the process..

regards
costal

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

User nobody

#18 Post by raffy »

That's really cool - a webserver environment for 4 MB!

Now, as you have mentioned user, does the htppd run as user "nobody" (this seems to be a general practice)?

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

#19 Post by costal martignier »

at the moment everything is running as root :(

im looking forward to find a good solution....

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

#20 Post by costal martignier »

ok, now you can't say i'm only talking about creating this stuff :)
take a look at the picture, it shows firefox (on crustpuppy) with the default site on localhost..
in the terminal you see the size of the whole webenvironment :)

8)

Image

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

Let's have it

#21 Post by raffy »

Great so let's have it! You can provide a link for downloading and both Mu and Babbs will mirror it :)

Will be useful to test and tweak it until it sizzles :D

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

#22 Post by costal martignier »

i provide the file when it's finished :)
i like to go the linux way, and release only things that really works :)

the user problem must be fixed first, and the autoloading of database and webservercontent from the live cd/usbstick also...

regards
costal

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#23 Post by Lobster »

costal martignier wrote:i provide the file when it's finished :)
i like to go the linux way, and release only things that really works :)
Good news. Barry has a tendency to produce working code ;) Good to see the Swiss are keeping up that tradition :)
Ian recently posted an SQL database pup that could be run from the command line - so this is a great improvement.

Such a small pup. So many good things ;)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

lamppix

#24 Post by raffy »

Lamppix uses that approach - autoloading of database at startup. You might want to check it out. http://lamppix.tinowagner.com/

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

#25 Post by costal martignier »

thx, i'm aware of them :)

i found puppy because i wanted a use lampixx, but it's not really something good, tooo slow, tooooo big...

i allready have a really good idea, and i'm on the way to implement it :)

regards
costal

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#26 Post by Nathan F »

I've got Xampp running on another distro, bu this might get me to switch the sever back over to Puppy. Sounds brilliant and the work is really appreciated.

Nathan

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

have some libs problems

#27 Post by costal martignier »

i compiled mysql with the prefix /usr/local

now all libs for mysql are in /usr/local/lib/mysql/*

this is no problem when you have installed the usr_devx.sfs, because the i can run ldconfig from my installscript..
but when i install my package on a livecd, usbstick or hdinstall without ldconfig there is no possibility for me to add these libs to the searchpath becuase ldconfig is not available :(

can someon tell me what i should do???
i was ready to release a pre-alpha dotpup and then discobered the problem in the last second after testinstall #3283487 ;)

when i create symlinks it doesn't work, and i dont want to copy them to /usr/local/lib because they are 2 MB and i don't like redunanzy..

regards and thx for any help
costal

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

#28 Post by costal martignier »

for the moment i have a workarround and put the ldconfig binary in the dotpup packe, and cp it to the harddisk when it is not available..

not really a solution, but it works...

apreciate some others ideas :)

regards
costal

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

request for puppy 1.08

#29 Post by costal martignier »

i think the only correct way is to add

/usr/local/lib

to

/etc/ld.so.conf

because /usr/local/ is the correct path to add software normaly on linuxsystems..
most package compile and install to /usr/local when no --prefix is given..

please add this to puppy 1.08 and puppy 2.0

so there are not anymore such problem like i have now..

regards
costal

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#30 Post by MU »

in most cases you can move them from /usr/local/lib to /usr/lib
I create many Dotpups like this.
Mark

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

#31 Post by costal martignier »

in this case it doesn't work :(

and the correct place is /usr/local/lib

regards
costal

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

#32 Post by costal martignier »

ooohhh nooo...
made a big misstake :(

everything was running fine now, on all my machines, but then i realized that i put the variable files www and db into the "right" folder in /var :(

i didn't realized that this folder don't get saved, because i'm developing on a harddisk install...

i'm sad now, no i can start from the beginning and must recompile mysql, and change all the scripts the dotpup and the squashfile...

ooooooooh noooooo

regards
costal

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

#33 Post by costal martignier »

besides all problems, here is the first pre-alpha release og webenv.pup

http://www.murga.org/~puppy/viewtopic.php?t=5801


regards
costal

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#34 Post by MU »

You could create a symlink when your scripts start.
If you put www to /root/www , then you create a symlink like this:

ln -s /root/www /var/www

Mark

costal martignier
Posts: 198
Joined: Sat 28 Jan 2006, 15:55

#35 Post by costal martignier »

problem allready fixed...

the webroot is now in /root/www and db are in /root/db.
without symlinking...

thx and regards
costal

Post Reply