Webserverpuppy LAMP and XAMPP

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

Re: WebserverPuppy

#31 Post by prit1 »

efiguy wrote:Hiawatha is a very complex webserver
I feel that Hiawatha is much simpler to setup than several other servers out there. :)
efiguy wrote:..update to 6.16 as it has an attack recognition capability.
Can you explain what this "attack recognition" capability is?

Puppymartin (who develops this puplet) or Growler (who creates the Hiawatha pet package) might package the latest version of Hiawatha sometime soon.
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

User avatar
efiguy
Posts: 164
Joined: Thu 07 Sep 2006, 02:51

WebserverPuppy

#32 Post by efiguy »

Hello,

To try and answer your question, it is just my perception, but XP is modified in SP2-3 with TCP/IP modifications in timeouts, open numbers and damaged packet requests and some other reg issues that (to the uninited) seem to have a commonality of security implication with Hiawatha ideals. The * items might be fairly new to reg, don't really know.

What I presume as modified values in XP reg in an attempt to deal with TCP/IP stack attacks (List is incomplete) --
"UseDomainNameDevolution"=dword:00000001
* "EnableICMPRedirect"=dword:00000000
* "DeadGWDetectDefault"=dword:00000000
"DontAddDefaultGatewayDefault"=dword:00000000
"EnableSecurityFilters"=dword:00000000
"EnableDeadGWDetect "=dword:00000000
* "SynAttackProtect"=dword:00000002
* "TCPMaxHalfOpen"=dword:000001f4
* "TCPMaxHalfOpenRetired"=dword:00000190
* "TCPMaxPortsExhausted"=dword:00000005
* "TCPMaxDataRetransmissions"=dword:00000003
* "EnablePMTUDiscovery"=dword:00000000
"DisableIPsourceRouting"=dword:00000002
"NoNameReleaseOnDemand"=dword:00000001
"PerformRouterDiscovery"=dword:00000000

Also, notice in quote about client banning, plus some change log lists,
SocketSendTimeout option added, Prevention of cross-site request forgery.., CGI zombies, lead me to believe that security issues are being tided up.

Quotes from Hiawatha News --

"Yesterday, an interesting HTTP DoS tool has been released. The tool performs a Denial of Service attack on Apache (and some other) servers by exhausting available connections. While there are a lot of DoS tools available today, this one is particularly interesting because it holds the connection open while sending incomplete HTTP requests to the server." [sans.org]

- Slowloris HTTP DoS

I know for a long time that this vulnerability is present in Apache. It surprises me that nobody has implemented an exploit sooner. Another thing in Apache that bothers me: the runtime of a CGI. A CGI process can run forever under Apache. A single CGI script can DoS a webserver. A system administrator is needed to kill the script. And what about a client that keeps on guessing passwords for HTTP authentication?

These kind of Apache issues inspired me to create Hiawatha, with settings for maximum request sending time, maximum CGI run time, client banning, etc. Features that, in my opinion, every daemon should have.
-- End Quote

Hope you may concur,

Thanks

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#33 Post by prit1 »

Hi efiguy,

All I knew from the Hiawatha changelog is that Hugo has introduced bug fixes in the last couple of releases after 6.14. I have installed and used Hiawatha 6.16 on Ubuntu and CentOS. If you wait a little you would definitely find 6.16 available for Puppy as a pet package.
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

User avatar
efiguy
Posts: 164
Joined: Thu 07 Sep 2006, 02:51

WebserverPuppy

#34 Post by efiguy »

Hello Prit1,
Just to note, Hiawatha may be simple for some, but to a newbie it appears to have lots of adustments and thats not a bad thing, if defaults are well thought out, which I believe from reading the manual pages and FAQ Forum, that it will work perfect for me, especially after viewing your sample config.

And Oh So Cool about 6.16, I'm going ahead with present ISO package as a learning exercise, Thank you for your insight and answers.

efiguy

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#35 Post by prit1 »

Feel free to post anything that comes up during your setup, we will try our best to help.
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#36 Post by prit1 »

Hi efiguy,

You can get the LAMP package with the latest version of Hiawatha (6.16) from here:
http://www.murga-linux.com/puppy/viewto ... 650#332650
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

User avatar
efiguy
Posts: 164
Joined: Thu 07 Sep 2006, 02:51

WebserverPuppy

#37 Post by efiguy »

Hi all,

