iFolder 3.8.3 error in windows 7

Here’s what is now working for me.
OpenSuse 11.3 x64 and iFolder 3.8.0.3 server / client, openLDAP, Windows 7 x64.

To re-summarize my problem, I was able to use the web interface (both /admin and /ifolder) without trouble. I could also use the 32 bit client with 32 bit Win XP. I could not use the client with Windows 7 (x64 or 32).

The solution was to:
1) Issue an SSL cert that referenced the server’s FQDN.
I.E. gensslcert –n www.mydomain.com
2) Configure simias for this FQDN.
I.E. simias-server-setup -> https://www.mydomain.com/simias10 -> both the public and private interface
3) Edit /etc/apache2/vhosts.d/vhosts-ssl.conf
uncomment and edit the ServerName line to read as below
ServerName www.mydomain.com

iFolder night update version repo for openSUSE 11.3
[network_ifolder_client_snapshot]
name=iFolder Client Daily Builds (openSUSE_11.3)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/network:/ifolder:/client_snapshot/openSUSE_11.3/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/network:/ifolder:/client_snapshot/openSUSE_11.3/repodata/repomd.xml.key
enabled=1

[network_ifolder_server_snapshot]
name=iFolder Server Daily Builds (openSUSE_11.3)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/network:/ifolder:/server_snapshot/openSUSE_11.3/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/network:/ifolder:/server_snapshot/openSUSE_11.3/repodata/repomd.xml.key
enabled=1

Share

Enable File Logging in Windows

  1. Open Local Security Policy => Local Policies => Audit Policy
  2. Change the “Audit object access” to “Success” checked
    If you want to log every event, you can also checked the failure.
  3. Go to the folder which need logging
  4. Go to folder permission => Auditing
  5. Add “Every One” with following setting
    • List folder / read data
    • Create files / write data
    • Create folders / append data
    • Delete subfolders and files
    • Delete
  6. Finally check your event log to get the result.
Share

Best Encode for PHP5 and support symfony

In symfony, encoded classes excluded from config_autoload_yml.php. Because when symfony found the classes and read the contents, symfony can not find the words that contain abstract class|interface, final class|interface, class.

Following is the solution to make it work.

1. create config_handlers.yml in sf_root_dir/config folder and add

config/autoload.yml:
  class:    myAutoloadConfigHandler

2. add myAutoloadConfigHandler.class.php to sf_root_dir/config

3. change ProjectConfiguration.class.php and add myAutoloadConfigHandler.class.php

public function setup()
{
require_once(sfConfig::get('sf_root_dir').'/config/myAutoloadConfigHandler.class.php');

4. using ionCude Encoder to encode the files and add comment "class sfClassName" to the encode file.
Example: myTools.class.php

// class myTools
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file '.__FILE__.' requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
?>
4+oV5Djj/RjxxiMy5hHec2J9iSWGrP53JymQThUitFyI+rDD9TZc2z8BXRg+rQoi2zlgyd1jv271
LGLiuMCfZM9Wyo97ZTp208rr6ekINq15uTrYKONgK8dPivUR3GzHKXjbKRNv+toLg2bgkSIlKTzC
3KaXVdeReVGarLrmVxaC7L3pJ4Lt1Nex/HVwg3foRqvLGrv0vowUiL1k4uv87wuEJhST20s/KQ6M
8JwWXKksGBPbJ3cDMQuODDnHqNo//6G0VT4kAb4NP/LU9ejObXbOZx25YnWCgS1kyeeANpe++7Tv
rGwE4smPZpXuQawA5zZR2esxUiftfJXP4Pc0QmUUJRwcQhf2brOmWtb9JchulRNIRLgUxzmcYXk3
2z4KuvH3XkH/r2MnNXwiL1T172aBUF65ScDqVF3gZqJX1sOqvDwfqcVOPTA7PV1WUcGFbM58y0Cs

5. Now your files will be able auto load by the symfony.

6. Some link for ionCube
* The ionCube Home page
ioncube.com
* The Standalone Encoder

ionCube Standalone PHP Encoder

* The online Encoder

ionCube Online PHP Encoder

7. Finally, I have write a task to encode the files, if you need the task file, please send a email to me. I will send the file to you.

Share

Symfony 1.2 APC Cache

;##### APC config ###
;apc.enabled = On
apc.enable_cli = On
apc.shm_size = 128

Doctrine cache

As of sf 1.4

http://www.symfony-project.org/advent_calendar/12/en

http://www.doctrine-project.org/documentation/manual2/1_0/en/one-page#caching

http://www.sfblog.fr/page/utiliser-memcache-avec-doctrine-sous-symfony

Setup for sf 1.2

In the ProjectConfiguration:

  •   public function initialize()
      {
        //enable Doctrine cache
        $manager = Doctrine_Manager::getInstance();
        $cacheDriver = new Doctrine_Cache_Apc();
        $manager->setAttribute(Doctrine::ATTR_RESULT_CACHE, $cacheDriver);
      }

Example query (in UllFlowAppTable.class.php):

  •   /**
       * Find by Id
       *
       * @param integer $id
       * @return Doctrine_Record
       */
      public static function findById($id)
      {
        $q = new Doctrine_Query;
        $q
          ->from('UllFlowApp')
          ->where('id = ?', $id)
          ->useResultCache(true)
        ;
    
        return $q->execute()->getFirst();
      }
Share