Page 1 of 2

Monkey webserver

Posted: Tue 31 Aug 2010, 23:04
by puppymartin
Monkey webserver 0.9.3.1

Very small with support for PERL-scripts (in /cgi-bin) + PHP (see second post) + MySQL (see third post)

I also made a starter/stopper (Menu -> Network):

Image

Put your files in:
/root/monkey_webserver/www

Log files
/root/monkey_webserver/log

cgi-bin
/root/monkey_webserver/cgi-bin
(test: http://localhost/cgi-bin/test.pl)

More about Monkey:
http://www.monkey-project.com/

Posted: Tue 31 Aug 2010, 23:34
by puppymartin
PHP

Install php-4.3.7.pet

Change the Monkey config (/etc/monkey/monkey.conf):
Add this after "AddScript", line 123

Code: Select all

AddScript application/x-httpd-php /opt/php/bin/php php
AddScript application/x-httpd-php /opt/php/bin/php php3
Stop and start the server and go to the php-test:
http://localhost/php/index.php

Posted: Thu 02 Sep 2010, 08:47
by puppymartin
MYSQL and PHPMYADMIN clone

Add Mysql:
http://www.browserlinux.com/software/mysql-3.23.49.pet (6 Mb)

This pet also contains a small PhpMyAdmin clone to edit or view database tables:
http://localhost/php/adminer.php (Only Firefox or Chrome, not Netsurf)
http://www.adminer.org/

And a new starter:

Image

Install all the pets (Monkey, PHP and MySQL) and you have a very light LAMP-server.
The versions are not very "new" but I use it for testing my sites.


Posted: Thu 02 Sep 2010, 12:43
by sc0ttman
Awesome stuff.. Can't wait to test it, maybe ideal for a custom, tiny ISO which is used soley for web dev (for bloggers and so on)...

Posted: Fri 03 Sep 2010, 12:32
by puppymartin
sc0ttman wrote:Awesome stuff.. Can't wait to test it, maybe ideal for a custom, tiny ISO which is used soley for web dev (for bloggers and so on)...
New: Mini LAMP puplet - ISO 39 Mb
http://murga-linux.com/puppy/viewtopic.php?p=447696 :D

Posted: Fri 03 Sep 2010, 13:14
by sc0ttman
puppymartin wrote:
sc0ttman wrote:Awesome stuff.. Can't wait to test it, maybe ideal for a custom, tiny ISO which is used soley for web dev (for bloggers and so on)...
New: Mini LAMP puplet - ISO 39 Mb
http://murga-linux.com/puppy/viewtopic.php?p=447696 :D
haha.. yeah, something like that would be nice... :oops:

Posted: Fri 03 Sep 2010, 13:21
by vovchik
Dear sc0ttman,

Just for consistency's sake with user themes, I would change all icon= to stock= in the gtkdialog scripts. Doesn't cost anything and makes the apps look like they belong to the system under which they are running. I would do that as a RULE. And I like your apps - so, thanks.

With kind regards,
vovchik

Posted: Fri 03 Sep 2010, 14:06
by sc0ttman
vovchik wrote:Dear sc0ttman,

Just for consistency's sake with user themes, I would change all icon= to stock= in the gtkdialog scripts.
Errrrrrr..... I didn't make this one!! Are you referring to something else I made?
If so, wanna post it there? (sorry puppymartin for the hijack - great work, once again!)

Posted: Fri 03 Sep 2010, 14:34
by vovchik
Dear sc0ttman,

It may be the wrong thread, but I think I had Advert-Blocker in mind. Sorry...

With kind regards,
vovchik

Posted: Mon 06 Sep 2010, 23:00
by paulhomebus
Hi puppymartin,

I'm having problems getting mysql adminer working...

What is the standard login outta the box for this?
(- I assumed it was --- Server: puppypc ---- Login: nobody---- password: woof)
But that doesn't work.

I aslo can't see mysql started - where is the mysql.sock file, do have to run mysql_install_db - can I create it manually?

# ps au | grep mysql
root 3810 0.0 0.1 2064 700 pts/1 S+ 10:59 0:00 grep mysql

Confused noob,
Paul

Posted: Mon 06 Sep 2010, 23:05
by puppymartin
paulhomebus wrote:What is the standard login outta the box for this?
(- I assumed it was --- Server: puppypc ---- Login: nobody---- password: woof)
user: "root"
password: ""

Check the "Help" for mysql after first boot.
When it runs, mysql.sock is in /tmp.

Succes.

Posted: Tue 07 Sep 2010, 00:47
by paulhomebus
My setup is just not working...

mysql --help gives me...

auto-rehash FALSE
character-sets-dir (No default value)
column-type-info FALSE
comments FALSE
compress FALSE
debug-check FALSE
debug-info FALSE
database (No default value)
default-character-set latin1
delimiter ;
vertical FALSE
force FALSE
named-commands FALSE
local-infile FALSE
no-beep FALSE
host (No default value)
html FALSE
xml FALSE
line-numbers TRUE
unbuffered FALSE
column-names TRUE
sigint-ignore FALSE
port 3306
prompt mysql>
quick FALSE
raw FALSE
reconnect TRUE
socket /var/run/mysqld/mysqld.sock
table FALSE
user (No default value)
safe-updates FALSE
i-am-a-dummy FALSE
connect_timeout 0
max_allowed_packet 16777216
net_buffer_length 16384
select_limit 1000
max_join_size 1000000
secure-auth FALSE
show-warnings FALSE

The socket is definitely not defined as /tmp/mysql.sock

Still confused.
Still not working.

Tho I have tried to...
1. copy table from working 421 monkey server setup to Lupu...
2. chown -R /var/lib/mysql nobody + chgrp -R /var/lib/mysql nobody
3. copy puppypc.err to /var/lib/mysql
4. move /usr/local/lib/mysql to /usr/lib

error message I am now getting is...

Code: Select all

/usr/local/libexec/mysqld: Table 'mysql.plugin' doesn't exist
100907 12:35:03 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100907 12:35:03  InnoDB: Started; log sequence number 0 46409
100907 12:35:03 [ERROR] /usr/local/libexec/mysqld: unknown option '--skip-bdb'
100907 12:35:03 [ERROR] Aborting

100907 12:35:03  InnoDB: Starting shutdown...
100907 12:35:04  InnoDB: Shutdown completed; log sequence number 0 46409
100907 12:35:04 [Note] /usr/local/libexec/mysqld: Shutdown complete

100907 12:35:04 mysqld_safe mysqld from pid file /usr/local/var/mysql.pid ended
Sorry for the hassle, but I really, really would like to get this working on Lucid 5.1.

EDIT: I am stuck on the error: /usr/local/libexec/mysqld: unknown option '--skip-bdb' (EVEN tho I have skip-db turned off in my.cnf, I don't understand why this is so difficult!)

Posted: Tue 07 Sep 2010, 02:37
by paulhomebus
Think I have found what was my problem....

I had a /etc/mysql/my.cnf
& mysql default to this one first before using /etc/my.cnf

I complete removed /etc/mysql
and the --skip-bdb error has gone.

Thanks Paul

Monkey web server

Posted: Mon 13 Sep 2010, 09:08
by chrisadam23
Monkey HTTP Daemon is a very fast and lightweight Web server just for Linux written in the C programming language,and is licensed as free software under the GNU General Public License.
This is an open source project based on HTTP/1.1. The objective is to develop a fast, efficient, small and easy to configure web server.

Posted: Tue 14 Sep 2010, 21:25
by hailpuppy
paulhomebus wrote:
What is the standard login outta the box for this?
(- I assumed it was --- Server: puppypc ---- Login: nobody---- password: woof)

user: "root"
password: ""
This is not clear. Got PHP to work but not this.
Please tell the following
Server:
user:
password:

Posted: Mon 04 Oct 2010, 22:34
by paulhomebus
I gave up trying to get it to work, and installed XAMPP instead...

http://murga-linux.com/puppy/viewtopic.php?t=59846

Posted: Wed 20 Oct 2010, 09:35
by EZ4arabs
Description Made in LuPu 5.1 - works in most versions (I think)
Too bad it wouldn't work in older puppy versions
Regarding to the software required to run Monkey successfully, you will need a Linux environment with Kernel version 2.6.29 (at least)....
does anyone know of a webserver (that supports php )that works on 2.6.18.1?
Thank you.

Posted: Thu 02 Dec 2010, 20:53
by shopno11
What is the standard login outta the box for this?
(- I assumed it was --- Server: puppypc ---- Login: nobody---- password: woof)
But that doesn't work.

mysql password

Posted: Thu 20 Jan 2011, 11:38
by laredmemata
I had the same trouble. My monkey and php works properly, but i was no able to connect with mysql.
So I eliminate the old password and put another one.
The whole thing comes from this page: http://www.debian-administration.org/articles/442

The mysqld_safe is in /usr/local/bin/mysqld_safe, and so do mysql.
The password must be written within the "'".
Now I have a light lampp.
say I will put woof as password for root.
stop your mysql. I do this from menu->netword->monkey webserver
open a console. menu->utility->urxvt terminal emulator
write in it:
/usr/local/bin/mysqld_safe --skip-grant-tables &
this put a background process, i think.
then write:
mysql --user=root mysql
this calls mysql for the user root in the database mysql, where are the passwords.
now write:
update user set Password=PASSWORD('woof') WHERE User='root';
this overwrite the password for root, and makes it woof.
now write :
exit
it is done. Now you have a root user with woof as password.... but inaccesible for php. (it works from console, not from the server).

Perhaps a lampp from apachefriends is a ugly but straight solution. I continue tryng.

-as you can see, I'm not english native speaker. Sorry.

Posted: Tue 01 Feb 2011, 13:28
by mama21mama
gracias;

tips:

create BD: world

Code: Select all

mysqladmin create word

import bd

Code: Select all

mysql world < my_backup_tables.sql
backup all BD:

Code: Select all

tar cvpzf ~/all_BD-$(date +%d-%m-%y).sql.tgz /usr/local/var/*
drop BD

Code: Select all

mysqladmin -u root -p drop name_BD 
Seguridad

ES: crear un nuevo usuario con todos los privilegios
EN: create a new user with all privileges

ES: luego
EN: then

Code: Select all

#mysqladmin password newpass
ES: para mayor seguridad
EN: for safety


Mirror lamp