Web Hosting Talk







View Full Version : question to hosts w/ movabletype install knowledge


stech4u
08-15-2002, 07:54 PM
hi,

this questions is for anyone, preferably hosts, that setup movabletype (www.movabletype.org) blog utility for their customers. i was just wondering if you experience this same problem, so let me start with a background of how i set mine up for my site...

i have my own /cgi-bin/ so moved /mt/ to /cgi-bin/mt/ (and chmod the .cgi files to 755). then i put the static files that mt uses to /html/mt-static/ (ie. docs, images, and style.css) like the install instruction stated.

my local server path is:
/home/virtual/site.com/var/www/html

so that the path to /mt/ dir is:
/home/virtual/site.com/var/www/cgi-bin/mt/

i can access my blog through the mt control panel (ie. mt.cgi), but the problem lies when i REBUILD my site.

i created a user, let's say "BOB (ie. http://www.site.com/~BOB). so that when he uses mt...all of his blog entries are published and stored at his local directory/home/virtual/site.com/home/BOB/public_html/blog, and archives go to /home/virtual/site.com/home/BOB/public_html/blog/archives. after BOB adds a new entry and tries to publish...this is the error that he gets...

An error occurred:

mkdir /home/virtual/site.com/home/BOB/public_html: Permission denied at lib/MT/FileMgr/Local.pm line 100

i guess the problem lies in that the setting wont allow anyone else permission to go to "BOB" folder but just BOB himself... i have posted this problem to the movabletype.org forum already, but still no solution. so i'm asking anyone, preferably hosts, that had this problem before in their server/site/etc. that knows how to fix it, or has a solution that might work.

please help, thanks in advance.

XcaliburWS
08-15-2002, 08:02 PM
Originally posted by stech4u

i guess the problem lies in that the setting wont allow anyone else permission to go to "BOB" folder but just BOB himself... i have posted this problem to the movabletype.org forum already, but still no solution. so i'm asking anyone, preferably hosts, that had this problem before in their server/site/etc. that knows how to fix it, or has a solution that might work.

please help, thanks in advance.

i'm not a host, but i can probably answer this one.
you are probably right in thinking that it wont allow anyone but "bob" to access the "bob" folder. the movable type script is not the user "bob" and therefore doesn't have permissions to access the bob folder. have you CHMODed the bob directory to the right permissions (to allow MT to write/read the directory)?

Edit: if this doesnt work, why cant you just set up the MT script again in the "bob" account? does that account not have cgi-bin?

stech4u
08-15-2002, 08:12 PM
i tried chmod bob/public_html dir to even 777 (as well as /blog and /archives) and still no luck...which i don't want to do if does work cause of security reasons

no, i don't think "bob" has his own cgi-bin...i think there's only one major one at /home/virtual/site.com/var/www/cgi-bin

and i setup mt script under "bob" account, i still have to put it in the cgi-bin of the main site which is the same as i have it now...right?

any other ideas?

stech4u
08-15-2002, 08:16 PM
i was also looking at your site...fellow mt user. do you use the /cgi-bin/? if so, where do you publish your blogs to (ie. /public_html/ or sub-user dir /~user) ?

XcaliburWS
08-15-2002, 08:23 PM
Originally posted by stech4u
i was also looking at your site...fellow mt user. do you use the /cgi-bin/? if so, where do you publish your blogs to (ie. /public_html/ or sub-user dir /~user) ?

yeah.. my cgi is in the cgi-bin directory and the blogs are published right to public_html. i've installed MT on 3 different sites and i've always installed it this way, and its never failed. Since my host uses cpanel, i dont have any /~user accounts, so i don't know whether it would work this way.

if your host allows cgi scripts outside the cgi-bin directory, you might try installing right into the "bob" folder, since MT supports this, but I'm sure its safer to use the cgi-bin, that's why i have it set up that way.

Edit: if you install it without placing the cgi files in the cgi-bin directory and are using the berkley DB instead of the mysql option, be sure to place the DB folder somewhere where it is not web accessable for security reasons. this is stated in more detail in the MT documentation.

stech4u
08-15-2002, 08:32 PM
...i think i recall my host saying that i'm "chrooted, so [i] have to run all cgi's in [my] cgi-bin dir and they must be chmod to 755, etc..."

i tried just publishing to /public_html/, and it works. BUT, i don't want to store users blog files in that directory....i want them to store their own stuff in their own directory...which is easier organization and cleanup for later on the line.

as db...i'm using mysql...i don't want to touch berkely db =p

anyways, where is everyone else...i know that this forum doesn't have 2 regular users that post--i'm sure there's plenty of people that had this problem one way or another--so, post post post

any other ideas?

stech4u
08-17-2002, 05:36 PM
GOT IT WORKING!

to let movabletype publish to a user directory (i.e. /~bob/blog, and /~bob/blog/archives)...

chmod:
/bob to 711
/bob/public_html to 755
/bob/public_html/bob to 777
/bob/public_html/bob/archives to 777

just double-check w/ your host if this will breach any security features... =)


woohoo...back to blogging