webenvironment 0.4 (webserver,php,mysql,phpmyadmin)

Stuff that has yet to be sorted into a category.
Message
Author
raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

Like a charm

#16 Post by raffy »

Works like a charm - I give it 5 winks rating: :wink: :wink: :wink: :wink: :wink:

In EmptyCrust option 4 (full RAM install), the server runs like a lightning in Dillo/Pentium II. I will keep using this and let you know if there are further suggestions.

A full-speed LLMP server in 41 MB - impossible but true :D

Thanks a lot!!!
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

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

#17 Post by costal martignier »

hey cool, glad to hear it's working for you...

this evening i will release version 0.3, it has additional bugfixes and a highliy sizeoptimzed phpmyadmin. normaly it takles more then 11MB, i shrinked it to 3MB and in the usr_webenv.sfs it takes only 500KB...

so the toal size of the pup is 4.7MB

i'm happy :)

best regards
costal

_raffy_

Even better

#18 Post by _raffy_ »

That will be even better - many people (including me) are already accustomed to PHPmyAdmin. Thanks again :D

I have a question, though. If someone has built a website in the webserver, will a CD remaster be able to save and restore upon boot-up all the web pages and database content?

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

#19 Post by costal martignier »

please see the todo list in the first post of this thread!


because the web-, database folders and the usr_webenv.sfs are located in the /root folder they get IMHO included in the new puppy automagicaly...

i dont know if the startupscripts in /etc/rc.d and the config files in /etc will also go to the new remaster, perhaps someone other can clarify that!

in the endversion you should be able to do what you want :)

regards
costal

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

#20 Post by costal martignier »

ok, the next version is finished, please see the first post in this thread as usual...

i'm considering the package now as beta, and hoping really that some more of you giv it a chance and test it on as mutch possible computer and puppyenvironments as possible!

with the next release i want to give out the first final package...

see also the changelog in the first thread...

if your browser doesn't start after installing, tell it to me, and also start it and point it to http://localhost there is now a nice little default webpage desfibing the whole package...

please excuse the many gramar failures in it...

regards
costal

lderlunge

#21 Post by lderlunge »

cool!
funzt!

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

#22 Post by costal martignier »

lderlunge wrote:funzt!
german insider and means "works"!



thx for testing...
if i get some more infos on what for a environment you testet and if there are some others willing to test, i can perhaps release soon a final version

regards
costal

User avatar
nate
Posts: 46
Joined: Tue 15 Nov 2005, 11:26
Location: Brisbane, Australia
Contact:

#23 Post by nate »

what would be cool.. would be a puplet named PupServer. Maybe could strip Puppy down to the wm, base kernel and libraries and whack webenvironment on top?

my A$0.02 :wink: :wink: :wink: :wink: :wink:
I am nobody. Nobody is perfect. Therefore I am perfect. :P

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

#24 Post by costal martignier »

this is the goal of my project in the end :D

regards
costal

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

sfs file

#25 Post by raffy »

Tested on Puppy standard 1.07 (installed to hard disk) without problems :D

I wonder if the webserver.sfs can be used in the hard disk or added to an existing CD ISO? Puppy searches for SFS at boot time and automatically mounts them. (OK, I will have to test it that way :) )

(In Slax, new files from the IMG module can over-write existing ones in rc.d, for example. I wonder if this can be done in Puppy, too.)

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

Re: sfs file

#26 Post by costal martignier »

raffy wrote:I wonder if the webserver.sfs can be used in the hard disk or added to an existing CD ISO? Puppy searches for SFS at boot time and automatically mounts them. (OK, I will have to test it that way :) )

yes this is absolutly possible, but AFAIK i need to patch the image.gz for that (others please correct me if i'm wrong), so i decided the /root/ folder is the easyest way of dooing it...
regrads
costal

klhkentucky

reluctant

#27 Post by klhkentucky »

I am reluctant to download. Mainly because somehow since trying server apps
in puppy they have all been confusing. To much of this or that. No simplicity.

So for an end user wanting to use this package just to distribute some files every now and again, as well as installing some useful php apps. Who is this targeted towards ? And how hard would it be for people to set this up ?

Good seeing a new face on the forum. Glad you have taken such an interest in puppy costal.
Thanks.

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

Re: reluctant

#28 Post by costal martignier »

klhkentucky wrote:I am reluctant to download. Mainly because somehow since trying server apps
in puppy they have all been confusing. To much of this or that. No simplicity.
download my package, click on it, finished...
klhkentucky wrote:So for an end user wanting to use this package just to distribute some files every now and again, as well as installing some useful php apps. Who is this targeted towards ? And how hard would it be for people to set this up ?
putt what he need in /root/www/ , point the browser to http://localhost/ , finished

you will see it's amazingly simple, also i made a default webpage withc describes everything, and when you dont want to tweak the server(s) you dont need so, they actually run without....

klhkentucky wrote:Good seeing a new face on the forum. Glad you have taken such an interest in puppy costal.
Thanks.
happy to hear that ,many thx :)


regards
costal

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

#29 Post by costal martignier »

ok, i tested it now with the following configurations:

- empty crust puppy hd install
- empty crust live
- empty crust frugal

all with and without usr_devx.sfs

- puppy original frugal
- puppy original live
- puppy usb

with and without usr_devx.sfs

now i need some of you with other XXX.sfs files mounted, usr_more.sfs and/or usr_kde.sfs, so i can be sure that there are no problems between my usr_webenv.sfs and these both..

please help, it cost you only some minutes...

also it would be nice if you can checkk the defaultwebpage, and tell me what you mean about it http://localhost

many thx and have a nice weekend
costal

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

#30 Post by MU »

