Webserverpuppy LAMP and XAMPP

For talk and support relating specifically to Puppy derivatives
Message
Author
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

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#51 Post by dejan555 »

Thanks growler, will surely be usefull.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

Atle
Posts: 596
Joined: Wed 19 Nov 2008, 12:38
Location: Oslo, Norway
Contact:

Very nice work and here is a wish...

#52 Post by Atle »

First i would like to pay my respect to such guys as PuppyMartin and Growler.

I have tried Webserverpuppy both the lamp and xampp, in order to install the most used world wide CMS, Joomla. So far i run into numerous problems and have had no success at all. I shall not go into details as the rabbit hole is so deep and the technical details, way above my head. But a hint is the user nobody, ftp rights, files and folders that are unwritable. The same goes for WebERP. .

Now here is a wish. As Joomla is sort of an "multipurpose" CMS, that can by ease become almost whatever you want, with over 5000 plugins and bridges to several other very useful applications, like moodle, shopping solutions and what what what, it would be really nice to get some Puppy that delievers this out of the box.

Trying out Growlers Pet, left with just a big question mark, i bring forward the following wish:

Is it possible to make three versions of Puppy Lucid that runs as both client and server?

1) A Out of the box Lucid with WebERP

2) A Out of the box Lucid with Joomla

3) A Out of the box Lucid with Joomla and WebERP

There are not only one major obstacle for a "mainstream" guy like me to make this, but rather two. The first is to install the CMS or WebERP at all. Second, if I ever succeeded, i will then start a hopeless project, and that is to remaster the "new distro".

I shall give some example of what i am talking about, as Deadwait at the Slitaz website made a Live running Joomla Slitaz, but it is based on a Slitaz that you can not install to HD, but only to USB for some reason, and you can not store the changes made to the system. At least i did not manage to do that. Still this Live CD is the only Live CD i have seen that is actually taking the development from " a live webserver" into a Live webserver with preconfigured useful applications"

http://www.in2dwok.com/downloads/slitazjoomla.iso

Now this brilliant example of what i call a hybrid system, giving new and unknown possibilities to Linux as an educational tool. What i am on to, is to fill up the joomla with educational material as found on the web, be it about PHP or simply joomla, in order to give a free and usable operating system, a collection off educational material for offline usage and a "lab" for practice and experimental development. As a "Lucid Puppy Joomla" will only use less than 25 percent of the space on a CD, there is then left about 500 something MB of free space, whereas the educational content is found and organized in the Joomla. Get me?

This off course is not limited to a CD, but can be a DVD packed with educational videos, useful programs like GIMP and whatever for webdesign and so forth. Also the beauty off the USB installer can be a carrier of even larger "educational distros" in areas and parts of the world where teachers has no clue about programming and internet is very expensive.

The main reason for asking for Lucid is the fantastic support for all kinds of modems. I have a PCMCIA CDMA modem and Lucid/ Quirky, is the only distro that really supports that and all other mobile internet modems like USB GSM and CDMA. So I believe that the option of connecting to the internet should be present. Also there is another beauty here, as old computers can be useful again, as Lucid can be pretty nice with your ram.

I hope for some comments on this issue.

Best regards
Atle

PS! If one takes a look at the so called stand alone servers for Joomla, one shall see that in reality there are none running live or anything close to this proposed concept. http://extensions.joomla.org/extensions ... ne-servers
Last edited by Atle on Sun 12 Sep 2010, 09:41, edited 1 time in total.

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

Running webERP or Joomla

#53 Post by growler »

Have you only tried the webserver puppy or have you tried installing the .pet in the above message in lucid puppy 5.10?

I run webERP on it and have had Joomla on it too previously. Joomla has the advantage of not requiring special URL re-writing like most CMS's - so is the easiest CMS to configure in my experience.

To install webERP you simply unzip the archive under the Web-Server directory.

The only difficulty might be that you need to change the permissions on the files to allow the web-server user "nobody" to write to the space - as the config.php needs to be written to the /root/Web-Server/webERP directory.
If you open the terminal rxvt program under utilities and enter:

Code: Select all

#cd /root/Web-Server/
#chown -R nobody webERP
and then in Firefox/Sea Monkey or whatever browse to:

http://localhost/webERP/

the installer comes up and off you go.

The same process applies for Joomla

Atle
Posts: 596
Joined: Wed 19 Nov 2008, 12:38
Location: Oslo, Norway
Contact:

Nice...

#54 Post by Atle »