Reference topics and previous posts involved:
1) http://www.murga-linux.com/puppy/viewto ... 3&start=30
2) http://www.murga-linux.com/puppy/viewto ... &start=150

Having a few problems:
a) getting the webserver control panel in place
b) Can't seem to get a system to boot from hard drive
c) Why does one puplet use " hda " and another " sda " for harddrive nomenclature?

Couldn't get Webserver (pup421k262516) Puppy to load to hard drive so investigated another puplet (LighthousePup-442-d.iso) to see if it would, and it didn't, but it sure was neat, I watched some Nasa ch2 TV on a streaming video, and it has dozens of packages all in the menu.
So thought, hmm! Load Hiawatha 6.16 into LightHouse and just boot with CD and run from HD disk. Picked up (Prit1's) Hiawatha pet and it loaded fine -- except one disclaimer message indicating " no menu available ".

Sure enough - refreshing menu and restarting JVM didn't help. --- Then the bulb lit, to start WebserverPuppy and transfer the menu control panel.

Long story short there are now 2 SFS + the saves on harddrv and both have updated each other and both have Hiawatha 6.16 and no control panel on either for 6.16.
I should be discouraged, but I'm not, you can't believe how resilient these puppy packages are to all this double file mixing, as they still open and packages continue working.

Yelpp!!!
But I really need some help to determine why the universal installers won't load to harddrive and why Hiawatha 6.16 doesn't show a Lamp control panel (Please view "HowTo" post)

Haven't any problem reformating the first partition -- one more time :)

Yelp yelp !!

Thanks for any suggestions

User avatar
efiguy
Posts: 164
Joined: Thu 07 Sep 2006, 02:51

Webserverpuppy

#38 Post by efiguy »

Hello Group,

I must (sheepishly) apoligize for my previous questions about menu's and Hiawatha 6.16, it seems, that while going through the config file --- the word Apache is everywhere, and I thought I had Hiawathia. After doing some back tracking with "browser now set to load images" for PuppyMartin post -- seems I mislabeled the disk or selected the wrong file -- got to solve the early AM insomnia another way!

-- 08-24-09 The Success --

Webpuppy server (Apache) partition sda1 -- Boot Success from drive

(webserverpuppyX1.iso) Puppy 97M

Webpuppy server (Hiawathia) partition sda4 -- Boot Success from drive

(webserverpuppy1.iso) Puppy 76M



- What transpired: (one Linux Newbie to others ;)
08-22-09

Booted = Ram only: (fat-free-3.01-xorg.iso) My download date 01-10-09

Gpartition 1st partition Format ext2 Boot

Try Uni Instl - failed - reboot Grub Error 15

* Used Ontrack Disk Manager - zero write total drive * Key To Solving _ Not Sure Why!

Boot CD V 301 as " puppy pfix=ram " ram only

Gpartition -- make " New " (GP decides to make Disc label MSDOS This is OK!) 1.25 G

ext2 and 512 M swapfile for main and swapfile -- made 5G of remaining drive a Fat32 partition Later will add fdisk logical drives Reboot

Boot CD 301 as " puppy pfix=ram " ram only

Ran Universal Installer

Followed screens -- Note that message text asks to add GRUB to MBR and this is quite late in install screens Don't miss small final screen as option is mostly hidden in 1024 xorg mode,

I Opted out of Floppy GRUB at this point

Don't save on Shutdown - reboot with CD empty

BOOT load top selection of GRUB blue screen

SUCCESS Boot HD with "fat-free-3.01-xorg.iso"

With V 301 operational - Boot WebserverPuppy (webserverpuppyX1.iso) " puppy pfix=ram " Ram Only

Start Universal Installer and install to sda1 -- It eventually asks to update or WIPE _ _ It will update but the GRUB install is different and for me it would not boot after the GRUB update

Ran install once more conditions - as above --

Choose to WIPE -- The GRUB install can become very circucular, a real point of another failure, especially as little distinction is given between Hard drive and Floppy install menu reset _ _ _ Just a novices opinion --

GRUB, with the correct menu choices will complete and the drive will boot
-- Boot Success from drive (webserverpuppyX1.iso) Puppy
(You don't want to know how many times it took me;)

Found my version problem as detailed above - Duh!!

Booted Ram only: "fat-free-3.01-xorg.iso"

Gpartition -- Resized 1st partion to 512M, from the new un-allocated area - created a partition labeled - sda4 Format ext2 roughly 509M Shutdown - Don't Save

* Boot the Hiawatha WebserverPuppy (webserverpuppy1.iso) Puppy 76M " puppy pfix=ram " Ram Only
( ! Note: I had problems with 2 different browsers downloading this file -- Would start fast and then fail, my solution was to Start manager download, but leave the save button unclicked, - the file now downloads slowly in the background - watch the disk light - when activity stops - Then Click the Save Button )

Start Universal Installer and install to sda4 --

You may try for a GRUB update at this point, however be prepared for a failure - I elected for a manual cut and paste with the 1st partition boot file.

GRUB
Modified 1st partition Boot menu config -- copy first menu display items lines and paste as next menu - changing sda1 to sda4 . (my drive setup - yours most likely will differ)

Thanks for all the ideas and help

User avatar
efiguy
Posts: 164
Joined: Thu 07 Sep 2006, 02:51

webserverpuppy

#39 Post by efiguy »

Hi Group,

Have tested Apache from htdocs with success
Now moving to source files from a Fat32 partition and am having problems with path configuration.

Does one have to use the Document root
Alias /webpath /mnt/sda2/web_7/files
at this point???

One of the items I noticed is puppy must be rebooted if I make a mistake in document path, even resorting to the previous good path will not work until reboot.

Since moving files to Fat partition it will never recognize that fat configuration -- for Pmount must be run after boot.

I cannot find any control or save mode to mount the Fat partition on Grub bootup

I've also asked for some file tools in beginers forum, and have read
http://www.troubleshooters.com/linux/gr ... alled_grub

Also has anyone experience with this windows driver?
http://www.fs-driver.org/

Forum
http://www.murga-linux.com/puppy/viewto ... 15&t=45885

Open for suggestions

Thanks to all

User avatar
Brdog
Posts: 3
Joined: Thu 27 Aug 2009, 01:03

webserverpuppy

#40 Post by Brdog »

Hello all
Nubie sinking, needs life preservr help, Plese

trying this too, error message flash on start servr!!
how can error messge be captured, or logged, or slowed down
as it las less thn quarter millsec on scren?

Allso how to mount more Fats partition on bootrup?

Please help with Apeche syntax for Document Root with Alias whem Fat partition holds html fls

Found this in Ubuntu
""
$ sudo mount /dev/sda1 /mnt
If you have /boot on a separate partition, that need's to be mounted aswell. For reference, /dev/sda2 will be used.

$ sudo mount /dev/sda2 /mnt/boot Make sure you don't mix these up, pay attention to the output of FDISK
""

not working in webserverpup , maybe close to rigt kinda syntax

Hav some Nubie lnks for trade ;)

http://www.gnu.org/software/grub/
http://www.linuxtopia.org/online_books/ ... ner_books/
http://www.gnu.org/software/grub/
http://www.gnu.org/software/grub/manual/
https://wiki.ubuntu.com/Grub2
https://wiki.ubuntu.com/Grub2#User-defined Entries
http://www.justlinux.com/forum/showthre ... did=143973
http://oss.sgi.com/LDP/HOWTO/Kernel-HOWTO/grubconf.html
http://www.tldp.org/HOWTO/Linux+Win9x+G ... intro.html
http://linux.about.com/od/embedded/l/blnewbie_toc.htm
http://www.gentoo.org/doc/en/handbook/h ... =1&chap=10

User avatar
efiguy
Posts: 164
Joined: Thu 07 Sep 2006, 02:51

Webserverpuppy

#41 Post by efiguy »

Hi Brdog,

In desperation - Searched for "Mount on boot" and found this link:
http://www.murga-linux.com/puppy/viewto ... 81&t=44662

It refers to AutoBoot
and - Much Thanks to DAVID S. - for his explanation and examples

For both Webserverpuppies I had to use the: fat-free-3.01-xorg.iso Booted as " puppy pfix=ram " which is ram only mode - to have Pfind and Permission controls available

I had to make a new directory " Startup " under ROOT and created a file named " mount " where duplicated David's guide syntax -- using my drives parameters
File named - mount contents as below
#!/bin/sh
mount -t vfat /dev/sda2 /mnt/sda2

Save file named - mount and make executable and searchable -- select - Startup and make executable and searchable

Follow David's guide for /etc/fstab I added under floppy line using spaces as to equal other column separations

/dev/sda2 /mnt/sda2 auto defaults 0 0

and then to /etc/rc.d/rc.local add line

mount /dev/sda2

Now persuing the Apache directory syntax


This worked first time for me, and I salute and thank you David, and others for posts on this topic

User avatar
Wyk72
Posts: 18
Joined: Tue 01 Sep 2009, 12:55

Wordpress problems

#42 Post by Wyk72 »

Thanks for this wonderful puppy, it was just what I needed for some web development I am planning.

I intend to use wordpress, and the puppy has just what I need.

The problem is, I really can't make it work on this puppy, and that kills me, because it works on my horrible WinXP+XAMPP.

For the first (Hiawatha) distro, I get a "500-Internal server error" , nothing logged in /var/log. If I create the logging directory /var/log/hiawatha, I get logs for access , etc., but I get no errors. Stuck here.

For the second distro(Apache), I get Apache to show me the wordpress php configurator, but I get a "cannot connect to database" from wordpress all the time. Even edited the config by hand, same error. I'm sure I got mysql working correctly (I followed the "5 minutes install" for WP), and on the xp machine everything works well.

Can you give me a hand? I love this compact distribution, and it's blazingly fast on the ancient computer I plan to use for web serving.

I have little linux experience, but I worked as a FreeBSD admin before.

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#43 Post by Aitch »

Eric wrote:Any plans for adding Apache? I think this maybe of use for me to go portable.
I know it was a while ago, Eric, but this has just been posted, though it may not be quite what you had in mind.....

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

It's all fun, though :wink:

Aitch :)

