Monkey webserver

Browsers, email, chat, etc.
Message
Author
User avatar
puppymartin
Posts: 207
Joined: Sun 29 Mar 2009, 18:59
Location: The Netherlands
Contact:

Monkey webserver

#1 Post 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/
Attachments
monkey-0.9.3.1.pet
Made in LuPu 5.1 - works in most versions (I think)
(57.29 KiB) Downloaded 1446 times
Last edited by puppymartin on Thu 02 Sep 2010, 08:50, edited 3 times in total.

User avatar
puppymartin
Posts: 207
Joined: Sun 29 Mar 2009, 18:59
Location: The Netherlands
Contact:

#2 Post 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

User avatar
puppymartin
Posts: 207
Joined: Sun 29 Mar 2009, 18:59
Location: The Netherlands
Contact:

#3 Post 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.


User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#4 Post 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)...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
puppymartin
Posts: 207
Joined: Sun 29 Mar 2009, 18:59
Location: The Netherlands
Contact:

#5 Post 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

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#6 Post 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:
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#7 Post 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

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#8 Post 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!)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#9 Post by vovchik »

Dear sc0ttman,

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

With kind regards,
vovchik

User avatar
paulhomebus
Posts: 120
Joined: Thu 21 Jan 2010, 23:23
Location: New Zealand
Contact:

#10 Post 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

User avatar
puppymartin
Posts: 207
Joined: Sun 29 Mar 2009, 18:59
Location: The Netherlands
Contact:

#11 Post 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.

User avatar
paulhomebus
Posts: 120
Joined: Thu 21 Jan 2010, 23:23
Location: New Zealand
Contact:

#12 Post 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!)

User avatar
paulhomebus
Posts: 120
Joined: Thu 21 Jan 2010, 23:23
Location: New Zealand
Contact:

#13 Post 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

chrisadam23

Monkey web server

#14 Post 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.

hailpuppy
Posts: 73
Joined: Wed 28 Oct 2009, 07:49

#15 Post 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:

User avatar
paulhomebus
Posts: 120
Joined: Thu 21 Jan 2010, 23:23
Location: New Zealand
Contact:

#16 Post by paulhomebus »

I gave up trying to get it to work, and installed XAMPP instead...

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

EZ4arabs
Posts: 82
Joined: Wed 19 Jul 2006, 09:18

#17 Post 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.

shopno11

#18 Post 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.

laredmemata
Posts: 4
Joined: Thu 20 Jan 2011, 11:16

mysql password

#19 Post 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.

mama21mama

#20 Post 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
Last edited by mama21mama on Wed 02 Feb 2011, 05:59, edited 4 times in total.

Post Reply