This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

can't change file permission
#1

Hi!

I install script but i have one problem.

Can't change the permissions of connect.php to 444.

I try to switch to 444 but still remains 644, and I have this message on the front page when you login to the admin pages:

The database connection file is writable.

This is an important security step.

To protect this file, please follow these instructions:

1. Load your FTP software (e.g. FileZilla)

2. Navigate to the following file:
http://www.domain.com/comments/includes/db/connect.php

3. Right-click on the file and select permissions (or a similar word)

4. Enter the number 444
(you may need to use your host's control panel or file manager to do this)
(if on localhost simply right-click on the file, click properties and select read-only)

5. Then refresh this page.


pleas help!

thx!
Reply
#2

Hi,

Some servers won't allow 444 permissions to be set by FTP.

As suggested in step 4, try opening your site control panel (e.g. cPanel) where a feature such as 'File Manager' should be available. Using that, navigate to the file and set the 444 permission.

Have you completed the interview?
Reply
#3

thx man,

now is ok.

I have one more qusetion.

Can I use this script with fusionnews script? I use fusionnews for add news and i wont use this script for add comments.

It is posible?

thx
Reply
#4

I'm not familiar with that script so to be honest I'm not sure.

The next version of Commentics, v1.1 which will be released next week, will be a lot more integratable so if it doesn't work with the current script then I'm sure you won't have any problems with the next version.

Have you completed the interview?
Reply
#5

ok,

thx for your help.

I verry happy for I hear that.

best wishes for your future work!
Reply
#6

but i can use the my hosting server controll pannel still it can not change the permission 444 of the connect.php so please tell me what can i do. thanks & Regards
Reply
#7

What hosting control panel do you use? In what way is it not working?

Have you tried changing the permissions using FTP? E.g. FileZilla.

If you can't enter a numeric value, just make sure that no write or execute permissions are set, only read.

You can always ask your host for help. They'll know exactly how to do this.


Attached Files Thumbnail(s)
   

Have you completed the interview?
Reply
#8

Dear
Thanks for Reply. i will change permission through the FTP which you mention and also use the other FTP. But still it does not change the permission even i go to my host controll panel and i change the permission but no change. my hosting panel is HnDServers Dotnet Panel. now i ask for the help of my host. Again thanks for reply
Thanks and Regards
Reply
#9

I have the same problem. I cannot change to 444 because my webhost does not allow to do so. So what can I do?
Reply
#10

Someone on the webhost forum told me to load a file with the code

PHP Code:
<?php
chmod
( "connect.php", 0444 );
?>

in order to set connect.php to 444. This worked!

However, I also get the following warning on several occasions:

mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /comments/includes/classes/settings.php on line 36

What does it mean and how to correct it?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
27-May-2011, 07:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)