Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OHH what have I done ?


Melange

Recommended Posts

Posted

In my Cpanel I changed some permissions last night to edit some things.. but I am sure I changed the permissions back to the way they were.. but this morning.. I can't log into the Oc admin area.. this is what I get in my browser

 

Forbidden

You don't have permission to access / on this server.

 

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

 

 

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

 

Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/4.4.8 Server at dirtyankletrading.com Port 80

 

I then went to look at my web site by typing in the address http://dirtyankletrading.com and I am getting that same message trying to look at my web site ....

OMG what have I done ??

 

(( html noob so please be kind using techincal terms ))

She Who Controls The Spice .... Controls The Universe

Posted

Hi

 

try resetting most to 0755 but not configure.php files

 

admin/includes/configure.php and includes/configure.php should be like 0644

Posted
Hi

 

try resetting most to 0755 but not configure.php files

 

admin/includes/configure.php and includes/configure.php should be like 0644

 

 

Thank you I now have access to my OsC Admin area Thanks.. But now I am getting this when I try to look at my site on the web. Any ideas on how to fix this ??

 

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/dirtyank/public_html/index.php on line 13

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/dirtyank/public_html/index.php on line 13

 

Warning: main(includes/application_top.php) [function.main]: failed to open stream: Permission denied in /home/dirtyank/public_html/index.php on line 13

 

Fatal error: main() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dirtyank/public_html/index.php on line 13

She Who Controls The Spice .... Controls The Universe

Posted

make sure to give 0755 permission (read permission at least) to 'includes/application_top.php'

Posted

Hi

 

it also looks like you need to 0777 the images folder and poss all in it?

Posted

Please don't take any notice of the posts from West One Hosting.

 

Files, except for the two configure.php files, should have permissions of 644 (no higher than that).

 

Permissions for the two configure.php files should be either 644, 444 or 400, but which of these is correct for you depends upon your hosting. Try 644, then 444, then 400 until you get rid of the security warning.

 

Folders should have permissions no higher than 755. 777 is "Full Permissions" and a security risk (Read, Write and Execute for everrybody). Having said that some hosts do require you use 777 for the 'images' folder, but not the image files inside it.

 

If your hosting company requires that your folders have permissions of 777 in order for your website to work then change hosts - because your website WILL get hacked.

 

Vger

Posted
Please don't take any notice of the posts from West One Hosting.

 

Files, except for the two configure.php files, should have permissions of 644 (no higher than that).

 

Permissions for the two configure.php files should be either 644, 444 or 400, but which of these is correct for you depends upon your hosting. Try 644, then 444, then 400 until you get rid of the security warning.

 

Folders should have permissions no higher than 755. 777 is "Full Permissions" and a security risk (Read, Write and Execute for everrybody). Having said that some hosts do require you use 777 for the 'images' folder, but not the image files inside it.

 

If your hosting company requires that your folders have permissions of 777 in order for your website to work then change hosts - because your website WILL get hacked.

 

Vger

 

 

Hi

 

get you info right before you post.

 

 

try resetting most to 0755 but not configure.php files

 

admin/includes/configure.php and includes/configure.php should be like 0644

 

it also looks like you need to 0777 the images folder and poss all in it?

 

 

this is the!!!!!!!!!!!!!!!!! same!!!!!!!!!!!!! as what you are posting!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Posted
Hi

 

get you info right before you post.

 

 

 

 

 

this is the!!!!!!!!!!!!!!!!! same!!!!!!!!!!!!! as what you are posting!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

I have checked my 'images' folder and I find that the folder is set to 777 BUT the images are set at 644, maybe this is what Vger meant.

Posted
try resetting most to 0755 but not configure.php files

 

You were talking about setting files with permissions of 755 - which is total nonsense.

 

looks like you need to 0777 the images folder and poss all in it?

 

Yes, the poster may have to make the images folder 777, although it's not to be recommended. But there's no reason for making image files 777.

 

*********************

 

I have seen many of your recent posts and have held back criticising until now, even though I have had to correct other bad advice you have given.

 

But someone needs to draw attention to your lamentable lack of knowledge of osCommerce. At best your advice is misleading or irrelevant, and at worst it is downright dangerous to follow.

 

*********************

 

All of those who can be classed as "regulars" or "old timers" here do welcome new people whose aim is to try and help new users to osCommerce - but the magic word is "help" and you're not fulfilling that role.

 

You appear to be more interested in asking people to PM you with their problems, advertising your website or offering free hosting - all of which are against forum rules.

 

Vger

Posted
You were talking about setting files with permissions of 755 - which is total nonsense.

 

 

 

Yes, the poster may have to make the images folder 777, although it's not to be recommended. But there's no reason for making image files 777.

 

*********************

 

I have seen many of your recent posts and have held back criticising until now, even though I have had to correct other bad advice you have given.

 

But someone needs to draw attention to your lamentable lack of knowledge of osCommerce. At best your advice is misleading or irrelevant, and at worst it is downright dangerous to follow.

 

*********************

 

All of those who can be classed as "regulars" or "old timers" here do welcome new people whose aim is to try and help new users to osCommerce - but the magic word is "help" and you're not fulfilling that role.

 

