Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Permissions


cr41g

Recommended Posts

Hi,

 

This seems like a silly question as it has been earlier today. However I am new to osCommerce and PHP and MySQL!!!

 

I know I need to change the permissions in my config files to stop the warning message ("Warning: I am able to write to the configuration file: e:\domains\r\????????????\user\htdocs\catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.")

to 644 or 444 but where is this done, as in, do I change the actual file names to 644 or 444 or is there a line in the code I need to amend?

 

Please help, and sorry if this is really simple!

 

Thanks

Link to comment
Share on other sites

By what means do you interface with your server? If you use a hosting service control panel, look for "Manage Files" or something similar. You will typically place a check mark next to file that you wish to perform a file operation on - in this case "Manage Permissions" or something similar. Giving only the file owner read and write permissions (only the owner will be able to delete this file) is equivalent to the '6' in the first position of the argument to the command that will be performed by your control panel. To give group members and all others read only permissions are the second and third arguments, 4 and 4.

 

If you use FTP, the command would be: chmod 644 your_file_name

For ALL problems, please review this link first -> osCommerce Knowledge Base

Link to comment
Share on other sites

Many ftp programs let you right click the file and change the permissions. You might want to try FileZilla ftp client. It runs on Windows and Linux and is to easy to use and its free.

 

Tim

Link to comment
Share on other sites

Hi all,

 

I need your help from this forum, I am new user for OS Commerce.

I have finished and successful install OS Commerce but i have the problem

when access my domain.

On the top apllication see the sentences :

 

" Warning: I am able to write to the configuration file: /home/marlina/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. "

 

Follow up that warning, i have change the file: /home/marlina/public_html/includes/configure.php

but the warning still come when the access my domain.

 

Please help and share the solutions to this forum.

Thanks a lot.

 

Budi

Link to comment
Share on other sites

Hi all,

 

I need your help from this forum, I am new user for OS Commerce.

I have finished and successful install OS Commerce but i have the problem

when access my domain.

On the top apllication see the sentences :

 

" Warning: I am able to write to the configuration file: /home/marlina/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. "

 

Follow up that warning, i have change the file: /home/marlina/public_html/includes/configure.php

but the warning still come when the access my domain.

 

Please help and share the solutions to this forum.

Thanks a lot.

 

Budi

 

Did the permissions on includes/configure.php change?

Link to comment
Share on other sites

Did the permissions on includes/configure.php change?

 

I already change CHMOD for include\configure.php

and i try one by one chnage from 777 until 444,

the message still rise up on the top.

 

I have ask to the hosting services to format my domain,

and then i try step by step install use fantatisco in Control panel

in web hosting. The message still rise up.

 

I don't know where is the problem. I still confuse.

any advise to this forum ?

Link to comment
Share on other sites

I already change CHMOD for include\configure.php

and i try one by one chnage from 777 until 444,

the message still rise up on the top.

 

I have ask to the hosting services to format my domain,

and then i try step by step install use fantatisco in Control panel

in web hosting. The message still rise up.

 

I don't know where is the problem. I still confuse.

any advise to this forum ?

 

some settings at some web hosts do not let php to recognize the permissions are set correctly for files. even if you set the permission correct through ftp or any other means, you still get the error.

 

what you should do is to go to application_top.php in includes folder under your store folder, and edit the line that says

 

define('WARN_CONFIG_WRITEABLE', 'true');

 

to

 

define('WARN_CONFIG_WRITEABLE', 'false');

 

and save. that should suppress the dormant error message. its at the bottom of the file.

Link to comment
Share on other sites

I already change CHMOD for include\configure.php

and i try one by one chnage from 777 until 444,

the message still rise up on the top.

 

I have ask to the hosting services to format my domain,

and then i try step by step install use fantatisco in Control panel

in web hosting. The message still rise up.

 

I don't know where is the problem. I still confuse.

any advise to this forum ?

 

correct permissions should be 644 btw. dont set it any lower, for some webservers may not let you change it to a higher permission if you set it too low and give a permission number that says owner not to be able to change permissions.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...