The installation of the PET is done in Puppy Lucid 5.10. I have followed the instructions and all seems fine, apart from "PHP Session Support Disabled". I use Firefox 3.6.6 that should support cookies.

Also there is another error with: Company data dirs (../companies/*) Unwriteable

Is that an issue I should worry about, or just go ahead and install?
I belive i must create a database for webERP

When visiting:

http://localhost/phpMyAdmin/index.php

I get: phpMyAdmin - Error

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

Ohh... and during the installation of the PET, you get a message that at least ends with doing some things with config.inc.php... The challenge here is that the message appears for a very short time. Not time enough to take this information down to paper. That is slightly confusing.

Also... at the bottom of the installation page for webERP(http://localhost/webERP/install/index.p ... ecked=true), i find this Warning:

Warning: Unknown: open(/tmp/sess_k9j4haddamvfsel73fakd0ktc1, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0


(sorry for editing this 4 times, but i did not see that the installer page was very wide, so some of the information i had to look for far out of my windows on the right side)

EDIT: Added the html file as seen in the installer of webERP
Last edited by Atle on Sun 12 Sep 2010, 09:53, edited 1 time in total.

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

Installing webERP

#55 Post by growler »

Session support disabled is a problem ...
What sort of installation are you using - in particular where is your pupsave file saved to? Maybe you are saving back to DVD or CD?

Browse to http://localhost/webERP/phpinfo.php

to see how php is configured.... I suspect there is some issue writing to the pupsave.

This is also a problem as described in the message above:
error with: Company data dirs (../companies/*) Unwriteable
This is why you need to go to rxvt terminal and enter the commands in the note above.

The webERP installer will create your database based on the inputs you enter.

Atle
Posts: 596
Joined: Wed 19 Nov 2008, 12:38
Location: Oslo, Norway
Contact:

Very nice...

#56 Post by Atle »

The PC i was using had no pupfile. But still it seems to save all my data very good. So you where right. My bad. Sorry.

Anyhow...

I install a brand new 5.10. Installing, then reboot without pupsave, then boot into from HD, and then make pupsave. I have not seen yet if its in or outside the folder. This is on another PC that gave me the choice of saving the pupfile. So i did it all "by the book".


I then install Firefox to have a webbrowser that accept cookies. Then i place the extracted webERP into the Web-Server directory and does the above described commands in terminal.

Still i have the same message at companies. Not writable.

And for some reason the webERP webpage is so wide. Very wide as in four to five times as wide as normal. I use the latest official version of webERP from the weberp.org. It was rendered slightly better in NetSurf. I am not sure why its like that, as i did not have this problem earlier using the same untouched files.

So should i just install and then do the commands in terminal or is doing it after placing the webERP files, and before pointing at them in webbrowser ok?

And what about the message that appears during install, the window you look at that says something about password woofwoof and config.inc.php?

I await to go further into installation, until the companies appears to be writable.

Or do i need to restart the webserver for this to take effect?

I really appreciate your kind help

atle

EDIT: I have uploaded the phpinfo.php to
oldpc.org/somename.tar.gz

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

Installing webERP on puppy LHMP server

#57 Post by growler »

I assume you got the session support going once you had saved a pupsave file.

The message after installing the .pet tells you that the mysql username root has password woofwoof. You need this information to enter into the webERP installer - so that the database username "root" and its associated password "woofwoof" can be used.... obviously because I am writing this here it is not safe to do this and really the username and password for the database should be changed... but to get you started makes sense to use root/woofwoof to prove the concept.

When you go into Rox file manager and look at the files under /root/Web-Server/ - are the files under webERP and webERP/companies/ all owned by nobody?

When you go into the process list and look for hiawatha process and the php-fpm process are these running as the user nobody?

A little confused why the web-server is reporting its inability to write to these areas. If all else fails you could go into rxvt

#cd /root/Web-Server/
#chmod -r ugo+rw *

as a large sledge hammer to break this one.

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

Installing webERP on puppy LHMP server

#58 Post by growler »

Sorry impatient double click - duplicate posting - now removed!

Atle
Posts: 596
Joined: Wed 19 Nov 2008, 12:38
Location: Oslo, Norway
Contact:

#59 Post by Atle »

Hmm..

I do as you say and terminal says on after the second line:

chmod: cannot access ugo+rw : No such file or directory

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

#60 Post by growler »

OK sorry

#cd /root/Web-Server
#chmod -R ugo+rw webERP

note capital -R

Post Reply