hi ,
iam testing pritlog on my local machines server . iam having 755 problem even after i did "sudo chmod 755 pritlog/ " can u please help ..
apache2.2 ubuntu php5
hi ,
iam testing pritlog on my local machines server . iam having 755 problem even after i did "sudo chmod 755 pritlog/ " can u please help ..
apache2.2 ubuntu php5
Thanks for testing Pritlog. If you still have 755 problem, then it must be something to do with user id (www user) setup on your server. Can you manually create the two folders for posts and comments as defined in your config.php and run Pritlog? Let me know how it goes.
hi ,
hey did that but still having problems ...i am the only user on the system so donno where the problem is .. what is the command for givving 755 rights to a folder
"sudo chmod 755 /folder" right ? ...
any way both of ur stuff are cool and simple .. prit and macpup :D .. i used mac pup about 1 month before and it was great :)
To chmod the pritlog folder, if you are in the directory just above pritlog (pritlog's parent directory), then give the following command
"sudo chmod 755 pritlog"
When you do this command, do you get any messages? If it does not work after this also, can you try chmod 777 and let me know?
Usually there should be a www user when you have a web server. The stuff from the web will run using this userid and this userid needs to be setup properly also.
hi ..
did a 777 so it went a little ahead .. then when i submitted a test post it gave this error
"
Warning: fopen(/var/www/prit/posts/00001.prt) [function.fopen]: failed to open stream: Permission denied in /var/www/prit/index.php on line 538
Error opening or writing to newPostFile /var/www/prit/posts/00001.prt.
Please check the folder permissions
If this problem continues, please report as a bug to the author of PRITLOG"
I think you may need to do some reading on how to setup the www user for apache. I can't think of any other reason for this problem.
Just as a last attempt, can you check the folder permissions of the posts and comments folders? If they are not 777, can you make them 777 by doing a chmod? and test again?
hey ,
firstly HAPPY NEW YEAR ,
yeah the 777 for posts worked ... so .. what do i do now is keeping 777 safe ? ..
I am glad it worked. Happy New year to you too.
777 is not typically safe. Are you using this server as a world facing one or only for your own internal purposes? If world facing, then it is safer to find an alternative.
We should find the user that apache/php runs as and then this user must be given the write permissions to the pritlog (posts and comments) folders. Then you might be able to get away with 755. I think on the commercial web hosts that I have tried pritlog so far, the main user also runs the apache/php or the web user is part of this group. I am not very sure about how, but we don't have any access issues. Pritlog works in the first attempt.
hmm right now its internal dont worry and thanxx a lot ,, ill give u a detailed report
Hallo from italy,
i also have problem with 755. Changed to 777 and it works. Added a .htaccess file within posts and comments directories with 'deny from all' but get a "deny from all" on the home page as it was a post. Any clue ?
Hi Massimo,
Pritlog reads all files under the posts directory and adds it as a blog post. So it must have taken the .htaccess also. :). Now, is your application a world facing application or is it on a personal server just accessed at home?
Hi Prit. i would like to use blog as a world (italy :-) ) facing application. I will put it online only when script will be secure.
Hi Massimo,
Most of the users of Pritlog, including myself have been able to run the app successfully on our webhosts without security issues. As almost all webhosts have the users/groups setup correctly so that 755 permission is enough for the PHP script to write to the posts/comments folders. I think, you may need to research on the internet and find out how to setup the users/group in this way.
Are you going to leave Pritlog on your local machine server when you open it to the world? Or are you planning to move it to a free/commercial web host?
For right now, since I am focussing on getting this beta version out, I will not have the time to research the users/group setup. If you are not finding any useful info about this, do let me know after this beta is done and I will do some searching on this.
Hi Prit,
i would like to use the blog on phpwebhosting.com where one of my website is hosted. There i tried to use 755 but it doesnt work. 777 works as i said.
I think we may have to do some reading to see how this can be fixed then. I will let you know if I find anything.
You must log in to post.