Author |
Message |
SVanguardPH2
Joined: 20 May 2009 Posts: 8 Location: GB
|
Posted: Thu 21 May 2009, 15:21 Post subject:
php query |
|
on a slightly different note...
I see from the original URL : LAMP vs PLHMP
that PHP was compiled with the following:
Code: |
./configure --prefix=/usr/local --without-pear --enable-fastcgi
--enable-ftp --with-bz2 --with-gd --with-gettext
--with-mysql=/usr/local --with-mysqli --enable-wddx --enable-mbstring
--with-mcrypt=/usr/lib
|
the CMS system (PHP-Fusion 6) I've ported to now run on this configuration makes a call to imagecreatefromjpeg() to upload images, create thumbnails of them etc.. I thought that function was part of the gd library?
Apart from that minor blip, I'm happy to say that porting from Windows 2003 Server running Apache, MySql and PHP to Puppy Linux 4.2 running on an eBox 2300 with 200Mhz and 128Mb RAM has been rather entertaining and enjoyable!... now if I could just get that last bit working....
|
Back to top
|
|
 |
growler

Joined: 24 Mar 2008 Posts: 209 Location: Kapiti - New Zealand
|
Posted: Fri 22 May 2009, 03:50 Post subject:
magecreatefromjpeg() |
|
That's an odd one - I see there is an option in /etc/php.ini
Code: |
[gd]
; Tell the jpeg decode to libjpeg warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
;gd.jpeg_ignore_warning = 0
|
Not sure what difference it will make if you set it to 1.
The gd library definitely works since I am using the phplot scripts for graphing which requires gd. Would be interested to learn the exact message reported and see the code producing it.
|
Back to top
|
|
 |
