webenvironment 0.4 (webserver,php,mysql,phpmyadmin)
-
- Posts: 198
- Joined: Sat 28 Jan 2006, 15:55
-
- Posts: 198
- Joined: Sat 28 Jan 2006, 15:55
sfs file
Tested on Puppy standard 1.07 (installed to hard disk) without problems
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.)
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.)
-
- Posts: 198
- Joined: Sat 28 Jan 2006, 15:55
Re: sfs file
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
reluctant
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.
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.
-
- Posts: 198
- Joined: Sat 28 Jan 2006, 15:55
Re: reluctant
download my package, click on it, finished...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.
putt what he need in /root/www/ , point the browser to http://localhost/ , finishedklhkentucky 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 ?
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....
happy to hear that ,many thxklhkentucky wrote:Good seeing a new face on the forum. Glad you have taken such an interest in puppy costal.
Thanks.
regards
costal
-
- Posts: 198
- Joined: Sat 28 Jan 2006, 15:55
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
- 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
- klhrevolutionist
- Posts: 1121
- Joined: Wed 08 Jun 2005, 10:09
questions
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.
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!
-
- Posts: 198
- Joined: Sat 28 Jan 2006, 15:55
Re: questions
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...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.
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)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.
sorry, my poor english, i absolutley dont undersatnd what you mean? what for checkmarks? where you see that... ???????????????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?
yepaa, thxAs for the package I give it a ten out of ten.
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...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.
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
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
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.
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]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
You can create a folder /root/www/files
Save this "index.php" there:
Now when someone visits http://123.123.123.123/files, he will see such a list displaying all files:
http://dotpups.de/miniicons/
Mark
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>
http://dotpups.de/miniicons/
Mark
-
- Posts: 198
- Joined: Sat 28 Jan 2006, 15:55
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
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
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
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
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
[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]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
-
- Posts: 198
- Joined: Sat 28 Jan 2006, 15:55
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:
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:
So there isa prob with /var for mysql.
Greets, Mark
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
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
Greets, Mark
-
- Posts: 198
- Joined: Sat 28 Jan 2006, 15:55
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
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