Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No Luck with changing permission


licoriceandbella

Recommended Posts

Hi everyone,

 

I was having problems with a warning at the top of the page. Here is the thread.

http://www.oscommerce.com/forums/index.php?showtopic=325263

 

I have tried changing the permissions to 644,755,440,400 and 444. I rang my host and they said that 644 and 755 should work and it looks o.k to them but I still come up with the error message. Is there anything else I can do?

Link to comment
Share on other sites

Hi everyone,

 

I was having problems with a warning at the top of the page. Here is the thread.

http://www.oscommerce.com/forums/index.php?showtopic=325263

 

I have tried changing the permissions to 644,755,440,400 and 444. I rang my host and they said that 644 and 755 should work and it looks o.k to them but I still come up with the error message. Is there anything else I can do?

what file are you changing permissions on?

Link to comment
Share on other sites

I am changing this file home/kid49630/public_html/catalog/includes/configure.php This is the file it asks me to change

Correct file, now are you changing them via your web hosts control panel file manager?

Link to comment
Share on other sites

Yes I am changing them in my file manager. I had tried changing them in Smartftp but read on here it was unreliable so I did it through my control panel/file manager

Sounds like everything is by the book. Maybe your browsers cache needs to be cleared.

Link to comment
Share on other sites

O.k I went through and tried to set the permissions to the one file. I tried 444,400,440,644,755,744. Is there any other numbers I could try? Or anything else I could try? I am finding it very frustrating but I am determined to get this.

That's about it. Your host said 644 so that should have been ok.

 

Are you are sure that the file permissions have actually changed?

Link to comment
Share on other sites

I went back into the file manager and checked and it says 644 so I am sure it has changed. I have also cleared the cache/history everything to be sure still to no avail. :( It has the same warning on my friends computer so I don't think it's my browser.

You can kill the test.

 

In catalog/includes/header.php

comment out

// check if the configure.php file is writeable

if (WARN_CONFIG_WRITEABLE == 'true') {

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

}

}

 

commenting out the above is a solution to stop the warning message. It is not a solution to why osc thinks the file is writable.

Link to comment
Share on other sites

Sorry for asking but I don't know how to comment out I am a complete newbie. Can't you tell lol

Just put

//

at the start of each line.

Link to comment
Share on other sites

Try creating a new file, name it chmod.php and put the following into it

<?php 
chmod('catalog/includes/configure.php', 0444); 
?>

Then upload it to your catalog directory and visit it in a web browser - http://YOUR_DOMAIN_.con/catalog/chmod.php

 

Then go to your site, http://YOUR_DOMAIN_.con/catalog/ and refresh the page. That should do it. If not, your host needs to get involved since there would appear to be a problem on the server at that point.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

GRRRR I did that and the areas went grey instead of colours but then I checked the website and the warning is still there. I am assuming because the areas went grey I did it right.

Do what Jack said.

 

When you edited the file,

 

so it looked like

 

// check if the configure.php file is writeable

// if (WARN_CONFIG_WRITEABLE == 'true') {

// if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

// $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

// }

// }

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...