- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Apache, PHP and Images
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 02:00 AM
тАО05-12-2005 02:00 AM
Re: Apache, PHP and Images
Now when i try to check my library with gd scripts on my host with mozilla, I get :
The image "http://machine/info/testgd.php" cannot displayed, because it contains erros.
error_log in apache gives :
[Thu May 12 15:54:20 2005] [error] an unknown filter was not added: PHP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 02:36 AM
тАО05-12-2005 02:36 AM
Re: Apache, PHP and Images
http://machine/info/testgd.php
What are the PHP errors that you get?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 02:55 AM
тАО05-12-2005 02:55 AM
Re: Apache, PHP and Images
$image=imagecreate(100,100);
$bleu=imagecolorallocate($image,0,0,255);
imagefill($image,0,0,$bleu);
header('Content-type: image/png');
imagepng($image);
?>
url : http://machine/info/imagejpeg.php = OK
but http://machine/info/imagepng.php = same erros as before in my browser and in error _log.
with this script :
$im = imagecreatetruecolor (300, 200);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);
imagefilledrectangle($im,0,0,399,99,$white);
imagerectangle($im,20,20,250,190,$black);
header ("Content-type: image/png");
imagepng ($im);
?>
--> same thing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 03:28 AM
тАО05-12-2005 03:28 AM
Re: Apache, PHP and Images
New info :
I have this message in error_log file :
libpng warning: Application was compiled with png.h from libpng-1.0.11
libpng warning: Application is running with png.c from libpng-1.2.8
I have installed patch PHSS_30970 : ld(1) and linker tools cumulative patch on my host.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 04:22 AM
тАО05-12-2005 04:22 AM
Re: Apache, PHP and Images
According to the message, you have a mistmatch in binaries. Did you install all the newest libraries? gd, libpng?
Never seen this message before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 11:55 AM
тАО05-12-2005 11:55 AM
Solution/opt/hpws/apache/hpws_docs/php.admin.guide lists libpng 1.0.11 as a dependency for gd.sl.
You need to get source for libpng 1.0.x and compile it (unless you can find already built depot).
I think libpng-1.0.18 will do fine.
http://prdownloads.sourceforge.net/libpng/libpng-1.0.18.tar.gz?download
After untar'ing the file you will find a makefile for hp-ux in scripts directory. Use makefile.hpgcc for gcc, or makefile.hpux for cc.
$ cp scripts/makefile.hpgcc makefile
$ make
# make install
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 10:55 PM
тАО05-12-2005 10:55 PM
Re: Apache, PHP and Images
It works fine !
Final Configuration :
hpuxwsApache A.2.0.53.00 HP-UX Apache-based Web Server
Apache/2.0.53 HP-UX_Apache-based_Web_Server (Unix) DAV/2 PHP/4.3.8
GD Version bundled (2.0.23 compatible)
libpng 1.0.18.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 12:23 AM
тАО05-13-2005 12:23 AM
Re: Apache, PHP and Images
- « Previous
- Next »