Manual :: Installation ::

18 comments

Comment from: Mike Wang [Visitor]
Mike WangIn some rare cases you may also need to manually chmod 755 all folders and files contained within them that have .php files. Otherwise you'll have problems. After I changed all the pgp files to 755 it worked like a charm.
2004-07-27 @ 18:33
Comment from: Alan Hefner [Visitor]
Alan HefnerThe image upload does not give read permissions!! The result is that the image file can't be seen in the posts.

I can manually chmod the permission for the image file and all is ok then.

Where is the fix for this? I am not afraid of modifying the upload php file just need to know what and where to make the mod.

BTW I did chmod the files and folders with php files to 755 and the media folder to 777 but still the individual uploads end up set to 700.

Alan
2004-09-28 @ 00:33
Comment from: wchung [Visitor]
wchungWhen I try to generate a stub file for one of the blogs with permission level 2, I get a "File Cannot Be Written" Message.

What is the file that needs the chmod?

Thanks
2004-10-06 @ 19:03
Comment from: Stryder [Visitor]
StryderI would guess if a file can not be written, it's more than likely the folder that the file is suppose to be written to doesn't have the right privilege level, so check what CHMOD the folders that have files written to are.
2004-10-27 @ 17:48
Comment from: Nico [Visitor]
NicoI've got a little problem: I placed my weblog in the root-directory and I can not chmod the root. Are there any workarounds?

Thanks

Nico
2004-11-04 @ 15:22
Comment from: Kumier [Visitor]
KumierHI,

File cannot be written!
You should check the file permissions for [/iSERVER/Cluster/k/kumeir.com/www.kumeir/b.html]. See online manual on file permissions.


WHY? Are you tell me?
Thanks

kumeir

2004-11-14 @ 01:41
Comment from: joe [Visitor]
joeIt would be useful to have a recommendation of the proper permission mask (775, 755, 666, etc.) that should be applied to all the files in the b2evolution "blogs/" directory tree after install. The above lists some files that need to have specific masks for specific purposes, but does not specify what we should have the rest of our blog set at so that people can't mess with it.
2005-04-17 @ 16:49
Comment from: Manuel [Visitor]
ManuelI have the exact problem:

The image upload does not give read permissions!! The result is that the image file can't be seen in the posts.

I can manually chmod the permission for the image file and all is ok then.

Where is the fix for this? I am not afraid of modifying the upload php file just need to know what and where to make the mod.

BTW I did chmod the files and folders with php files to 755 and the media folder to 777 but still the individual uploads end up set to 700.

Alan
2005-09-09 @ 00:28
Comment from: Luke [Visitor]
LukeSame problem regarding uploaded file permissions - I can't see any of the images I upload until I manually chmod them. Anyone fixed this yet?
2005-11-02 @ 20:37
Comment from: Fede [Visitor]
FedeI have some permission troubles converting and then saving an iMovie 3 project to iMovie Hd. Can a try to digit "chmod -R 755 Media" in Termina (Apple application) to fix it?
Thanks
2005-11-16 @ 12:05
Comment from: Curt Krueger [Visitor]
Curt Krueger
Hi, I think I figured out code wise how to correct the default CHMOD of 600 to be what ever you want. You have to modify your "b2_upload.php" file.

Starting at line 144:

Change this:
=======================================================================
if (!strlen($imgalt)) {
move_uploaded_file($img1, $pathtofile) //Path to your images directory, chmod the dir to 777
or die( T_('Couldn\'t upload your file to:').' '.$pathtofile);
} else {
rename($img1, $pathtofile)
or die( T_('Couldn\'t upload your file to:').' '.$pathtofile);
}
==========================================================================
To This:
Note: I'm new to PHP, so I'm assuming this is OK. Note the 0644 is the
actual CHMOD value to be set. Hope this saves some hair :)
==========================================================================
if (!strlen($imgalt)) {
if (move_uploaded_file($img1, $pathtofile)) //Path to your images directory, chmod the dir to 777
{
// Read and write for owner, read for everybody else
// echo($pathtofile); debug purposes
chmod($pathtofile, 0644);
}
else
{
die( T_('Couldn\'t upload your file to:').' '.$pathtofile);
}
} else {
rename($img1, $pathtofile)
or die( T_('Couldn\'t upload your file to:').' '.$pathtofile);
====================================================

Regards,
Curt
Faribault Minnesota
2005-11-25 @ 19:25
Comment from: Curt Krueger [Visitor]
Curt Krueger
Sorry, should of been more clear. The above code is to fix the non-viewable images after you've uploaded them in your blog. By default, the CHMOD value is "600" so they are not viewable. The code I placed above, CHMODs the image to 644 if successfully uploaded so that it can be viewed by default.

Hope this helps!

Curt
Faribault Minnesota
2005-11-25 @ 19:32
Comment from: Judith [Visitor]
JudithMy problem is in regards to editing the skin/template. Under templates it says I must change the permissions to 766 in order to edit--which I did. But when I changed it, I got a message saying "permission denied." What must I do in order to be able to edit the template?
2005-12-02 @ 14:46
Comment from: Adam Jaskiewicz [Visitor]
Adam JaskiewiczFor some reason, only two of my blogs have a [Gen] link for generating a static page in the blogs list. I'm getting a "Permission denied! (blog_genstatic:any:1)" when I try going to the static page generation URL manually (click on one of the existing Gen links and change the blog to another number). The files it is using do indeed exist, and are rw to the web server (666, actually), and I cannot find any difference that would cause it to work for blogs 5 and 6, but not 1, 2, 3, or 4. I tried 777 on my blogs directory, but that didn't help.

Any ideas?
2006-04-02 @ 19:24
Comment from: blueyed [Member] Email
blueyedAdam, you'll have to go to the "Blogs" tabs and give yourself permissions to generate static pages. It's not a chmod issue.
2006-04-04 @ 23:35
Comment from: Thomas Groenbaek [Visitor]
Thomas GroenbaekThank god!!!

I have an php upload script, that have been working on another webhotel. On a new webhotel it just could not work - and I spend numberous hours pulling my hair.

Then I found out that only owner had access on uploaded pictures - ok, that was the reason other uses could not se the pictures!!

Then more hours went, cause I could not find any info about how to set there permissions on-the-fly, when i was uploading! After pulling more hair, and almost giving up, I made one last google search and found this site and the saving statement:

chmod($upload_dir.$filename, 0644);

I am now a happy man - again :)

Thanks a lot for this information!!!
/thomas, Denmark
2006-04-22 @ 19:08
Comment from: Ben [Visitor] Email
BenI am having the same problem - do you need to give the full path or not?

Running out of hair....

2006-11-02 @ 19:52
Comment from: Aminda [Visitor] Email
AmindaThanks guys, its a greate help...:-)
2006-12-22 @ 04:54


Fatal error: Call to undefined method evonet_Module::SkinEndHtmlBody() in /home/b2evonet/www/inc/_core/_misc.funcs.php on line 65