We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46237
    • 1 Posts
    I just downloaded and installed modx-2.2.10-pl on my Ubuntu 13.10 server running Apache and mySQL. I run through the install and everything checks out fine, no reported issues. I enter my desired admin credentials on the final step but when I finish and go to log in the site rejects my credentials. I logged into the database and found the the username for the entry the installation created is blank. I'm not sure what the problem is on this, any help would be appreciated. I have tried installing several times with the same result.

    Also I am forcing HTTPS for this site in my virtualhosts config, not sure if this could be related or not.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Are there any errors in the PHP or in the MySQL logs?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 46516
        • 2 Posts
        I got the same problem. After installation in Ubuntu 13.10 ,username is blank in database. Whereas the setup folder do not remove if we check the check box at last screen of installation. I rename the ht.access file to .htaccess then it was able to remove setup directory.
        The ubuntu 13.10 has Apache 2.4 which has new Override parameters hence I used the given below code in apache

        <VirtualHost modx:80>
                ServerAdmin webmaster@localhost
                DocumentRoot /var/www/modx
        
                <Directory /var/www/modx>
                        Options Indexes FollowSymLinks MultiViews
                	AllowOverride All
                	Require all granted
                </Directory>
        </VirtualHost>


        I tried to update username in database where it was blank but issue is still same.

        mysql> select * from modx_users \G;
        *************************** 1. row ***************************
                   id: 1
             username: 
             password: sTjeTieCfj5EhM7EaANhmTrxJnS/fzMhmByf6/sA7tY=
             cachepwd: 
            class_key: modUser
               active: 1
           remote_key: NULL
          remote_data: NULL
           hash_class: hashing.modPBKDF2
                 salt: a8a6f756dbf0a36ef330ee6a69ee44d6
        primary_group: 1
        session_stale: NULL
                 sudo: 1
        1 row in set (0.00 sec)
        
        ERROR: 
        No query specified
        
        mysql> UPDATE modx_users set username='admin' where id=1;
        Query OK, 1 row affected (0.00 sec)
        Rows matched: 1  Changed: 1  Warnings: 0
        
        mysql> 
        


        I checked in logs (Apache and mysql), no such error is found.
          • 46516
          • 2 Posts
          Yeah, I am able to login in admin now. After following all the steps which I written above.
          Now this time on screen I got the message, username password is incorrect. I login to database server and reset admin user password.

          mysql> select * from modx_users \G;
          *************************** 1. row ***************************
                     id: 1
               username: admin
               password: YbbU4rRDUZJropWs1wbtOFYuf+QGPG7QyXj+8tfzIjk=
               cachepwd: 
              class_key: modUser
                 active: 1
             remote_key: NULL
            remote_data: NULL
             hash_class: hashing.modPBKDF2
                   salt: 62831358c5efab117d803cd2455b813f
          primary_group: 1
          session_stale: NULL
                   sudo: 1
          1 row in set (0.00 sec)
          
          ERROR: 
          No query specified
          
          mysql> 
          mysql> UPDATE modx_users SET hash_class = 'hashing.modMD5', password = MD5('123456') WHERE username = 'admin';
          Query OK, 1 row affected (0.02 sec)
          Rows matched: 1  Changed: 1  Warnings: 0
          
          mysql> 
          mysql> select * from modx_users \G;
          *************************** 1. row ***************************
                     id: 1
               username: admin
               password: e10adc3949ba59abbe56e057f20f883e
               cachepwd: 
              class_key: modUser
                 active: 1
             remote_key: NULL
            remote_data: NULL
             hash_class: hashing.modMD5
                   salt: 62831358c5efab117d803cd2455b813f
          primary_group: 1
          session_stale: NULL
                   sudo: 1
          1 row in set (0.00 sec)
          
          ERROR: 
          No query specified
          
          mysql> 
          


          I am attaching the screenshot of my modx admin panel

          Modx team,it seems it is a bug . While installation it do not update admin username in database.