The time now is Sat 25 May 2013, 18:43
All times are UTC - 4 |
| Author |
Message |
klhrevolutionist

Joined: 08 Jun 2005 Posts: 1124
|
Posted: Sat 04 Feb 2006, 18:23 Post subject:
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.
_________________ Heaven is on the way, until then let's get the truth out!
|
|
Back to top
|
|
 |
costal martignier
Joined: 28 Jan 2006 Posts: 197
|
Posted: Sat 04 Feb 2006, 18:33 Post subject:
Re: questions |
|
| Quote: | | 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...
| Quote: | 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)
| Quote: | 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... ???????????????
| Quote: | | As for the package I give it a ten out of ten. |
yepaa, thx
| Quote: | | 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
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Sat 04 Feb 2006, 19:29 Post subject:
|
|
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.
_________________ 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

|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sat 04 Feb 2006, 19:43 Post subject:
|
|
You can create a folder /root/www/files
Save this "index.php" there:
| Code: | <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
|
|
Back to top
|
|
 |
costal martignier
Joined: 28 Jan 2006 Posts: 197
|
Posted: Sat 04 Feb 2006, 20:05 Post subject:
|
|
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
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Sun 05 Feb 2006, 02:09 Post subject:
|
|
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
_________________ 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

|
|
Back to top
|
|
 |
costal martignier
Joined: 28 Jan 2006 Posts: 197
|
Posted: Sun 05 Feb 2006, 05:09 Post subject:
|
|
| 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
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 06 Feb 2006, 00:44 Post subject:
|
|
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: |
# 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: |
# /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
|
|
Back to top
|
|
 |
costal martignier
Joined: 28 Jan 2006 Posts: 197
|
Posted: Mon 06 Feb 2006, 03:36 Post subject:
|
|
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
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 06 Feb 2006, 04:09 Post subject:
|
|
ok, I just installed 0.3 over 0.1 without uninstalling first.
I will remove it, and test it again this evening.
Thanks, Mark
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Mon 06 Feb 2006, 04:33 Post subject:
|
|
Now I removed all old files.
Then installed 0.3.
MySQL works now.
But the other problem remains.
At reboot, loop7 can not be unmounted, what leads to a filesysemcheck of pup001 at next boot.
Does no one else experience this?
Mark
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Mon 06 Feb 2006, 18:33 Post subject:
|
|
I've been out of the room while Puppy booted the last couple times. I'll come back the next time I reboot.
_________________ 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

|
|
Back to top
|
|
 |
costal martignier
Joined: 28 Jan 2006 Posts: 197
|
Posted: Mon 06 Feb 2006, 18:51 Post subject:
|
|
no need to check it, i've allready fixed this bug by creating a shutdown script. but a bug in the sysinit script from puppy prevents me from releasing it.
attention, now it gets complicated
a bug in the bugfix for the bug in the puppy initscripts from G2 prevents me to prevent the bug in my package ?!?!?! loooooooool
(ok it's not a bug, but a really bad workarround (the fix from G2))
so no release with the bugfix from my site until G2 takes his bugfix back or he creates a new one that fixes the problem correctly, or creates a workarround that really works...
i don't want to harm others computer with my programming...
but many thx for your intersest and for your help...
regards
costal
|
|
Back to top
|
|
 |
costal martignier
Joined: 28 Jan 2006 Posts: 197
|
Posted: Fri 10 Feb 2006, 16:27 Post subject:
|
|
new version 0.4 released
http://www.murga.org/~puppy/viewtopic.php?p=35443#35443
the last version before the first final version...
the shutdown problems should now be fixed..
please test this and report if the bug is fixed..
have fun
costal
|
|
Back to top
|
|
 |
paullecorde

Joined: 17 Jun 2005 Posts: 62 Location: Lexington, KY USA
|
Posted: Sun 12 Feb 2006, 07:02 Post subject:
|
|
First, thank you for making this web environment for Puppy. It is great. Let's me start by saying that I haven't been working with mysql or php very long. Please forgive me if my questions sound stupid.
The dot.pup installed correctly. I was able to access myadmin and everything looks good, but I have a message saying I need to add a password to mysql. Can you tell me how to do this? I found the database called mysql and the table called users. I added passwords for root and puppypc there, but that didn't seem to make any difference. Can you tell me where to go to add the password and once the password is added, where else will I need to put it (config for myadmin?).
The reason I am looking at the web environment is I want to use a program called phProjekt to do project management. In order to use this program (it's made of php scripts and possible a java script or two), where do I need to put it? Is there a directory for the web server somewhere? I have tried opening the index file of phprojekt and what I see is script... does this web server run php script? Is there something special I need to do to make it run the php instead of showing the script?
I appreciate any answers you can give me for these questions. As I said, I'm a newbie to mysql and php and also to running a local web server. I know how to write html and upload it to someone else's server but I don't know where it should go for a local server.
Thanks again.
Paul
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|