ImageMagik frustrations
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
I have installed Gallery 2 and I can upload and delete photos but the thumbs are not working. Initially I did not have image magik installed so I installed it. Inserting path did not work no matter what I tried. Testing the imageMagik returned proof that it is installed and working. I uninstalled Gallery2 and reinstalled it hoping it would pick it up but it did not. I have been at this for several hours trying different things and searching endlessly..... Any advice is welcome and TIA Here is the output of debug: Quote:
is_dir(c:\Program Files\ImageMagick-6.2.9-Q16\) |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Thanks for the response! Quote:
No mapping between account names and security IDs was done. No difference.. looks like it didnt work. Edit - |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Still working on this. I saw another person gave permissions right to cmd.exe and it worked. Is IUSR_machine name the right one to grant permissions to? In this command: I know to change COMPUTERNAME but am I supposed to change COMSPEC ? |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Well I tried this command instead: Quote:
C:\> cacls %COMSPEC% /E /G IUSR_COMPUTERNAME:R And it gave me this output: Quote:
processed file: C:\WINNT\system32\CMD.EXE Then I restarted IIS and SQL but still get the same errors. |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
I have exactly the same problem IUSR_computername is not neccesarily the correct user account. Now I cn't get it working either so its a case of the blind leading the blind but I believe that you're looking to give permissions to the same user account that you use to give anonymous access to the specific website. In my case , my website had a completely different user account set to provide the anonymouse access. I granted permissions to that account to RWX on cmd.exe and that didn't work either. pretty frustrating stuff as this prevents any of the external binaries being configured correctly and I need to get ffmpeg working |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
Incidentally , to get thumbs working I went ahead and installed gd by uncommenting that particular php extension in my php.ini. then after a reboot i activated gd in gallery and heh presto Thumbs work for certain image types Doesn't help me though coz i need to make video work |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Yes its frustrating. I had a bug in MySql install that took me 3 days to resolve. I finally found the fix from extensive searches in Google.... it took a while though. Then Joomla installed without a hitch. After running the command that seemed to work above, I checked cmd.exe and it had been granted read&execute permissions for IUSR_machinename. Makes me wanna wipe and put linux back on. I installed twice with Linux then moved to windows trying to get that MySql thing straighened out! LOL |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Could you elaborate a bit on what you did for: uncommenting that particular php extension in my php.ini. |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
Well thanks to your previous post i actually managed to get the cmd line to apply R permissions to certain users. .hmm however IUSR_machinename doesn't exist on my box as much as i can see ... have you figured out a command that you can run that lets you see what Username IIS is running as ? that'd go a long way to solving these problems i reckon. I wish i was running Linux for this install , it'd be way easier. I have to solve this problem even though i have gd installed and working for graphical thumbs coz I need to utilise ffmpeg. oh well |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
Sure thing ! k so do a search on your box for php.ini There might be multiple versions (that one caught me out) so we need to make sure you have the right one. towards the bottom of the php.ini file. do a search in the file for "gd" the relevant bit of text looks like this: simply remove the ";" from the front of the windows extension "extension=php_gd2.dll" you'll need to reboot to get php to reload itself and then, go into gallery and "activate gd" ;Windows Extensions ;extension=php_mbstring.dll |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
When I say IUSR_machinename... machinename is the name of your server. Mine is named Bombertwo. So its IUSR_Bombertwo Sorry if you knew that already. No but I was just thinking about searching for IIS names... |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
ive got 2 php.ini's they both look the same |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
So the smart money says its the one in c:\winnt go ahead and uncomment the line referencing gd2 and save and once you restart you will be good to go. I went ahead and tried IUSER_mycomputernamegoeshere and got the "no mapping between account names".... error |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Did you use this command? Quote:
C:\> cacls %COMSPEC% /E /G IUSR_COMPUTERNAME:R I uncommented both files actually and rebooted Quote:
You don't seem to have the GD library available on this PHP installation. That means compiling PHP or something I think....... |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
aha... i noticed one difference between our configs. i installed php 5 which seems to come bundled with gd, all i had to do was uncomment that one line in php.ini and i was ready to rock. i'm also running IIS 6 on windows server 2003 but that shouldnt affect our PHP install |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Yea not sure how that happened.... If I download 5.16 can I just install over the top? |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
So you might end up with a similar situation to the one i had with confused php.ini files but the newer version of php was so muc heasier to ultimately use and was worth the initial pain of uninstalling php reinstalling etc don't even get me going about the number of times that mysql was reinstalled |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Ahhh so I need to uninstall first. The php site didn't mention that. Well that sounds like a project for tomorrow I think..... |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
tell me about it rather than fool around with the permissions anymore tonight i went ahead with the Joomla/Gallery2 integration so i didnt feel liek today was a total bust.. you may not need to uninstall php at all. The problem that i had was a plethora of php.ini files and it ended up becoming an issue as to which file was actually being read in by IIS |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Well good luck with that... touch base with you tomorrow maybe. Later!! |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
On the php site it tells me: Quote:
Note: Since PHP 4.3 there is a bundled version of the GD lib. so it seems like GD should work... can someone tell me why that isnt working? |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Well, I uninstalled PHP 4.4.4 and installed the latest 5.1.6. After some fiddling and configuring I got it all working again, and GD works now. ImageMagik still wont work right but at least the 'fork' trouble is gone. If I click save it says : Quote:
The path you entered doesn't contain valid ImageMagick binaries. Use the 'test' button to check where the error is. But I am definately putting in the correct path. Here is the output of debug now... if someone could give me a clue where to look...... Quote:
is_dir(c:\Program Files\ImageMagick-6.2.9-Q16\) |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
Isn't that bizarre how sometimes you have to go backwards and reinstall somethign to go forwards and make it work ? So last night i did finally get ffmepg AND imagegallery working correctly. Turns out that i hadnt granted permissions to IIS_WPG go figure ! I finally found this thread the relevant part was this: Quote:
You need to give some privis to the directory: |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
please ensure that this is documented at: |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
Will do I'll add it once I figure out why ffmpeg thumbnails aren't working |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
robbiekb wrote:
Isn't that bizarre how sometimes you have to go backwards and reinstall somethign to go forwards and make it work ? Yes it sure is! At least I got thumbs working. I think ImageMagik would give rotate and resize though which would be a good thing to have for users of the site. I went though that post you linked to and I have granted permissions to just about everything I can think of. There is no IIS_WPG on mine though but i'm using 2000 server. That must be the difference? I just had a thought though.... ImageMajik is installed in c:\Program Files I wonder if having a space in the path is killing it? My Gallery2 is installed on D: drive too so tomorrow I will try installing IM on D: and see if that helps. Glad you got yours going!! |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
absolutely that will cause a problem, you want to put the imagemagick directory off of the root if you can in a folder with no spaces. I managed to get imagemagic working properly. ffmpeg works 60% (still no video thumbs) |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
I uninstalled and installed in d:/imagemagic and that did no good. Then I removed that and tried the static version and that doesnt work either. I give up. My budget won't allow server 2003 so I guess i'm out of luck unless I go back to nix. |
|
Renkött
Joined: 2006-09-27
Posts: 3 |
![]() |
I have not read all of the posts, but test to set the security options direct on cmd.exe (read & execute for iusr_%computername%) It helped me |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Renkött wrote:
I have not read all of the posts, but test to set the security options direct on cmd.exe (read & execute for iusr_%computername%) Thanks, but I tried giving full permissions to everyone on the list for cmd.exe to no avail. |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
sorry i just back online today (late night last night reconfiguring the email smtp server so that joomla can send mails) to take the emotion and frustration out of this problem (i had my share of it), there are two issues confronting you. Firstly, getting the correct permissions to all of the files, secondly getting the path inputted correctly (joomla and gallery2 are not perfect, although awesome apps) my path to imagemagick is as follows. c:/\imagemagick\ my path to ffmpeg is c:/ffmpeg\ffmpeg.exe weird but for ffmpeg i had to specify the exe or it was failing i also did something naughty and copied cmd.exe locally into the imagemagick and ffmepg directories to solve whatever permissions problem i had remaining I'm still not totally out of the woods as ffmepg is not creating the thumbnails for the video so i figure that wherever it tries to do that , one of the apps is still having permissions issues but i've made enough progress know to start to see what problem solving methodologies need to be applied to get this stuff working on windows. |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
i just noticed something... with all the frustration going on, you might have also misnamed a directory or somethgin so remember to double check that.. if you want me to look at your configuraiton for you, i'd be happy to add a second pair of eyes now that ive gone through the same trouble to get my own setup running. |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
Wow, thanks for that! I do appreciate any and all help for sure! I have double checked everything to the point that I had to get away from it. Maybe in a few days I will re-visit. Thumbs are working fine with GD so the rest can wait. Actually since I typed that last post I've been working on send mail in Joomla too. New registry's work, lost password works, but the contact form does not. |
|
robbiekb
![]()
Joined: 2006-09-28
Posts: 24 |
![]() |
hmmm are you using smtp or the php mail function ? You've made more progress than me, because i use an exchange server for mail and that server is physically remote form the webserver I ended up having to set up a new email server just for joomla last night, but its finally all working i'll go check out your other post and give me a shout if I can help at all |
|
jrjr
Joined: 2006-09-28
Posts: 26 |
![]() |
I got all the mail working now. My trouble was a simple configuration error in the site. I probably would have stumbled on that page sooner or later but I never saw anything about that written before. See the post on the Joomla forum. Oh well, live and learn. I run my servers off of my home cable provider and they will not allow me to run an smtp server for security and spam's sake which is understandable. Thats why I configure my mail to send through their server. I can run a pop though and that works just fine. You should be able to hit your exchange server from anywhere though...at least you found a solution. |
|