You appear to be more interested in asking people to PM you with their problems, advertising your website or offering free hosting - all of which are against forum rules.

 

Vger

 

With due respect, please see what is said not what yu think is said, before you came in I was discussing FOLDERS with this person, not files. So before you say "rubbish", start and the beginning of the discussions.

 

You may have been about a long time, in fact you gave me some incorrect advice about 4 years ago, asked me to pm you and then told me my host was rubbish and you offered a better and more supported package. People who livein glass houses shouldn't throw stones.

Posted

Apart from your completely incorrect advice do you think you can tidy up your English Grammar, because I sometimes have a hard time making sense of what it is you are trying to say. I'm sure I'm not the only one.

 

start and the beginning of the discussions.
not what yu think is said
get you info right before you post
this is the same as what you are posting

 

Suggesting that people PM you is against forum rules, and if I did that then I was wrong and I would have had a warning for it from the Moderators.

 

I do sometimes warn people against using hosts, such as Fasthosts, where the hosting is not suitable for running osCommerce websites.

 

None of that alters the fact that your advice is often confusing and mostly wrong.

 

You would be doing people a favour if you stopped posting until such time as you can offer sound advice.

 

Vger

Posted

you said "You were talking about setting files with permissions of 755 - which is total nonsense.

Yes, the poster may have to make the images folder 777, although it's not to be recommended. But there's no reason for making image files 777."

 

But I said image folders " it also looks like you need to 0777 the images folder and poss all in it?" As we had only been discussing folders, there may have been image folders inside the main folder. You believe I was saying files, but on this occassion you are mistaken.

 

I admit I sometimes make typo's etc, I am sorry but I am dyslexic, but before you answer something nasty about that, it is proven that dyslexic people have a talent for IT coding and design work.

Posted

Oh My I am so sorry to have started a fight :(.. But thank you all . for the information.. I got my problem fixed and learned alot in the process..

 

How my problem started was I was trying to remove the language and currencies boxes from my web site.. I ask this question on forms and was directed to post that I really didn't understand.....

 

((5. … Remove the ??? box from the left / right side?

Go to catalog/includes/column_left.php OR column_right.php and put // in front of the line with the box name that you want to remove.

 

First off I have looked in my Cpanel and my admin area and I can not find anything that starts off with Catalog but I did find includes and the correct column that I want to remove the boxes from .. BUT I tried putting the // in the front of the line that showes the languages and currencies and it didn't work.. I did not know if I needed to make this change in the cpanel OR the admin area ( as I found includes/column_right.php ) in both areas and I do not know just where I need to put the // in at..

 

this is the place I found .../home/dirtyank/public_html//includes includes

 

Filename: column_right.php

 

 

require(DIR_WS_BOXES . 'reviews.php');

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

?>

My question is .. is this the correct section or not and if not can someone tell me the path and Just where in this script I need to put the //.. and also which area so I do this at ? in the admin or the Cpanel.. to have these 2 boxes removed from my site... Like I said the only catalog I found was the one when I click it , it opens up the place where my items are stored.. GOD I am so confused lol.. I will be thankful for any help, I have been trying to remove those damn boxes for over a week now... Thank you

She Who Controls The Spice .... Controls The Universe

Posted

//if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

//include(DIR_WS_BOXES . 'languages.php');

//include(DIR_WS_BOXES . 'currencies.php');

//}

 

Vger

Posted
//if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

//include(DIR_WS_BOXES . 'languages.php');

//include(DIR_WS_BOXES . 'currencies.php');

//}

 

Vger

 

Thank you !!!!!! do I change this in the Cpanel or the admin ? I am sorry I am such a pain but I do not know

She Who Controls The Spice .... Controls The Universe

Posted
Thank you !!!!!! do I change this in the Cpanel or the admin ? I am sorry I am such a pain but I do not know

 

Hi

 

If when you say "admin" do you mean your shop admin ? If so, then no.

You would use your cPanel >> File Manager

 

Hope this helps

 

ps. it may be worth having a look at Beyond Compare 2 from: http://www.scootersoftware.com

as I use it a lot to do small amounts of code editing.

  • 3 weeks later...
Posted
Folders should have permissions no higher than 755. 777 is "Full Permissions" and a security risk (Read, Write and Execute for everrybody). Having said that some hosts do require you use 777 for the 'images' folder, but not the image files inside it.

 

If your hosting company requires that your folders have permissions of 777 in order for your website to work then change hosts - because your website WILL get hacked!

 

I came across this post while searching for an Admin Access problem and I was wondering....

 

In /admin/includes/classes/upload.php it has this:

 

function upload($file = '', $destination = '', $permissions = '777', $extensions = '')

 

Doesn't that mean I need my permissons set to 777 - I did this thinking that might have been my access problem but now I don't want to get Hacked!!! Should I put them back to something else?

 

My problem was :

 

// self destruct

$this = null;

 

Change to

 

// self destruct

// $this = null;

unset($this);

 

This is usually the result of a server upgrade from PHP4.x to PHP5.x

Archived

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

×
×
  • Create New...