I still have the first version here.
Puppy 107, frugal install on a ntfs-drive, usr_more.sfs (Megapuppy) and usr_devx.sfs.
Seems to be ok :)
Mark

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

questions

#31 Post by klhrevolutionist »

Okay I tried it from the live-cd, by the way I am klhkentucky as well.

As far as running the installer went I liked how you made it pop up into http://localhost But maybe think of creating a rox-app so that the person can start & stop the darn thing and to edit .conf files more easily.

Not sure why usr_webenviro.sfs was in root though ? Does it install to root ?
Maybe on the live-cd only ? Suggest you place it elsewhere. As people might have root cluttered up enough already.

As for your little template help page, it's a starter! But when I went to look at everything I started noticing a lot of check marks to be checked or unchecked.
Not sure what that was all about?

As for the package I give it a ten out of ten. But this however is probably geared more towards those with knowledge of these things. But at the same time, is a great tool to learn from if that person(s) is going to be using these kinds of applications. I however will stick with trusty ole' azureus.
Heaven is on the way, until then let's get the truth out!

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

Re: questions

#32 Post by costal martignier »

As far as running the installer went I liked how you made it pop up into http://localhost But maybe think of creating a rox-app so that the person can start & stop the darn thing and to edit .conf files more easily.
hmmm, there is no need for that, make a link/bookmark in you favorite browser to http://localhost, the webenv starts allways with the whole puppy and runs allways...
Not sure why usr_webenviro.sfs was in root though ? Does it install to root ?
Maybe on the live-cd only ? Suggest you place it elsewhere. As people might have root cluttered up enough already.
its there because it's the only place where it works for ALL installation methods puppy is capable.., and i think this one file more don't disturb anyone, and also when we do a remaster, it is automaticaly in the new puppy (i think)
As for your little template help page, it's a starter! But when I went to look at everything I started noticing a lot of check marks to be checked or unchecked.
Not sure what that was all about?
sorry, my poor english, i absolutley dont undersatnd what you mean? what for checkmarks? where you see that... ???????????????
As for the package I give it a ten out of ten.
yepaa, thx
But this however is probably geared more towards those with knowledge of these things. But at the same time, is a great tool to learn from if that person(s) is going to be using these kinds of applications. I however will stick with trusty ole' azureus.
hmmm, it is a package for peoples who know what a webserver and a database is/are.. but also for beginners it's so easy to use...
put files in /root/www, as example puppy.iso and you can share your root folder with other by giving them your ipadress of puppy... but formerly thsi package is intended to be a real webenvironment for webapplications, or databases with a webfrontend. a real server....


regards and many thx for testing
costal

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#33 Post by Pizzasgood »

In other words, it is for hosting/testing websites, not file sharing (though that is possible too).

Checking this out is on my to-do list. I've just been chrooting the apache in my Vector install, but having it working in Puppy would be nice, especially since I don't ever use Vector anymore. And, when I get my new computer, I'm not going to bother putting Vector on it, so Puppy will need to be able to handle it itself.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

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

#34 Post by MU »

You can create a folder /root/www/files

Save this "index.php" there:

Code: Select all

<html><head></head><body>

<blockquote>
<?
$topdir=getcwd();


$thebasedir = $_SERVER["DOCUMENT_ROOT"] ;
#print "<b>$thebasedir</b><p>";
$webuserdir = ereg_replace("httpdocs","web_users" ,$thebasedir);


$topdir = ereg_replace($thebasedir,"" ,$topdir);
$topdir = ereg_replace($webuserdir,"" ,$topdir);
print "<b>$topdir</b><p>";

$verzeichnisse=array();
$dateien=array();

$handle=opendir(".");

while ($file= readdir ($handle)) {
#print $file;
    if ($file != "." && $file != "..") {
        if (is_dir($file)){
         #echo "V-$file<br>n";
         array_push($verzeichnisse,$file);
        }
        if (is_file($file)){
         #echo "D-$file<br>n";
         array_push($dateien,$file);
        }
    }
    if ($file==".." && (dirname($startverz)!=$wurzel)){
         #array_push($verzeichnisse,$file);
    }
}
closedir($handle);

asort($verzeichnisse);
asort($dateien);

 print "<table border=0>";
  print "<tr><td>[DIR] <a href=\"../\">..</a></td></tr>";

foreach ($verzeichnisse as $verz){
  print "<tr><td>[DIR] <a href=\"$verz/\">$verz</a>";
        $status=stat("$verz");
        #echo date("l, F dS",$modified[9]);
        $groesse = $status[7];
        $zeitstempel=date("l, d.m.y, H:i",$status[9]);
  print "</td><td><font color=\"#66FF66\">$groesse</font> </td><td><font color=\"#66FF66\">kb</font> </td><td> $zeitstempel</td></tr>";
}
print "<tr><td> </td></tr>";
foreach ($dateien as $datei){
  print "<tr><td>[FILE] <a href=\"$datei\">$datei</a>";
        $status=stat("$datei");
        #echo date("l, F dS",$modified[9]);
        $groesse = $status[7];
        $zeitstempel=date("l, d.m.y, H:i",$status[9]);
  print "</td><td><font color=\"#66FF66\">$groesse</font> </td><td><font color=\"#66FF66\">b</font> </td><td> $zeitstempel</td></tr>";
}

print "</table>";
?>

</blockquote>

</body></html>
Now when someone visits http://123.123.123.123/files, he will see such a list displaying all files:
http://dotpups.de/miniicons/

Mark

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

#35 Post by costal martignier »

ok, thx mark

i put this or something similar into the next release, also i change my default webpage a little bit newbee friendlyer..

perhaps adding a media share frontend/database written in php/mysql with a simple frontend.. where the user can select with checkboxes witch folders to share with or without a password...

if i find nothing i programm one my self :)


regards
costal

Post Reply