Hi Folks,
the following problem occured:
i use imagemagick (Version: ImageMagick 6.2.2 05/26/05 Q16 on Fedora
Core 3 Server)
When i manually (on bash) execute:
/usr/bin/convert -size 300x267
/var/www/html/web4/html/_img/_2/b28a3240dffa1ca d3dab0e877a3d7c 5e.jpg
-resize 126x100+0+-6 +profile "*"
/var/www/html/web4/html/_img/_2/_tn/t_b28a3240dffa1 cad3dab0e877a3d 7c5e.jpg
it works. (i am root)
executing the same within a PHP Script with system(... command as shown
above ...);
i get the following output:
convert: unable to open image
`/var/www/html/web4/html/_img/_2/fa1d0a1d407f077 aa98c8498b3e8be 7d.jpg':
Permission denied.
The /var/ folder belongs to root and has chmod 755
/var/www/ has 777 (root),
/var/www/web4/ has 777 (apache --the httpd runs on user
apache:apache),
/var/www/web4/html/ ... till _img/_2/.... has 777 and is
apache:apache.
I really don't get this.... can anyone give me a hint? Even googling
didn't resolve this issue.
THanks a lot,
cheers.
-phil 6 1870
<ph****@gmail.c omwrote in
news:11******** **************@ e3g2000cwe.goog legroups.com...
Hi Folks,
the following problem occured:
i use imagemagick (Version: ImageMagick 6.2.2 05/26/05 Q16 on Fedora
Core 3 Server)
When i manually (on bash) execute:
/usr/bin/convert -size 300x267
/var/www/html/web4/html/_img/_2/b28a3240dffa1ca d3dab0e877a3d7c 5e.jpg
-resize 126x100+0+-6 +profile "*"
/var/www/html/web4/html/_img/_2/_tn/t_b28a3240dffa1 cad3dab0e877a3d 7c5e.jpg
it works. (i am root)
executing the same within a PHP Script with system(... command as shown
above ...);
i get the following output:
convert: unable to open image
`/var/www/html/web4/html/_img/_2/fa1d0a1d407f077 aa98c8498b3e8be 7d.jpg':
Permission denied.
The /var/ folder belongs to root and has chmod 755
/var/www/ has 777 (root),
/var/www/web4/ has 777 (apache --the httpd runs on user
apache:apache),
/var/www/web4/html/ ... till _img/_2/.... has 777 and is
apache:apache.
I really don't get this.... can anyone give me a hint? Even googling
didn't resolve this issue.
I will solve this not long ago :-)
I'm not sure if this is not a security hole but this work for me.
/var/ must have provileges 77x
/var/www/ 77x
/var/www/web4/ 77x
/var/www/web4/html/ 77x
and for all directories the group must be some group where "apache" is a
member of this group.
And at the end you MUST RESTART Apache ;-) because Apache is running using
privileges readed at start time.
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
*** ph****@gmail.co m escribió/wrote (7 Sep 2006 14:29:06 -0700):
convert: unable to open image
`/var/www/html/web4/html/_img/_2/fa1d0a1d407f077 aa98c8498b3e8be 7d.jpg':
Permission denied.
The /var/ folder belongs to root and has chmod 755
/var/www/ has 777 (root),
/var/www/web4/ has 777 (apache --the httpd runs on user
apache:apache),
/var/www/web4/html/ ... till _img/_2/.... has 777 and is
apache:apache.
Sorry if it's too obvious but... what are the permissions of the file
itself?
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Alvaro G. Vicario schrieb:
*** ph****@gmail.co m escribió/wrote (7 Sep 2006 14:29:06 -0700):
convert: unable to open image
`/var/www/html/web4/html/_img/_2/fa1d0a1d407f077 aa98c8498b3e8be 7d.jpg':
Permission denied.
The /var/ folder belongs to root and has chmod 755
/var/www/ has 777 (root),
/var/www/web4/ has 777 (apache --the httpd runs on user
apache:apache),
/var/www/web4/html/ ... till _img/_2/.... has 777 and is
apache:apache.
Sorry if it's too obvious but... what are the permissions of the file
itself?
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Alvaro G. Vicario schrieb:
*** ph****@gmail.co m escribió/wrote (7 Sep 2006 14:29:06 -0700):
convert: unable to open image
`/var/www/html/web4/html/_img/_2/fa1d0a1d407f077 aa98c8498b3e8be 7d.jpg':
Permission denied.
The /var/ folder belongs to root and has chmod 755
/var/www/ has 777 (root),
/var/www/web4/ has 777 (apache --the httpd runs on user
apache:apache),
/var/www/web4/html/ ... till _img/_2/.... has 777 and is
apache:apache.
Sorry if it's too obvious but... what are the permissions of the file
itself?
i tried the files with 777 and 755. always same error :-(
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
I tried everything from the above. i even put "apache" user in root
group ... same error...
Do you have any other tipps ?
*** ph****@gmail.co m escribió/wrote (9 Sep 2006 12:26:30 -0700):
I tried everything from the above. i even put "apache" user in root
group ... same error...
Do you have any other tipps ?
One guess... Do you have a SELinux enhanced Linux distro, such as Fedora
Core? If so, there's a graphical tool somewhere (titled "Security") that
allows you to enable/desable SELinux. Try it out.
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
-- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Randell D. |
last post by:
Folks,
I've not used ImageMagick before - I've worked with the gd functions that
are pre-compiled in PHP and found some of the limits problematic yet heard
better reviews on ImageMagick.
I've got PHP 4.3.3 - When I do a phpinfo(); it tells me it was compiled
with --with-imagemagick There is no other mention of it anywhere (unlike GD
which is listed further down in its own box).
Can someone give me a quick one or two liner script that...
|
by: Joe |
last post by:
Hey
I have tried to install ImageMagick on my server, but my apache stalls
when i try to start it with the following line added to my php.ini file:
extension=php_imagick.dll
I can't even kill the apache procees when I try to run it with this
option added, so I have to restart the entire server each time I have to
return to the original setting of php.ini
|
by: nawfer |
last post by:
for to resize and copy original photos into a new directory and to use
for a thumbnail gallery on the web;
what is better: GD, Netpbm or imagemagick and why?
very thank
|
by: news |
last post by:
My Web host apepars to not allow exec() and system(), as a line in my
script:
system("convert -scale 100x100 $uploadfile $toimage");
gives the error:
"Warning: system() has been disabled for security reasons"
Is there some other way to use ImageMagik (or is it GhostScript?)'s
|
by: shanergb |
last post by:
Hi all. I'm creating a web-based application that uses PHP, MySQL &
Apache on a Windows platform. What I need to do is create images on
the fly with either GD or ImageMagick, display them on the web browser
and then save the file.
The tricky part is the format of that saved file - it needs to be an
EPS format. The image won't be anything terribly exciting - just some
basic shapes (boxes, circles, etc) and some text. No fancy colors,...
| |
by: Jim Red |
last post by:
Hello
Can someone give me an example how to use the Imagemagick - Identity
command?
Cheers
Jim
|
by: eholz1 |
last post by:
Hello Users,
I am not sure if this is the place to post an imagemagick question -
please advise.
I have imagemagick 6.3 installed, runs from command line ok, etc.
I have tried (several times now) to install the "MagicWand" PHP api
from the imagemagik site.
This flatly refused to "make" configure seems ok, I follow the
|
by: femtox77 |
last post by:
Hi to all!!!
I'm trying to convert a pdf file into an image, for example JPG or PNG
format, with ImageMagick. I use the command line. For example: convert
header.pdf header.jpg. But I obtain a bad result. The jpg's quality is
very low. Why? I tried to use - quality 100 option but there isn't
improvement. I think also that this option isn't active for the pdf
conversion to an image format or not? I need some good ideas :D...
Thanks to...
|
by: empiresolutions |
last post by:
I am working with a TIF to JPG conversion that will result in the JPG being printed from a web page. My issue is the final JPG image prints VERY blurry.
The TIF file that has the following settings,
*plat.tif*
Pixel Dimensions - 9600x7200
Document Size - 24x18 inches
Resolution - 400 px/in
File Size - 236 KB
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |