We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23427
    • 6 Posts
    Thanks for the file, man, but... i’m still stuck : shocked

    Now it gives error on php fastcgi sad

    FastCGI sent in stderr: "PHP Fatal error: Call to undefined function mysql_connect() in /srv/nginx/html/modx/manager/includes/extenders/dbapi.mysql.class.inc.php on line 89" while reading response header from upstream, client: 192.168.1.5, server: localhost, request: "GET /modx/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.1.5"

    Sorry if i’m bugging you

    Thanks
      • 5627
      • 2 Posts
      I had a similar problem at this stage of the install. I clicked the ’test database’ link and nothing at all happened - no error message - nothing. I was installing on Centos 5, PHP5 and Apache 2. I tried every browser available. After much digging I discovered that the default install of Centos on my server did not have the PHP MySQL support needed (strange but true!). If you can login to your server then type...

      yum install php-mysql

      This should install the necessary support. Also, I found that ModX neede the MBString extension installed, so I typed...

      sudo yum install php-mbstring
      sudo /sbin/service httpd restart

      ... (or the equivilant for your flavour of Linux). It seems that the install script is not clever enough to check this and if you try to proceed regardless you get a javascript error. If you don’t have command line access to your server, get you provider admin to install this for you.

      After this, I ran the install again and it worked for me - hope it helps.

        • 3749
        • 24,544 Posts
        Good thought. If that’s the problem, you might want to rename the config.inc.php file before you do your first install so you’ll get the normal vanilla install.

        I guess another possibility would be a really outdated version of PHP or MySQL.

        PS: Not bugged at all -- just frustrated that I can’t do a better job of helping you. smiley
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 23427
          • 6 Posts
          well dudes, thanks for your help, today i didn’t had time to test, but i tried to get the package php-mbstring...
          but no go, my distro doesn’t gets it.

          But talking about versions, i should already tell you what versions i have, so here it goes;
          - Linux Mint 7 (Gloria) kernel 2.6.28
          - Nginx 0.7.62 (downloaded tarball, compiled from source)
          - Php 5.3.0 (downloaded tarball, compiled from source) the php runs via fastcgi from lighttpd.
          - MySql 5.0.75 (installed on distro)

          when i was installing php, i found out that there is something new with the php/mysql connection, i had to compile php with diferent flags, i had to use this: --with-mysqli=mysqlnd

          Do you think the "mysql_connect() error" might have something to do with the version of php?
          perhaps i should try download and compile an early version?
          But phpMyAdmin, works fine with this configuration...(only nags about...mcrypt extension, is this necessary)

          Thanks again for the support.

          Pipas


            • 15515
            • 2 Posts
            I’m getting the same problem here.

            I’ve installed
            MySQL 5.1.40 community
            Apache 2,2,14-win-x86-openssl-0.9.8k
            PHP 5.2.11
            MODx 1.0.1

            As far as I’m aware I’ve installed all the required extensions for PHP. The one thing I’m not sure about is Freetype as I couldn’t find any reference to this in the PHP install.

            When I attempt to install MODx and get to the page where I enter my database properties, http://localhost/modx/install/index.php?action=connection, the test connection link in the HTML source is:

            <a id="servertest" href="#">Test database server connection and view collations.</a>

            Unless I’m missing something, there’s something wrong with this url. Can someone help please.

              • 15515
              • 2 Posts
              There must have been something wrong with my installations. I’ve uninstalled MySQL, PHP and Apache and then installed Xampp win32-1.7.2. The I installed MODx again under Xampp and it’s tested and created the database perfectly.

              I’d like to know what was missing from my previous environment though. Does anyone have any information on exactly what I need to do to get it working without using Xampp?

              Thanks
                • 22174
                • 1 Posts
                I know how to fix it (I had the same problem):

                Modify few lines in install/setup.info.php to end like this:

                $chunkPath = $setupPath .’../assets/chunks’;
                $snippetPath = $setupPath .’../assets/snippets’;
                $pluginPath = $setupPath .’../assets/plugins’;
                $modulePath = $setupPath .’../assets/modules’;

                Please note those ..’s before the ’assets’. These are needed if you try to install ModX to a subdirectory.
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Quote from: ollioikarinen at Nov 11, 2009, 07:27 AM

                  I know how to fix it (I had the same problem):

                  Modify few lines in install/setup.info.php to end like this:

                  $chunkPath = $setupPath .’../assets/chunks’;
                  $snippetPath = $setupPath .’../assets/snippets’;
                  $pluginPath = $setupPath .’../assets/plugins’;
                  $modulePath = $setupPath .’../assets/modules’;

                  Please note those ..’s before the ’assets’. These are needed if you try to install ModX to a subdirectory.

                  Good catch. Could you please file a ticket for this in JIRA with your environment details? Thanks!
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 12912
                    • 1 Posts
                    I seen that a lot of this problem happens if you change the language of the installation setup.
                    I changed mine to italian and i cannot go forward to create the database also when i had not erros on connection.
                    Doing the setup in english everything worked.
                    Sometimes are errors coming from translation...

                    Try in english first... wink
                      • 6038
                      • 228 Posts
                      I had these symptoms also - was trying to install on a windows box, through a VPN connection.
                      When I got to the ’test database connection’ part, there was simply no response at all.
                      After turning on firebug I discovered that javascript resources were not loading.
                      It turns out the setting my user had for the windows box would unzip files, but would skip javascript, thinking they might be malicious.
                      So there were absolutely no javascript files available, although the extracted folder looked correct.
                      I had to get the server admin to extract the zip file to keep the js files intact.
                      Then, everything was good!