I'm trying to implement the classic UpsideDownTernet prank enhancement.
So it basically goes like this:
- Set up the squid proxy
- Feed it a URL-munging script with Perl
- Script runs on all images, flips them with ImageMagick and serves the flipped version
- Site back and enjoy the fun
Only, it's not working. First of all, squid refused to run the Perl script because it wasn't the owner.
So I made squid the owner of the perl script.
Now the images can't be served off the localhost server because they're owned by squid, so the web server doesn't have permission.
I feel like there's something obvious I'm missing. Obviously I could add a new line to the perl script to chmod each image, but nobody else seems to have that problem.
I'm running squid/Apache on OSX by the way.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.