We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15953
    • 123 Posts
    So my hosting provider says, "A sessions issue with the environment? Why would it only boot out in certain browsers unless the session timeout was set in the browser (it's not)."

    From my testing it's not "certain browsers," it's all browsers (IE7, IE8, IE9, FireFox 12, Safari 5.1). And forget about doing anything from Safari. And I can't view any reports or most Settings.

    So what kind of session handling do we need for MODx? Maybe we can approach it from that angle.
      • 22303 MODX Staff
      • 10,725 Posts
      You need a working PHP environment that meets at least these requirements. Other than that, you've provided no information that could help us diagnose what in your environment is not setup properly to be able to run MODX.
        • 15953
        • 123 Posts
        Quote from: opengeek at May 02, 2012, 07:41 AM
        You need a working PHP environment that meets at least these requirements. Other than that, you've provided no information that could help us diagnose what in your environment is not setup properly to be able to run MODX.

        The original post reported a problem managing MODx running in Rackspace Cloud Site. I have the same problem running in OnApp Cloud. While I await response from the host company on server requirements is there value in discussing whether MODx can even be run in a cloud (or virtual server) environment?
          • 22303 MODX Staff
          • 10,725 Posts
          Quote from: kirkhuyser at May 02, 2012, 09:09 AM
          The original post reported a problem managing MODx running in Rackspace Cloud Site. I have the same problem running in OnApp Cloud. While I await response from the host company on server requirements is there value in discussing whether MODx can even be run in a cloud (or virtual server) environment?
          No, there are many deployments of MODX Revolution in many different environments, including so-called "cloud" environments.

          FWIW, the word "cloud" is just a fancy word for hosting, and is quite meaningless on it's own. Issues on one "cloud" environment may be completely unrelated to another because there is no standard "cloud" hosting definition. This is why we need details about the environment to assist.

          Generally, sporadic session behavior like was described by the OP can be attributed to bad PHP session configurations, especially in environments that use some type of load balancer to distribute requests to multiple web nodes. But, again, the more details we have about the OnApp environment, the better we'll be able to help.
            • 15953
            • 123 Posts
            Here's the PHP info:
            System: Linux cent-virt-3.stabilityhosting.com 2.6.18-238.el5xen #1 SMP Thu Jan 13 16:41:45 EST 2011 x86_64

            Build Date Jan 20 2011 12:29:30

            Configure Command: './configure' '--localstatedir=/var/hsphere/php' '--with-bz2=/hsphere/shared' '--enable-ctype' '--enable-dba' '--enable-ftp' '--with-gettext=/hsphere/shared' '--enable-mbstring=all' '--with-gd' '--with-mhash=/hsphere/shared' '--with-mcrypt=/hsphere/shared' '--with-openssl=/usr' '--enable-overload' '--enable-posix' '--enable-session' '--enable-sockets' '--enable-standard' '--enable-tokenizer' '--with-xml=/hsphere/shared' '--with-xsl=/hsphere/shared' '--with-zip=/hsphere/shared' '--with-zlib=/hsphere/shared' '--with-zlib-dir=/hsphere/shared' '--with-freetype-dir=/hsphere/shared' '--with-png-dir=/hsphere/shared' '--with-jpeg-dir=/hsphere/shared' '--with-expat-dir=/hsphere/shared' '--with-iconv-dir=/hsphere/shared' '--with-libxml-dir=/hsphere/shared' '--enable-gd-native-ttf' '--with-ttf' '--enable-mbstr-enc-trans' '--with-expat-dir=/hsphere/shared' '--with-xslt-sablot=/hsphere/shared' '--with-gnu-ld' '--with-curl=shared,/hsphere/shared' '--with-curlwrappers' '--with-dom=shared,/hsphere/shared' '--with-dom-xslt=/hsphere/shared' '--with-dom-exslt=/hsphere/shared' '--with-dom=shared,/hsphere/shared' '--with-fileinfo=shared,/hsphere/shared' '--with-gmp=shared,/hsphere/shared' '--with-iconv=shared,/hsphere/shared' '--with-imap=shared,/hsphere/shared' '--with-imap-ssl=shared,/usr' '--with-mcal=shared,/hsphere/shared' '--with-mysql=shared,/usr' '--with-mysqli=shared' '--with-pgsql=shared,/usr' '--with-sqlite=shared' '--enable-sqlite-utf8' '--with-unixODBC=shared,/hsphere/shared' '--with-xmlrpc=shared' '--enable-htscanner' '--enable-track-vars' '--enable-trans-sid' '--enable-memory-limit' '--enable-force-cgi-redirect' '--enable-fastcgi' '--with-config-file-path=/hsphere/local/config/httpd2/php5' '--with-config-file-scan-dir=/hsphere/local/config/httpd2/php5/php.d' '--enable-magic-quotes' '--with-pear=/hsphere/shared/apache2/libexec/php5ext/php' '--with-mime-magic=/hsphere/local/config/httpd2/magic' '--with-inifile' '--with-flatfile' '--enable-pdo=shared' '--with-pdo-sqlite=shared' '--with-pdo-mysql=shared' '--with-pdo-pgsql=shared' '--prefix=/hsphere/shared/php5-2' '--with-apxs2=/hsphere/shared/apache2/bin/apxs' '--enable-cli'

            Server API: Apache 2.0 Handler

            Virtual Directory Support: enabled

            Configuration File (php.ini) Path: /hsphere/local/config/httpd2/php5

            Loaded Configuration File /hsphere/local/config/httpd2/php5/php.ini

            Scan this dir for additional .ini files: /hsphere/local/config/httpd2/php5/php.d

            additional .ini files parsed: /hsphere/local/config/httpd2/php5/php.d/bcmath.ini, /hsphere/local/config/httpd2/php5/php.d/calendar.ini, /hsphere/local/config/httpd2/php5/php.d/curl.ini, /hsphere/local/config/httpd2/php5/php.d/dbase.ini, /hsphere/local/config/httpd2/php5/php.d/eaccelerator.ini, /hsphere/local/config/httpd2/php5/php.d/exif.ini, /hsphere/local/config/httpd2/php5/php.d/fileinfo.ini, /hsphere/local/config/httpd2/php5/php.d/gmp.ini, /hsphere/local/config/httpd2/php5/php.d/htscanner.ini, /hsphere/local/config/httpd2/php5/php.d/iconv.ini, /hsphere/local/config/httpd2/php5/php.d/imap.ini, /hsphere/local/config/httpd2/php5/php.d/ioncube.ini, /hsphere/local/config/httpd2/php5/php.d/ldap.ini, /hsphere/local/config/httpd2/php5/php.d/mysql.ini, /hsphere/local/config/httpd2/php5/php.d/mysqli.ini, /hsphere/local/config/httpd2/php5/php.d/ncurses.ini, /hsphere/local/config/httpd2/php5/php.d/odbc.ini, /hsphere/local/config/httpd2/php5/php.d/pcntl.ini, /hsphere/local/config/httpd2/php5/php.d/pdo.ini, /hsphere/local/config/httpd2/php5/php.d/pdo_mysql.ini, /hsphere/local/config/httpd2/php5/php.d/pdo_pgsql.ini, /hsphere/local/config/httpd2/php5/php.d/pdo_sqlite.ini, /hsphere/local/config/httpd2/php5/php.d/pgsql.ini, /hsphere/local/config/httpd2/php5/php.d/pspell.ini, /hsphere/local/config/httpd2/php5/php.d/shmop.ini, /hsphere/local/config/httpd2/php5/php.d/soap.ini, /hsphere/local/config/httpd2/php5/php.d/sqlite.ini, /hsphere/local/config/httpd2/php5/php.d/sysvmsg.ini, /hsphere/local/config/httpd2/php5/php.d/sysvsem.ini, /hsphere/local/config/httpd2/php5/php.d/sysvshm.ini, /hsphere/local/config/httpd2/php5/php.d/xmlrpc.ini, /hsphere/local/config/httpd2/php5/php.d/zend.ini, /hsphere/local/config/httpd2/php5/php.d/zmnogosearch.ini

            PHP API: 20041225
            PHP Extension: 20060613
            Zend Extension: 220060519
            Debug Build: no
            Thread Safety: enabled
            Zend Memory Manager: enabled
            IPv6 Support: enabled
            Registered PHP Streams: compress.zlib, compress.bzip2, php, file, data, tftp, ftp, telnet, dict, ldap, http, https, ftps

            Registered Stream Socket Transports: tcp, udp, unix, udg, ssl, sslv3, sslv2, tls

            Registered Stream Filters: zlib.*, bzip2.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*
              • 15953
              • 123 Posts
              Quote from: opengeek at May 02, 2012, 07:41 AM
              You need a working PHP environment that meets at least these requirements. Other than that, you've provided no information that could help us diagnose what in your environment is not setup properly to be able to run MODX.

              I have been able to see more in Manager today before getting booted. I looked at system info and do see a couple discrepancies with the server requirements you posted. register_globals is on and magic_quotes_gpc is on. Can these settings be chaged in MODx or does the server host have to change these?

              I don't know if the problem at hand is preventing me from viewing the error log in Manager or if it is too large. Is there anyway I can purge the error log outside of Manager?
                • 15953
                • 123 Posts
                My site host tells me I need to change settings for register_globals and magic_quotes_gpc in my .htaccess file. But I find conflicting info on the Internet as how to do this. Anyone have suggestions for me?
                  • 15953
                  • 123 Posts
                  Quote from: opengeek at May 02, 2012, 09:32 AM
                  But, again, the more details we have about the OnApp environment, the better we'll be able to help.

                  I've provided details in the previous post. What specifically should I provide?

                  Also, even though I added the following lines to my .htaccess file it appears the sessions are still not being stored to the tmp directory. session.save_path as reported by phpinfo() shows the proper path, but shouldn't I be seeing files in that directory while poking around Manager?

                  # Write the sessions into a directory specific to the server instance
                  php_value session.gc_probability 1
                  php_value session.gc_divisor 100
                  php_value session.gc_maxlifetime 3600
                  php_value session.save_path /hsphere/local/home/gsyha/tmp/