User avatar
Wyk72
Posts: 18
Joined: Tue 01 Sep 2009, 12:55

#44 Post by Wyk72 »

I know it was a while ago, Eric, but this has just been posted, though it may not be quite what you had in mind.....
Tried this one, too (I'm using it right now on my laptop).

With wordpress I still get "cannot connect to database".

Really confused now - there's a place where I can find a log of what's going wrong?

User avatar
efiguy
Posts: 164
Joined: Thu 07 Sep 2006, 02:51

Webserverpuppy Hiawatha 6.14

#45 Post by efiguy »

Hello,
Would anyone have info on how to edit the Wigwam tests on reboot server startup. I am asking Hugo about Virtual IP hosts and there is supposed to be some tests in this startup file for Identical IP numbers and these tests need to be disabled, but I can't seem to find where they are located, as the files Wigwam and Hiawathia do not directly start the server, which seems only to respond to the menu control screen.

Hope this description makes some sense and someone can provide some insight to these control files.

Is it possible to update Puppy Hiawatha 6.14 to version 6.17.1?
If so, could you post the steps required.

Anyone know how to edit the Hiawatha / Wigwam configuration files?

Thank you
Jay

OverDrive
Posts: 178
Joined: Mon 02 Jan 2006, 05:07
Location: Cleveland, OHIO,USA

#46 Post by OverDrive »

Hi, I've been using this recently and one thing that I have found that sure would be nice is a pdf file viewer of some kind. When I'm doing some development work from time to time I need to look something up in a reference pdf document. I tried the xpdf and epdfview pets and both do not work after installation. Any ideas?

OverDrive
Instant Puppy Fan!!!

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

acrobat

#47 Post by raffy »

Some people here have done an acrobat reader pet, hope you can find it. You may need it 'coz some advanced manuals cant be handled by the small pdf readers in Puppy.

Or just upload the PDF in gmail...
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#48 Post by Aitch »


OverDrive
Posts: 178
Joined: Mon 02 Jan 2006, 05:07
Location: Cleveland, OHIO,USA

#49 Post by OverDrive »

Thanks Aitch, Foxit did the trick. It installed and worked on the ones I tested.

OverDrive
Instant Puppy Fan!!!

User avatar
growler
Posts: 209
Joined: Mon 24 Mar 2008, 04:42
Location: Kapiti - New Zealand

Update LHMP pet

#50 Post by growler »

I updated my LHMP package for Lucid 5.1

It contains:
Hiawatha 7.3
MariaDB - (Formerly known as mysql) 5.1.47
PHP 5.3.3 - using the new Fast CGI manager
and PhpMyAdmin 3.3.5

It has accompanying scripts under /etc/init.d/ to start hiawatha (rc.httpd) and mariadb (rc.mysqld)

http://www.logicworks.co.nz/puppy/LHMP- ... -5.3.3.pet

Hope it's useful to someone else

Post Reply