I get this error while running this php script. Error: (process:4382): libgnomevfs-WARNING**: Unable to create ~/.gnome2 directory: Permission denied Code: <?php // Start header flush ob_start(); // Set variables $imPath = "/opt/local/bin"; $new_svg = $_GET['new_svg']; $new_png = $_GET['new_png']; //echo "images/" . $new_svg; //echo "</br>"; // Execute shell command system("exec 2>&1; $imPath/convert 'images/$new_svg' images/$new_png"); // Redirect to show_image.php $redirect = "show_image.php?new_svg=$new_svg&new_png=$new_png"; header("Location: ". $redirect ); exit(); // Flush header ob_end-flush(); ?> I new to the whole shell script world, sorry. Where do I find the '~/.gnome2 directory' and what should it's permissions be set to? Thanks, Ken... Ken Pettit BIG Images 2304 Broad St San Luis Obispo CA, 93401 email:kpettit@big-images.com phone:805-781-9301 fax:805-781-9303 it is not the past, but the future that awaits you, that determines who you are right now.
On Apr 2, 2007, at 12:38 PM, Ken Pettit wrote:
Where do I find the '~/.gnome2 directory'
You'll get a lot of replies, but the answer is in the question. : mkdir ~/.gnome2 mkdir: /Users/paul/.gnome2: File exists The ~ character means "home" or your home directory. It sounds like the process doesn't have permissions to create a directory in your home: if it's not running as you, that makes sense, as you don't want a web server process writing into user home directories. If it is running as you, you may want to verify that you can write. cd ~; chown -R <your username> . This should run without issue, but the messages you get back will tell you what's wrong. For permissions, it looks like 0700. drwx------ 9 paul paul 306 Mar 31 16:36 .gnome2 -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
participants (2)
-
Ken Pettit
-
Paul Beard