Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 28 Nov 2014, 16:53
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
webenvironment 0.4 (webserver,php,mysql,phpmyadmin)
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 7 [92 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
Owl


Joined: 24 Dec 2005
Posts: 64
Location: Kirchroa, the Netherlands

PostPosted: Tue 21 Feb 2006, 16:17    Post subject:  

Hi,

uninstall went fine, install went fine, then the error message that I earlier posted didn't come up again, so far so good.

However, I rebooted and again mysql made the computer hang.
And the ps doesn't show mysql,
and the install utility mentions again it cannot find mysql server.

So I am kind of stuck here,
regards,
Owl.

_________________
________________________
Soooooooo happy with Puppy !
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Tue 21 Feb 2006, 16:20    Post subject:  

clicked on webenv0.5,and "uninstall".
This told me it might take some second,and another message.
After 1 minute nothing else came.
So I started it again,and chose "install".

After installation reboot,because all applications freeze.
Still no /usr/local/libexec/mysqld

So I copy it over from /.webenv/local/libexec and reboot.
Voila- mysql runs.
I think a symlink should be sufficient to save space:
ln -s /.webenv/local/libexec/mysqld /usr/local/libexec/mysqld

But not tested - go to bed now.

Will look closer tomorrow Smile.

Mark
Back to top
View user's profile Send private message Visit poster's website 
costal martignier

Joined: 28 Jan 2006
Posts: 197

PostPosted: Tue 21 Feb 2006, 16:23    Post subject:  

the uninstall should work, if not you must remove all files manually, i create a list tommorow...

the freezing is caused because of the unionfs...
i dont get it why this is so...

perhaps i give up my webenv project...
to heavy for my small knowledge...

but lets see tomorrow...

cu
Back to top
View user's profile Send private message 
costal martignier

Joined: 28 Jan 2006
Posts: 197

PostPosted: Tue 21 Feb 2006, 16:25    Post subject:  

it's really strange that i can't reproduce your erros..

'm using a fresh puppy live cd and a fresh puppy install (both 1.0.7)

everything is fine....

so perhaps weben will never reach productive state, because of my lacking knwoledge about unionfs problems

costal
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Tue 21 Feb 2006, 16:28    Post subject:  

No, don't give up Smile
As I said, 0.4 worked ok for me (PHP).
And mysql can be solved with a simple symlink on my KDE-Puppy.

So that is ok, isn't it?
To fix this would be "a nice to have", but already now you can use it.
Much better than installing 80 MB of Xampp...

Good night, Mark
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Tue 21 Feb 2006, 16:32    Post subject:  

It might be a bug in unionfs, that the applications freeze after installation of Webenv. But after reboot, it is ok.
KDE-Puppy often does not unmount /loop1 at reboot,so there seems to be something not correct with KDE-Puppy.
Keep in mind,that KDE-Puppy is a non-optimized Alphaversion.

If Puppy107 works correct, it is just great!
Back to top
View user's profile Send private message Visit poster's website 
Owl


Joined: 24 Dec 2005
Posts: 64
Location: Kirchroa, the Netherlands

PostPosted: Tue 21 Feb 2006, 17:03    Post subject:  

Hi,

I can also claim success (at least partially) after following MU's advice:
the ln -s option didn't work, but manually copying the file to the designated folder does.

my ps output now:
ps
PID Uid VmSize Stat Command
1 root 560 S init
2 root SW [keventd]
3 root SWN [ksoftirqd_CPU0]
4 root SW [kswapd]
5 root SW [bdflush]
6 root SW [kupdated]
7 root SW< [mdrecoveryd]
133 root SW [khubd]
173 root 572 S syslogd -m 0
180 root 568 S klogd
329 root SW [loop1]
414 root SW [loop0]
427 root SW [loop3]
435 root SW [loop4]
1014 root 1772 S /usr/sbin/cupsd
1053 root SW [loop7]
1081 root 608 S /bin/sh /usr/local/bin/mysqld_safe --user=root
1104 root 668 S /bin/sh /usr/X11R6/bin/xwin
1105 root 452 S /sbin/getty 38400 tty2
1118 root 1072 S /usr/local/bin/lighttpd -f /etc/lighttpd.conf
1119 root 2060 S /usr/local/bin/php
1163 root 2060 S /usr/local/bin/php
1170 root 2060 S /usr/local/bin/php
1180 root 2060 S /usr/local/bin/php
1190 root 4500 S /usr/local/libexec/mysqld --basedir=/usr/local --data
1239 root 4300 S /usr/local/bin/php
1240 root 2064 S /usr/local/bin/php
1241 root 2064 S /usr/local/bin/php
1244 root 2064 S /usr/local/bin/php
1267 root 620 S /usr/X11R6/bin/xinit /root/.xinitrc --
1268 root 9116 S < X :0
1270 root 4500 S /usr/local/libexec/mysqld --basedir=/usr/local --data
1271 root 4500 S /usr/local/libexec/mysqld --basedir=/usr/local --data
1274 root 4432 S icewm
1289 root 1420 S /usr/bin/autocutsel
1336 root 4592 S /usr/local/apps/ROX-Filer/Linux-ix86/ROX-Filer -o -p
1347 root 1264 S rxvt -sl 999
1348 root 1636 S bash
1406 root 728 R ps


As far as I know process 1081 means mysql is up and running !

Now I have to figure out why the configuration file doesn't connect to mysql yet -- but that appears to be something for tomorrow.

DON'T STOP with this marvellous project ! My puppy is becoming a wet dream -- OOo2, R, LLMP server, WOW.

More tomorrow,
Regards and thanks much for all the effort you put in it !!!

Owl.

_________________
________________________
Soooooooo happy with Puppy !
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4796
Location: Manila

PostPosted: Tue 21 Feb 2006, 19:22    Post subject: More users for a frugal install  

Hey, Costal, if ever someone will really deploy webenv, most likely the client tools like OO2 and KDE will not be needed (by the server PC), so why worry, really? Smile

About unionfs, am reminded by the Xampp technique of putting all files in one folder. Will this produce a very large folder? If not, then perhaps we can avoid the unionfs problem by using uncompressed files? Embarassed
Back to top
View user's profile Send private message 
costal martignier

Joined: 28 Jan 2006
Posts: 197

PostPosted: Wed 22 Feb 2006, 03:00    Post subject:  

@raffy,

i also thinked aubout this yesterday, and i think i will go this way...


regards
costal
Back to top
View user's profile Send private message 
Owl


Joined: 24 Dec 2005
Posts: 64
Location: Kirchroa, the Netherlands

PostPosted: Wed 22 Feb 2006, 05:40    Post subject:  

Hi,

just to let you know that I can now also contact mysql server, everything is up and running now.

(just installed PhPWebsite, seems to run OK now).

Thanks much,
Owl.

_________________
________________________
Soooooooo happy with Puppy !
Back to top
View user's profile Send private message 
Owl


Joined: 24 Dec 2005
Posts: 64
Location: Kirchroa, the Netherlands

PostPosted: Fri 24 Feb 2006, 15:23    Post subject:  

Hi Costal,

2 questions;

1. regarding the plans with empty crust and webserver: would it be a disadvantage to have puppy running as root ?

2. I have my server up and running now, I have a php and mysql enabled site, but now I am wondering what it takes to have it publicly accessible. I have read through 2 Linux webservers books, and did some googling but this is a bit more difficult to understand for me.

THanks much,
Owl.

PS: would you like it if I help you with a bit of polishing up on your webserver startpage (version number, English etc) as a return of all the work you put in this project ?

_________________
________________________
Soooooooo happy with Puppy !
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Fri 24 Feb 2006, 15:38    Post subject:  

this may help you, owl:
http://www.murga.org/~puppy/viewtopic.php?t=3482
Mark
Back to top
View user's profile Send private message Visit poster's website 
costal martignier

Joined: 28 Jan 2006
Posts: 197

PostPosted: Fri 24 Feb 2006, 15:55    Post subject:  

Owl wrote:

1. regarding the plans with empty crust and webserver: would it be a disadvantage to have puppy running as root ?


no no noooooooooo, running a webserver as root is a no go...
you can see a few post before this what i did with mu's little website? this was not real hacking, this was jost guessing the simplest method to "hack" a server.. php is not really secure, no webserver is really secure, no (most) coder is coding secure, there are tons of points where an attacker or just a tired scriptkiddy can attack your little webserver/website....

if the attacker finds a hole, he has root access, because all application running as root in puppy... imagine a
Code:
rm -rf /
from an attacker on your website...

see the messages from the last days, about a linux virus? not really a virus (or it is!?!?!?) but something simmilar that uses bugs in well known phpwebapplications...

so, never make your puppy with a webserver available to the internet.

IMHO

Owl wrote:
2. I have my server up and running now, I have a php and mysql enabled site, but now I am wondering what it takes to have it publicly accessible. I have read through 2 Linux webservers books, and did some googling but this is a bit more difficult to understand for me.


same answer to this as to the first question...


Owl wrote:

PS: would you like it if I help you with a bit of polishing up on your webserver startpage (version number, English etc) as a return of all the work you put in this project ?


please go ahead, you can do with it what you want...

regards
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Fri 24 Feb 2006, 22:58    Post subject:  

Quote:
would it be a disadvantage to have puppy running as root ?

Xampp requires that it starts running as root ... the Apache web server automatically runs as user "nobody", not root ... if anyone gets in through Apache, he should have the privileges of user "nobody", and should not be able to su to root ... try typing su nobody then type su root

costal's web server may work the same way
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Fri 24 Feb 2006, 23:49    Post subject:  

edit /etc/lighttpd.conf

Code:

## change uid to <uid> (default: don't care)
#server.username            = "wwwrun"
server.username            = "spot"

## change uid to <uid> (default: don't care)
#server.groupname           = "wwwrun"
server.groupname           = "spot"


then run
# killall lighttpd
# lighttpd -f /etc/lighttpd.conf &

This will give some errors, forexample that PHP cannot be executed, so
chmod 755 /usr/local/bin/php

And set the needed rights to /root/www
Mark
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 5 of 7 [92 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

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
[ Time: 0.0866s ][ Queries: 12 (0.0062s) ][ GZIP on ]