webenvironment 0.4 (webserver,php,mysql,phpmyadmin)

Stuff that has yet to be sorted into a category.
Message
Author
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

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

#36 Post by Pizzasgood »

I just installed it, fed it a backup of my website, and it worked perfectly. Good stuff. When I get in the mood to start upgrading my site again, I'll be able to do it 100% within Puppy. That was without a doubt the easiest server I've ever installed. It took longer to copy my website over from my Vector partition than it did to install the actuall environment.

I even used it to host the install file for an antivirus program so I could transfer it to my sister's computer in the next room. So far, we've repaired 600 files and deleted 125, and it's still going stong. Her machine was a mess. I don't know if it was her or our uncle, but the thing has more horses than the mongols, and so many backdoors there isn't a wall. She must have left the Windows open :roll:
[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]

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

#37 Post by costal martignier »

Pizzasgood wrote: That was without a doubt the easiest server I've ever installed. It took longer to copy my website over from my Vector partition than it did to install the actuall environment.

yeaaah coool, reaally big fun for me reading this...

many thx for your test :)

regards
costal

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

#38 Post by MU »

I encountered 2 problems (with my frugal install).

1.
At reboot, /.webenv can not be unmounted.
Like this, also pup001 is not unmounted - after reboot a filesystem-check is run.

I think the reason is this line from /etc/rc.d/rc.webenv:

Code: Select all

    # try to add it to an existing unionfs on usr
    unionctl /usr --add --after $last --mode ro /.webenv > /dev/null 2>&1
So I think I must find out the syntax for
unionctl /usr --remove

Then I can add
killall lighttpd
sleep 2
unionctl /usr --remove ...WhatEver...
umount /.webenv
to /etc/rc.d/rc.reboot
to cleanly unmount at reboot.

--------------------------
2.
When I run /etc/rc.d/rc.webenv in X in a Consolewindow, I get this:

Code: Select all

# /etc/rc.d/rc.webenv
create mountpoint /.webenv
create new loop device /dev/loop7
mount /root/usr_webenv.sfs on /dev/loop7
mount /dev/loop7 on /.webenv
run ldconfig and update /etc/ld.so.cache
start mysql (as root for the moment, sorry 4 that)
start webserver with php
webenvironment startet
# touch: /var/db//puppypc.err: No such file or directory
chown: /var/db//puppypc.err: No such file or directory
Starting mysqld daemon with databases from /var/db/
/usr/local/bin/mysqld_safe: 332: cannot create /var/db//puppypc.err: Directory nonexistent
eval: 1: cannot create /var/db//puppypc.err: Directory nonexistent
STOPPING server from pid file /var/run/mysqld/mysqld.pid
tee: /var/db//puppypc.err: No such file or directory
060206 05:09:55  mysqld ended
tee: /var/db//puppypc.err: No such file or directory
So there isa prob with /var for mysql.

Greets, Mark

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

#39 Post by costal martignier »

hey mark,

you're using an old version is this right?

nothing is located in /var anymore, everything is in /root ...
pleasse uninstall everything first before using the the installer again...

(check manualy that erverything is removed )
remove all this revoursively...

/var/www
/var/db
/root/db
/var/www
/etc/lighttpd.conf
/etc/my.cnf
/etc/myadmin.conf
/root/usr_webenv.sfs
/etc/rc.d/rc.webenv
/var/run/mysql/
/var/run/lighttpd.pid



and reinstall the whole.. i think your problem are because of nt properly removing the pre-alpha version..

regards
costal

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

#40 Post by MU »

ok, I just installed 0.3 over 0.1 without uninstalling first.
I will remove it, and test it again this evening.
Thanks, Mark

Post Reply