Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default safe mode question

    I have noticed that in Linux server PHP settings that the safe mode is set to off, as it should be. However, when I look at the version information in the Zen Cart admin it shows that the safe mode is On. Can someone explain how that could be?

    And yes, I know I should upgrade. I have tried but with no success. I WILL keep trying. But until then if someone could explain why the safe mode shows a different setting I would be most grateful.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: safe mode question

    It's simply responding to whatever PHP replies with this request: ini_get('safe_mode')

    What version of PHP are you using?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: safe mode question

    Just for some additional info, I have looked at all of the code, including the .htaccess files, and find nowhere that the value for safe mode was being changed (using php_value). Also, if the safe mode was truly set to On, then I would think that I would get a message to that affect when I entered the admin . Seems strange.

  4. #4
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: safe mode question

    PHP version is 5.3.23. Just went through the process of changing all of the deprecated ereg family functions. Also had to change & new to just new in the functions_email.php (I think it was there).

  5. #5
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: safe mode question

    Is it possible, at the server, to have different safe mode settings for the server and for a local user ? If so, perhaps I should contact the server admin and ask if they have done this.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: safe mode question

    Quote Originally Posted by JohnBoyCR View Post
    PHP version is 5.3.23. Just went through the process of changing all of the deprecated ereg family functions. Also had to change & new to just new in the functions_email.php (I think it was there).
    As of PHP 5.3.0, PHP safe_mode is deprecated: http://www.php.net/manual/en/features.safe-mode.php
    And thus the value displayed is moot, that is: it is meaningless.

    Quote Originally Posted by JohnBoyCR View Post
    Is it possible, at the server, to have different safe mode settings for the server and for a local user ?
    And, yes, while your php.ini files might have a value set in them (in your custom php.ini or your server's master php.ini), the value is meaningless in PHP 5.3.0+

    Modern versions of Zen Cart detect the PHP version and skip checking and displaying the value of safe_mode if PHP is greater than 5.3.0
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: safe mode question

    Thank you so much DrByte. I will stop worrying this issue and get back to seeing if I can get 1.5.1 to work.
    I have incorporated all of the 1.3.8a security upgrades and am using the 1.3.9 .htaccess files, so hopefully
    we are a bit more secure than a standard 1.3.8a site. Thanks again for your time and answers.

 

 

Similar Threads

  1. Safe Mode
    By dannyd in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 2 Oct 2007, 09:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg