+ Reply to Thread
Results 1 to 7 of 7

Thread: MT Core on CentOS 6.2

  1. #1

    Default MT Core on CentOS 6.2

    I'm installing MindTouch following these instructions exactly (cut and pasted the commands):

    http://developer.mindtouch.com/en/do...ling_on_CentOS

    The command-line part seemed to go fine. I'm stuck on step 5 of the browser portion of the installation with the error "MySQL failed with error [2003] Can't connect to MySQL server on '127.0.0.1' (13)."
    Last edited by robert lauriston; 05-03-2012 at 08:40 PM.

  2. #2

    Default

    Here's the mysql status:

    Code:
    mysql  Ver 14.14 Distrib 5.1.61, for redhat-linux-gnu (x86_64) using readline 5.1
    
    Connection id:          6
    Current database:
    Current user:           root@localhost
    SSL:                    Not in use
    Current pager:          stdout
    Using outfile:          ''
    Using delimiter:        ;
    Server version:         5.1.61 Source distribution
    Protocol version:       10
    Connection:             Localhost via UNIX socket
    Server characterset:    latin1
    Db     characterset:    latin1
    Client characterset:    latin1
    Conn.  characterset:    latin1
    UNIX socket:            /var/lib/mysql/mysql.sock
    Uptime:                 1 hour 29 min 39 sec
    
    Threads: 1  Questions: 12  Slow queries: 0  Opens: 15  Flush tables: 1  Open tables: 8  Queries per second avg: 0.2

  3. #3

    Default

    Someone told me to try setsebool -P httpd_can_network_connect 1. Here's the output:

    libsemanage.get_home_dirs: dekiwiki homedir /var/www or its parent directory conflicts with a file context already specified in the policy. This usually indicates an incorrectly defined system account. If it is a system account please make sure its uid is less than 500 or its login shell is /sbin/nologin.

  4. #4

    Default

    OK, I worked around that error with

    chcon -R -thttpd_sys_content_t /var/www/dekiwiki
    Last edited by robert lauriston; 05-07-2012 at 09:15 PM.

  5. #5

    Default

    The one other thing I had to do was open the firewall:

    sudo iptables -I INPUT -p tcp --dport 80 -j ACCEPT
    sudo service iptables save

  6. #6
    Join Date
    Feb 2008
    Posts
    65

    Default

    Hi

    Just a short note to say I'm interested in your progress. I installed Core on Redhat and Centos 6.2 seems an appropriate upgrade for me.

    Please keep us informed

    Thanks
    Jeremy

  7. #7

    Default

    It's working fine for me now. The initial problems I reported went away when I started over with a clean install of CentOS 6.2. The instructions worked fine except for the two issues I noted above (permissions and firewall).

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts