In Unix onlyt functioning in / directory, not subdirectories

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jaxdevil

In Unix onlyt functioning in / directory, not subdirectories

Post by jaxdevil »

I have ImageMagick installed on my server. For the life of me I cannot understand what is happening with this error. I have a domain on my server, and when I am in the / directory (public_html) the code works perfect, it converts the image to a pdf file while simultaneously changing the resolution to 600dpi (for printing purposes) but when I move the file and the single page script to a directory within the root ( say /files for example) it gives me the error "Internal Server Error" ?? I don't get why it would work in the main directory and not in the sub directory. It is not installed on the domain itself, it is installed on the server, so even the fact that it is the root of that domain, it is already in a sub directory ( i.e. /home/username/public_html ) Anyone know what is causing this??
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: In Unix onlyt functioning in / directory, not subdirectories

Post by anthony »

Not without a lot more information. How are you running Im, command line, from PHP, from CGI scripts?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
jaxdevil

Re: In Unix onlyt functioning in / directory, not subdirectories

Post by jaxdevil »

Thanks for replying.

I figured it out though. It was an issue with my server, I did not know what to CHMOD the directory the script was running in and I was using 777, which my server security settings restricted what happened within it since it figured the settings were 'too' permissive. I cleared the setting on the server and the problem is gone now.

Thanks,
SK
Post Reply