Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

/includes/configure.php won't save CHMOD 444


Webtytte

Recommended Posts

Posted

I just installed osCommerce and I am still getting this error:

 

"Warning: I am able to write to the configuration file: /customers/2ofus.dk/2ofus.dk/httpd.www/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file."

 

I have set the configure.php in /catalog/includes/ to 644 and error still shows. I then tried setting it to 444, but it won't save. It keeps popping back to 644.

 

I have tried CuteFTP, WS_FTP Pro, Total Commander 32 and my browser IE 6.0 - nothing works. The online filemanager at my web host doesn't support file CHMOD (www.b-one.net doesn't use cpanel)

 

my host is running Linux srv25 2.6.12.6-vs2.0 #1 SMP if that means anything to the above problem I have.

 

Any help would be MUCH appreciated.

 

Regards

Webtytte

Posted
I just installed osCommerce and I am still getting this error:

 

"Warning: I am able to write to the configuration file: /customers/2ofus.dk/2ofus.dk/httpd.www/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file."

 

I have set the configure.php in /catalog/includes/ to 644 and error still shows. I then tried setting it to 444, but it won't save. It keeps popping back to 644.

 

I have tried CuteFTP, WS_FTP Pro, Total Commander 32 and my browser IE 6.0 - nothing works. The online filemanager at my web host doesn't support file CHMOD (www.b-one.net doesn't use cpanel)

 

my host is running Linux srv25 2.6.12.6-vs2.0 #1 SMP if that means anything to the above problem I have.

 

Any help would be MUCH appreciated.

 

Regards

Webtytte

 

You need to contact your hosting company. If they cannot help you fix it, then you know the next step....

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Posted
You need to contact your hosting company. If they cannot help you fix it, then you know the next step....

 

Be well,

Tina

 

Thanks for the quick reply!

I contacted my web provider and was told to run the following script:

 

<?php

$filename = "b-one.php";

chmod("/customers/2ofus.dk/2ofus.dk/httpd.www/$filename", 0444);

echo "chmod for $filename was changed";

?>

 

I have modified it to this:

<?php

$filename = "configure.php";

chmod("/customers/2ofus.dk/2ofus.dk/httpd.www/catalog/includes/$filename", 0444);

echo "chmod for $filename was changed";

?>

 

I then saved it to a file called change_chmod.php in my root dir and tried calling it through the browser adress bar, but I get an error 403. Can you tell me what I am doing wrong? ( I am no coding expert). Is there some other way to run the script?

 

Regards

Webtytte

Posted
Thanks for the quick reply!

I contacted my web provider and was told to run the following script:

 

<?php

$filename = "b-one.php";

chmod("/customers/2ofus.dk/2ofus.dk/httpd.www/$filename", 0444);

echo "chmod for $filename was changed";

?>

 

I have modified it to this:

<?php

$filename = "configure.php";

chmod("/customers/2ofus.dk/2ofus.dk/httpd.www/catalog/includes/$filename", 0444);

echo "chmod for $filename was changed";

?>

 

I then saved it to a file called change_chmod.php in my root dir and tried calling it through the browser adress bar, but I get an error 403. Can you tell me what I am doing wrong? ( I am no coding expert). Is there some other way to run the script?

 

Regards

Webtytte

 

403 is a permissions error, you are being guided in circles there. You shouldn't have to go through this sort of trouble every time you want to change permissions on a file.

 

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Posted
403 is a permissions error, you are being guided in circles there. You shouldn't have to go through this sort of trouble every time you want to change permissions on a file.

 

Tina

 

Ok, I got it to work!

 

had to rename the file to chmod.php, place it in root dir and call it from my browser. So for future reference, this is the solution if you cannot change CHMOD on /includes/configure.php through an FTP-client:

 

---------

1. make a file called chmod.php, with this code inside it:

 

<?

$filename = "configure.php";

chmod("/customers/yoursite.com/yoursite.com/httpd.www/catalog/includes/$filename", 0444);

echo "chmod for $filename was changed";

?>

 

2. upload the file to your root dir

3. run the file from your browser with www.yoursite.com/chmod.php

---------

 

Thanks for quick replies tina_boots! Awsome service!

 

