Performance tuning?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 4011
    • 5.7.X

    #16
    It's recommended to be outside the vB root folder. The path should be the full path and not relative path. Make sure it has 777 permissions.

    Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 73981

      #17
      Originally posted by lottidah
      I created a folder in my root folder (so: /forums/attachments)
      This probably isn't your root folder. It would be more like /var/www/html/forums/attachments.

      Unzip the attached file in the attachments directory. Run it from the command line or load it in your browser and it will tell you what the full directory path is.
      Attached Files
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      • lottidah
        Senior Member
        • Dec 2004
        • 214

        #18
        Originally posted by Glenn Vergara
        It's recommended to be outside the vB root folder. The path should be the full path and not relative path. Make sure it has 777 permissions.
        Thanks for the reminder, I moved it out of the root.

        Originally posted by Wayne Luke

        This probably isn't your root folder. It would be more like /var/www/html/forums/attachments.

        Unzip the attached file in the attachments directory. Run it from the command line or load it in your browser and it will tell you what the full directory path is.
        Thanks, this helped. I've moved these items out of the database.

        With all of the updates I've completed (PHP upgrade, INNODB changes, vB minor version update, moving attachments out of the database, setting server cache to empty hourly), performance during our last game was quite good. I'm hesitant to pursue the crontab, memcached, and Sphinx items without more information (what will the crontab item suggested actually do?) or a decent tutorial to follow (for memcached and Sphinx).

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73981

          #19
          Memcached
          1. Install Memcached
          2. Uncomment the configuration in the core/includes/config.php file.
          3. Edit the configuration to point to your memcached.
          4. Set the prefix in the config.php file.
          5. Set Cache Class 0 to use Memcached

          The configuration code is:
          Code:
          // It is also necessary to specify the hostname or IP address and the port the server is listening on
          /*
          $config['Datastore']['class'] = 'vB_Datastore_Memcached';
          $i = 0;
          // First Server
          $i++;
          $config['Misc']['memcacheserver'][$i] = '127.0.0.1';
          $config['Misc']['memcacheport'][$i] = 11211;
          $config['Misc']['memcachepersistent'][$i] = true;
          $config['Misc']['memcacheweight'][$i] = 1;
          $config['Misc']['memcachetimeout'][$i] = 1;
          $config['Misc']['memcacheretry_interval'][$i] = 15;
          */
          //If you are using Memcache you should can set a prefix. This is needed only if the memcache server is shared. If dedicated you don't need it.
          $config['Cache']['memcacheprefix'] = '';
          There is more information in the /core/includes/config.php.




          Sphinx
          1. Install Sphinx on the server.
          2. Follow the instructions in the Sphinx_install_unix.txt file in your do_not_upload folder.
            • Use sphinx_install_windows.txt for Windows servers.
          3. Edit the Sphinx configuration in the /core/includes/config.php.
          4. Set your search to "Sphinx Server" in the AdminCP under Settings -> Search Type

          Configuration Code:
          Code:
          // ******** SPHINX SEARCH CONFIGURATION ******
          //Please refer to the documentation in do_not_upload/sphinx_install_unix.txt or do_not_upload/sphinx_install_windows.txt
          //for how to configure sphinx to work with vBulletin
          //$config['Misc']['sphinx_host']        = '127.0.0.1';
          //$config['Misc']['sphinx_port']        = '9306';
          //$config['Misc']['sphinx_path']        = '<sphinx_root>'; //no trailing slash
          //$config['Misc']['sphinx_config']  = $config['Misc']['sphinx_path'] . '/etc/vbulletin_sphinx.conf';
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...