SVanguardPH2
Joined: 20 May 2009 Posts: 8 Location: GB
|
Posted: Mon 01 Jun 2009, 07:28 Post subject:
|
|
Apologies for the delay, have been offline for a week (a rare event to accomplish these days!)
Well, after trying numerous things, I've conceded that porting PHP-Fusion 6 from a Windows 2k3 Server to Puppy Linux is a no-go. I've found far too many errors (not just the image creation one). I thought it was the usual permissions issues, but alas it seems like the code that was written just doesn't want to run on Puppy.
So..... time to ditch PHP Fusion and install a different light weight CMS that WILL run on Puppy Linux (ditch the CMS rather than the OS - I think I'm a convert now!)
Am going to checkout ZenPhoto with the ZenPage plugin and see how that works out (most of the website that will run from PuppyLinux will just be photos anyhow).
If anyone has any other suggestions for a simple CMS that runs on Puppy, let me know!
|
Back to top
|
|
 |
raffy
Joined: 25 May 2005 Posts: 4839 Location: Manila
|
Posted: Tue 02 Jun 2009, 01:50 Post subject:
pplog |
|
Barry has originally released Puppy 4 with Hiawatha server and PPLOG. See PPLOG at work in http://puppylinux.com/blog
Forum member prit1 hs ported PPLOG to PHP with PritLog:
http://hardkap.net/pritlog/
_________________ Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
|
Back to top
|
|
 |
growler

Joined: 24 Mar 2008 Posts: 209 Location: Kapiti - New Zealand
|
Posted: Tue 02 Jun 2009, 06:10 Post subject:
Simple CMS with puppy |
|
I've been using Joomla with no issues.
I have had silverstripe going and I understand magento can also be used but there is a trick in the configuration of hiawatha since you have to do some URL re-writing hiawatha has a URL toolkit to enable URL re-writing but I must say the syntax is beyond me the author of hiawatha has been helpful getting these going
see http://www.hiawatha-webserver.org/forum/topic/127
of course these all need PHP and mysql - using my pet
|
Back to top
|
|
 |
SVanguardPH2
Joined: 20 May 2009 Posts: 8 Location: GB
|
Posted: Tue 02 Jun 2009, 12:37 Post subject:
|
|
I tried TinyWebGallery and interestingly it failed at the start with:
Code: |
Fatal error: Call to undefined function imagecreatefromjpeg() in /root/httpd/hiawatha/L13NET_CMS/inc/filefunctions.inc.php on line 1507
|
so my issues do seem to relate to the call to: imagecreatefromjpeg()
which was the initial issue with php-fusion and the same issue arose with ZenPhoto. After some internet searching I then found this reference: http://uk.php.net/imagecreatefromjpeg
Where it states:
Code: |
Note: JPEG support is only available if PHP was compiled against GD-1.8 or later.
|
Maybe that is the issue I've been hitting? Was PHP compiled with this version of GD?
I've checked phpinfo and it thinks that GD is enabled and v2: PHPINFO
am I missing something really obvious? Is there meant to be any extra jpeg libraries in the usr/local/lib folders? (btw - there is no php folder in this location, is that correct?)
|
Back to top
|
|
 |
SVanguardPH2
Joined: 20 May 2009 Posts: 8 Location: GB
|
Posted: Tue 02 Jun 2009, 12:53 Post subject:
|
|
After viewing the PHPINFO I noticed:
Code: |
./configure --prefix=/usr/local --without-pear --enable-fastcgi --enable-ftp --with-bz2 --with-gd --with-gettext --with-mysql=/usr/local --with-mysqli --enable-wddx --enable-mbstring --with-mcrypt=/usr/lib
|
and then after looking further down I see:
Code: |
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
|
I see there is no mention of JPEG support. This seems logical considering the error message I'm getting! Any ideas how to include this or is it already there but I do not have it switched on?
|
Back to top
|
|
 |
growler

Joined: 24 Mar 2008 Posts: 209 Location: Kapiti - New Zealand
|
Posted: Sat 06 Jun 2009, 22:25 Post subject:
Latest versions with jpeg GD |
|
I recompiled the latest offerings of
Hiawatha - 6.14
mysql -5.1.34
php - 5.2.9
and made a new .pet
I moved the wiki page explaining the rationale of choices made and the download link to http://www.weberp.org/PuppyLinux
Checking phpinfo() with the new .pet I get:
Quote: |
GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
|
|
Back to top
|
|
 |
mulrah
Joined: 19 Mar 2009 Posts: 27
|
Posted: Thu 25 Jun 2009, 13:23 Post subject:
Server issues? |
|
I am trying to download the pet from weberp.org right now, but nothing is happening. Is there another place to get this pet file?
|
Back to top
|
|
 |
growler

Joined: 24 Mar 2008 Posts: 209 Location: Kapiti - New Zealand
|
Posted: Thu 25 Jun 2009, 15:31 Post subject:
Dowload link for LAMP |
|
http://dotpups.de/puppy4/dotpups/Internet/LAMP-6.14-5.1.34-5.2.9.pet
|
Back to top
|
|
 |
mulrah
Joined: 19 Mar 2009 Posts: 27
|
Posted: Fri 26 Jun 2009, 18:28 Post subject:
Thanks |
|
That's the same link as I was using the other day, but it is working this time. Thanks.
|
Back to top
|
|
 |
Schism

Joined: 12 Dec 2008 Posts: 78
|
Posted: Tue 30 Jun 2009, 20:32 Post subject:
|
|
Thank you growler. I'm using this in Upup476 will there be any problems you can see?
|
Back to top
|
|
 |
growler

Joined: 24 Mar 2008 Posts: 209 Location: Kapiti - New Zealand
|
Posted: Wed 01 Jul 2009, 03:32 Post subject:
Using with Upup |
|
I've not had a play in any of the woof derivatives yet ... would be interested to learn about your experiences.
|
Back to top
|
|
 |
Schism

Joined: 12 Dec 2008 Posts: 78
|
Posted: Sat 11 Jul 2009, 13:33 Post subject:
|
|
I have made a sfs of XAMPP 1.7.1 from the XAMPP site. I changed unchecked the world write permissions of /opt/lampp/etc/my.cnf. Ran /opt/lampp/lampp security to set passwords and all works with no problem, so far.
I have been looking for free filehosting to put the sfs up.
Upup simply worked out of the box with display and wi-fi for me. No adding drivers. Every new Puppy get's better on my Compaq laptop.
|
Back to top
|
|
 |
SVanguardPH2
Joined: 20 May 2009 Posts: 8 Location: GB
|
Posted: Wed 22 Jul 2009, 05:19 Post subject:
|
|
growler: apologies for the delay (had been working in Dallas and had no access to the hardware) just to let you know I installed your latest PET.
Everything works a treat for me now even with the original CMS system (PHPFusion).
I disabled the GUI for Puppy to get back some valuable RAM (as this eBox only has 128Mb).
Response time is still great and as an end-user I wouldn't know if the web site was running on the eBox with Puppy or a 1U server with win2k3!
superb stuff. thanks once again.
|
Back to top
|
|
 |
|