Regards

Webtytte

Posted
Ok, I got it to work!

 

had to rename the file to chmod.php, place it in root dir and call it from my browser. So for future reference, this is the solution if you cannot change CHMOD on /includes/configure.php through an FTP-client:

 

---------

1. make a file called chmod.php, with this code inside it:

 

<?

$filename = "configure.php";

chmod("/customers/yoursite.com/yoursite.com/httpd.www/catalog/includes/$filename", 0444);

echo "chmod for $filename was changed";

?>

 

2. upload the file to your root dir

3. run the file from your browser with www.yoursite.com/chmod.php

---------

 

Thanks for quick replies tina_boots! Awsome service!

 

Regards

Webtytte

 

 

Hello

 

i have this problem with my webhost (www.free.fr)

 

your solution is not active in my webhost or i have bad understand.

 

help me , i have a problem of security on my store ...

 

thank you

:thumbsup:

Posted
Hello

 

i have this problem with my webhost (www.free.fr)

 

your solution is not active in my webhost or i have bad understand.

 

help me , i have a problem of security on my store ...

 

thank you

:thumbsup:

 

Hi, my solution points to 1) making a file in notepad for example; 2) Upload file to root dir via FTP-client or similiar; 3) activate the php-file...

 

Did you try the above solution I typed?

 

What is your web site url? and where is the file you need to CHMOD placed? Give me these info and I will show you the exact code to make in the php-file.

 

Please specify your problem if the above isn't helping your need :)

 

Regards

Webtytte

Posted

There's a much simpler script in this post...

 

http://www.oscommerce.com/forums/index.php?sho...06entry343806

 

Create a php file named "secure.php" or whatever. Put the following code in it:

 

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

 

Upload this file to your server in the Catalog folder. Then run it in your browser: http://www.yourwebsite.com/catalog/secure.php

 

Nothing will show on the screen, but the file will run and will set the permissions.

 

If you add var_dump like so, you get a little feedback...

 

var_dump (chmod('includes/configure.php', 0444));

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

I tried all of the things listed above but still get the error message about the includes/confige file.

 

I am using Yahoo and I used SmartFTP to upload the files.

 

I keep getting "waiting to retry" messages on several .htaccess and .cvsignore

 

Any tips will be appreciated. I have looked and looke to try to figure this out.

 

Thanks so much,

JenT

Posted
I tried all of the things listed above but still get the error message about the includes/confige file.

 

I am using Yahoo and I used SmartFTP to upload the files.

 

I keep getting "waiting to retry" messages on several .htaccess and .cvsignore

 

Any tips will be appreciated. I have looked and looke to try to figure this out.

 

Thanks so much,

JenT

 

I am using Yahoo too. I tried the script provided by AlanR and I created the file through the file manager at the web control panel. and it worked. you may give it a try, good luck! :)

Posted

I have this several times and all it takes is a simple file like. Create a file in Windows NotePad. Call it Secure.php. The contents of the file is as follows:

--------------------------------------------------------------------

<?php

 

/* Secure.php, etc and your comments.....

 

*/

 

chmod('includes/configure.php', 0444);

//chmod('pub', 0777); //This is required for automatic file downloads

//chmod('download', 0755);

?>

 

--------------------------------------------------------------------------

 

The program you require is within the dotted lines. It must be written in binary text within Note pad or a suitable IDE. Not a word process.

I have the two extra lines for the 'pub' and 'download' directories, in case you intend to use them for downloading files. At this moment they are ineffective. For them to work you first have to remove the '//' in front of the lines.

 

Once this file is written, you can save it in the CATALOG or ROOT directory of your site.

 

Once it's in the your site, find your site on the web by using http://www.yoursite/secure.php. You will see a blank screen and when you check the attributes of the relevant files and directories, low and behold their attributes have changed.

I have done this procedure many times and it always works.

Posted
I am using Yahoo too

 

You can't use any files which begin with a period (dot) with Yahoo - they don't allow them. Also, I saw a post from someone on these forums yesterday where Yahoo Support replied that their services did not support osCommerce.

 

Vger

  • 1 year later...

Archived

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

×
×
  • Create New...