Firefox PHP

Module: Speller Pages

Posted by Maurice Makaay 
Re: Module: Speller Pages
October 28, 2009 08:22AM
Maurice,

Ok, I just checked and the tmp folder at the root of the server was set to 1777. I undid the sticky bit flag which set it to 0777. I also noticed that the directory has about 10 or so aspell_data_###### files in it, so Phorum was able to write to the directory. The files are all set to RW------- and the owner is Apache.

So thinking that maybe the caching would still work, I went ahead and tried to set it back up. When I try to set the cache folder to /tmp, I get an error stating that the directory doesnt exist. It'll let me set it to tmp (no slash), but it then fails the sanity check.

Where would I find the php.ini file so I could look at it?

Thanks
Re: Module: Speller Pages
October 28, 2009 08:26AM
Bad idea. Put back that sticky bit. You want it on a /tmp dir, trust me.

Setting to "tmp" only would work if you have a directory named "tmp" inside your Phorum directory. It really needs to be /tmp in order to find the system wide temp file directory.

With what error does the sanity check fail for you?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Speller Pages
October 28, 2009 08:32AM
I did create a tmp folder in my install directory as a test to see if I could pass the sanity check with it, which I cant.

Here's the results from the sanity check failure (which is a "Warning") with the cache directory set to ./cache-

Sanity check failed
There might be a problem in Phorum's caching system. Storing and retrieving a dummy key failed. If you experience problems with your Phorum installation, it might be because of this.

Possible solution:

As a work around, you can disable the caching facilities in the admin interface (note: this will not remove this warning; it will only keep you out of troubles by making sure that the caching system is not used). Please contact the Phorum developers to find out what the problem is.
Re: Module: Speller Pages
October 28, 2009 01:38PM
I'm afraid that this would need some step by step debugging. Did you check the PHP settings to see if safe_mode is enabled? That's always a fun one to cope with. Otherwise, the caching code and storing files in the cache directory needs some step by step testing to see what goes wrong there. It seems like files can be created (since you found some files as created by the speller pages library), but still things go wrong. Very strange.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Speller Pages
October 28, 2009 07:53PM
Maurice,

Running the phpinfo() function, I have the following entries for safe mode in the bottom section-
                        Local Value    Master Value
safe_mode               On                 Off 
safe_mode_exec_dir no value          no value 
safe_mode_gid         Off                  Off 
safe_mode_include_dir no value       no value

So does this mean I have save mode enabled? The differences in the "Local Value" & "Master Value" have me confused. I'm going to do some googling and see if I can figure out what this mean, and if it is enabled, how to go about changing it.



Edited 1 time(s). Last edit at 10/28/2009 07:53PM by Ramsrule.
Re: Module: Speller Pages
October 28, 2009 08:06PM
Ok, here's the safe mode variable assignments from my server's php.ini file-

; Safe Mode
;
safe_mode=off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
;
; Note:  If this directive is empty, PHP will let the user modify ANY
; environment variable!
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
safe_mode_protected_env_vars = LD_LIBRARY_PATH

Re: Module: Speller Pages
October 29, 2009 05:54AM
The local value is leading, so it looks like safe_mode is running for you. Check if you possibly have an .htaccess file that defines safe_mode. If you are hosting your site with a provider, then they might be overriding the safe_mode parameter from their webserver configuration.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Speller Pages
October 29, 2009 06:10AM
or you might have php settings in the virtual host config file.


Thomas Seifert
Re: Module: Speller Pages
November 03, 2009 01:14PM
There ended up being a safe mode parameter setup on my domain's PHP service. I had a check box available within my Plesk control panel that allowed me to disable it. Spell checking is now working and I pass the sanity check for the phorum cache.

Thanks again to the both of you for all of your help and patience. It was greatly appreciated and if we do end up going live with the software, we'll be sure to pass along a monetary contribution/donation.

Take care,
Troy
Re: Module: Speller Pages
November 04, 2009 02:54AM
Thanks for reporting back and good to hear that you found that switch in Plesk.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login