Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: slnurajar on December 23, 2008, 12:06:07 PM

Title: What is safe mode?
Post by: slnurajar on December 23, 2008, 12:06:07 PM
Hi i am running smf2.0 beta 4 and many users here spoke about safe mode, i got one doubt whether if safe mode is on , i cant install mods r if  safe mode off , i cant install mods , can any one say what real fact
Title: Re: What is safe mode?
Post by: Oldiesmann on December 23, 2008, 12:32:15 PM
Safe Mode is a PHP setting that prevents you from accessing files and folders that aren't owned by the same user as the script trying to access the file/folder. This causes problems when PHP is running as an Apache module because any files created by PHP would be owned by the Apache user, and therefore wouldn't be able to access any files or folders created by your FTP user account. This is why you are unable to install packages with Safe Mode enabled - any file or folder created by PHP will be inaccessible to SMF unless those files are also owned by Apache (which in most cases they aren't).
Title: Re: What is safe mode?
Post by: slnurajar on December 23, 2008, 01:58:53 PM
can i know safe mode will affect installing packages in smf 2.0 beta 4 , becoz i am getting errors when installing the ad management
Title: Re: What is safe mode?
Post by: Oldiesmann on December 23, 2008, 02:02:02 PM
What specific errors are you getting?
Title: Re: What is safe mode?
Post by: slnurajar on December 23, 2008, 02:06:02 PM
Quote
!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Install Actions
Installations actions for "Ad Managment":
Installing this package will perform the following actions:
      Type    Action    Description
   1.    Execute Code    install.php    
   2.    Execute Modification    install.xml    Modification parse error
   3.    Execute Modification    install.xml    Modification parse error
   4.    Extract File    ./Sources/Ads.php    
   5.    Extract File    ./Sources/LoadAds.php    
   6.    Extract File    ./Themes/default/Ads.template.php    
   7.    Extract File    ./Themes/default/languages/Ads.english.php    
   8.    Extract File    ./Themes/default/languages/Ads.english-utf8.php    
Title: Re: What is safe mode?
Post by: Oldiesmann on December 23, 2008, 02:07:34 PM
I just replied to your other topic about the errors, so let's keep replies there. I don't think Safe Mode is an issue in this case because SMF was able to extract the files and read them.
Title: Re: What is safe mode?
Post by: slnurajar on December 23, 2008, 02:08:57 PM
k, please help me , i am trying to solve for three no solutions upto now