Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

warning-able to write to configuration file...


hpn

Recommended Posts

Hi!

I am a novis on all kind of php-programming and webhosting problems. I have installed ocCommerce on a web host that runs on an Apache-Linux server. Installation it self was smooth. But then, as many others, I get this message:

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 198943 is not allowed to access owned by uid 0 in /customers/hpnilsson.se/hpnilsson.se/httpd.www/Imagering/catalog/includes/functions/sessions.php on line 148

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /customers/hpnilsson.se/hpnilsson.se/httpd.www/Imagering/catalog/includes/functions/sessions.php:148) in /customers/hpnilsson.se/hpnilsson.se/httpd.www/Imagering/catalog/includes/functions/sessions.php on line 97

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /customers/hpnilsson.se/hpnilsson.se/httpd.www/Imagering/catalog/includes/functions/sessions.php:148) in /customers/hpnilsson.se/hpnilsson.se/httpd.www/Imagering/catalog/includes/functions/sessions.php on line 97

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

 

The last warning is red- I tried to change the chmod by my WS-FTP program to 644 or 444 on the configure files - doesn't work. Then I wrote a small script by advice from my web host-support:

<?php

chmod("configure.php", 0644);

?>

I put the script in a php document, placed it in the related folders (i.e. catalog/includes and catalog/admin/includes), and run it from my browser - doesn't work.

 

I also tried to write

php_flag register_globals 0

in the .htaccess-file in myweb/catalog/

 

As I am stupid on those matters, maybe I don?t know how to write the syntax correctly. Could anyone help me with a precise example, please?

 

At my webhost-account I had to set register_global ON to reach the webpage, but I would rather like to have it OFF as I run several other webpages on the same domain.

/hpn

Link to comment
Share on other sites

I had no trouble using ws_pro to change the Folder/File Chmod. Just right click on the folder/file go to properties and type in the num required.. It should show you a box with three columns and three lines of check boxes. As you make changes to the check boxes the number should change. If your server has different protocols then the num will be different. editable will be 775 or 777.

 

I think the access problems are because you changed the .htaccess - I'm no expert on this but its no what i would do...

 

Anyway hope this helps.

 

Micheal

 

Hi!

I am a novis on all kind of php-programming and webhosting problems. I have installed ocCommerce on a web host that runs on an Apache-Linux server. Installation it self was smooth. But then, as many others, I get this message:

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 198943 is not allowed to access owned by uid 0 in /customers/hpnilsson.se/hpnilsson.se/httpd.www/Imagering/catalog/includes/functions/sessions.php on line 148

Link to comment
Share on other sites

Thanks for the answer.

I wish it was that simple. As I understand changing the chmod by ws_ftp is only working on a unix server. I tryed all kind of different combinations.

 

Anyway let me simplifie my question:

If I got register_global OFF I get this message when I try to reach my osCommerce: Server Requirement Error: register_globals is disabled in your PHP configuration.

If I set register_global ON I get the red message: Warning I am able to write to configure.php

 

So I am kind of stuck here...

hp

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...