Jump to content

Archived

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

mattih5

Configure.php permissions

Recommended Posts

Hi,

 

I've installed OSCommerce as per instructions, but I keep getting this error:

 

Warning: I am able to write to the configuration file: /kunden/homepages/31/d155015431/htdocs/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

I have set the permissions to 777, is this correct?

Share this post


Link to post
Share on other sites
Hi,

 

I've installed OSCommerce as per instructions, but I keep getting this error:

I have set the permissions to 777, is this correct?

 

 

Hi,

 

you must set the permissions back to 644 again then your problem is fixed.

 

greatings,

 

Hans

Share this post


Link to post
Share on other sites
Hi,

 

you must set the permissions back to 644 again then your problem is fixed.

 

greatings,

 

Hans

 

 

Thanks for you reply. I have set the permissions back to 644 but am still getting the problem.

Share this post


Link to post
Share on other sites
Thanks for you reply. I have set the permissions back to 644 but am still getting the problem.

 

 

Hi,

 

Set permission to 644

 

catalog/admin/includes/configure.php

catalog/includes/configure.php

 

greatings,

 

Hans

Share this post


Link to post
Share on other sites
Hi,

 

Set permission to 644

 

catalog/admin/includes/configure.php

catalog/includes/configure.php

 

greatings,

 

Hans

 

Still same problem even though I have changed permissions on both files, when I try to change permissions I don't get a server error so this can be ruled out.

Share this post


Link to post
Share on other sites
hi,

 

dit you pres the button on ur brouwser for renewel of the page?

 

Hans

 

 

I have the same problem. And tried changing configure.php to 444 as well as 644 and then all configure or configuration files to 444 and 644

 

No mater what it alway came back with Warning: I am able to write to the configuration file.. error

Share this post


Link to post
Share on other sites

Guys i have the same problem.

 

i get this exact error:

 

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

 

and i configured it to 644 as you said, i renew tha page a lot of times. close and reopen it.... and the error still remains there........ :-/

 

do you have any idea that can help?

Share this post


Link to post
Share on other sites

644 is ok, edit includes/application_top.php file.

 

 

// set which precautions should be checked

define('WARN_INSTALL_EXISTENCE', 'true');

define('WARN_CONFIG_WRITEABLE', 'false');

define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');

define('WARN_SESSION_AUTO_START', 'true');

define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

Share this post


Link to post
Share on other sites
644 is ok, edit includes/application_top.php file.

// set which precautions should be checked

define('WARN_INSTALL_EXISTENCE', 'true');

define('WARN_CONFIG_WRITEABLE', 'false');

define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');

define('WARN_SESSION_AUTO_START', 'true');

define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

 

Perfect! It worked great!!

Share this post


Link to post
Share on other sites
644 is ok, edit includes/application_top.php file.

// set which precautions should be checked

define('WARN_INSTALL_EXISTENCE', 'true');

define('WARN_CONFIG_WRITEABLE', 'false');

define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');

define('WARN_SESSION_AUTO_START', 'true');

define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

 

 

This solved my problem, you rule!

 

 

 

 

 

yes i just opened an account to say this

Share this post


Link to post
Share on other sites
you need to set the config file to 444. Try using the File Manager from your Hosting Control Panel - FTP doesn't always work with file permissions.

 

define('WARN_INSTALL_EXISTENCE', 'true');

define('WARN_CONFIG_WRITEABLE', 'false');

define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');

define('WARN_SESSION_AUTO_START', 'true');

define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

 

the above on hides the problem, but jasonabc is right - change permission through control panel - it works wonder !! thanks jason

Share this post


Link to post
Share on other sites
you need to set the config file to 444. Try using the File Manager from your Hosting Control Panel - FTP doesn't always work with file permissions.

 

 

I LOVE YOU PEOPLE!!!

 

 

Thank you sooooo much; this solved all my problems...for now anyway :D

Share this post


Link to post
Share on other sites
you need to set the config file to 444. Try using the File Manager from your Hosting Control Panel - FTP doesn't always work with file permissions.

 

 

Great it works with 444!

 

(In admin/includes/configure.php and includes/configure.php)

Share this post


Link to post
Share on other sites

644 is ok, edit includes/application_top.php file.

 

 

// set which precautions should be checked

define('WARN_INSTALL_EXISTENCE', 'true');

define('WARN_CONFIG_WRITEABLE', 'false');

define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');

define('WARN_SESSION_AUTO_START', 'true');

define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

 

 

Awesome!! Ur the MAN !! :)

Share this post


Link to post
Share on other sites
644 is ok

It depends on your server setup. If PHP is running as "owner" (you), 644 still allows osC to overwrite the file, so you will get the message. In that case you need 444. If PHP is running as "group" or "other/world", 644 is fine -- in either case, osC only has read-only access to the file. Read my sig > FAQs > Proper Permissions.

Share this post


Link to post
Share on other sites

Thanks for the post. very helpful. it is 444 on my server - and it worked best in the control panel file manager permissions change feature. Thanks guys!

Share this post


Link to post
Share on other sites

×