Can't publish with MT

apps

#1

I can logon to MT and write posts, but when I try to publish them I get this error message:

Writing to ‘/home/.joelle/shacktam/theamericanmind.com/category.html.new’ failed: Opening local file ‘/home/.joelle/shacktam/theamericanmind.com/category.html.new’ failed: Permission denied

I’ve played around with folder permissions to no avail. I found not file named “category.html.new” so I’m guessing that’s a temporary file that’s deleted after “category.html” has been updated.

I’d be grateful for any help.


#2

It might not be a case of permission but ownership. When running CGI the script has to be run as your user and if this “switch user” operation isn’t done you will have permission denied problems. I only bring this up because it happened recently for one of my domains and support had to rebuild the server configuration and restart it.

Here is a perl script you can use to check:

[code]#!/usr/local/bin/perl

my $username = getpwuid($>);

print “content-type: text/plain\n\nrunning as $username\n”;

exit;
[/code]If it says ‘running as dhapache’, your CGI script is running as the web server and not as your user.

:cool: Perl / MySQL / HTML+CSS