Perfect Server - CentOS 5.5_i386?

Discussion in 'Installation/Configuration' started by jchiera, Mar 9, 2011.

  1. jchiera

    jchiera New Member

    Hello, I am using this guide to install CentOS on my server; http://www.howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-3 except I cannot use the 64 bit version because my processor will not support 64 Bit architecture so I am forced to use i386. I was thinking that all the steps/commands would be the same, just change somethings around where it says x86_64 to i386, etc. But, I guess this did not work for me... I am trying to retry all the commands, I got to step 9 where I install Apache, MySQL, phpMyAdmin, had some issues there where some places say x86_64. Also in step 10 for dovecot, I did
    Code:
    rm -fr /usr/lib/dovecot/
    ln -s /usr/lib64/dovecot/ /usr/lib/dovecot
    it did not work because I am running a 32 bit OS. So, I do not know what has to be changes for 32 Bit, or if there is a guide for 32 Bit CentOS.

    -Thank You
     
  2. ataru

    ataru Member

    try to look at the bottom of the pages... there's some stuff explaining how to follow that guide for a 32bit system
     
  3. jchiera

    jchiera New Member

    Okay, Thanks. I am following the comments, but I am stuck. For step 10 where I install Dovecot and configure some stuff, I need some help. When I type the command
    Code:
    vi /etc/yum.repos.d/atrpms.repo
    I have this in there;
    Code:
    [atrpms]
    name=Red Hat Enterprise Linux 5 - i386 - ATrpms
    baseurl=http://dl.atrpms.net/el5-i386/atrpms/stable
    failovermethod=priority
    exclude=dovecot-2*
    includepkgs=dovecot dovecot-sieve
    
    #
    # requires stable
    #
    [atrpms-testing]
    name=Red Hat Enterprise Linux 5 - i386 - ATrpms testing
    baseurl=http://dl.atrpms.net/el5-i386/atrpms/testing
    failovermethod=priority
    enabled=1
    exclude=dovecot-2*
    includepkgs=dovecot dovecot-sieve
    
    #
    # requires stable and testing
    #
    [atrpms-bleeding]
    name=Red Hat Enterprise Linux 5 - i386 - ATrpms bleeding
    baseurl=http://dl.atrpms.net/el5-i386/atrpms/bleeding
    failovermethod=priority
    enabled=0
    I saw a comment for the links for 32 Bit architecture. So, I am not 100% sure that is right.

    Also when the guide wants me to type in the commands
    Code:
    rm -fr /usr/lib/dovecot/
    ln -s /usr/lib64/dovecot/ /usr/lib/dovecot
    What do I do here? There is no lib64 dir because I am not using 64 bit, so I am confused on this part also.

    -Thank You
     
  4. ataru

    ataru Member

    i skipped this, and it works well for me

    i've got no /usr/lib64/dovecot/ folder, only /usr/lib/dovecot/
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Please don't do this on a 32bit system, or you will have to start over! :eek:
     
  6. jchiera

    jchiera New Member

    Okay, that's what I thought. I just skipped it. But, now I have a different problem... I am on step 13 where I set Set MySQL Passwords And Configure phpMyAdmin. I type in
    Code:
    mysql_secure_installation
    and all the correct output appears. There is no root password at first and I go to set one, but when it asked me to Remove anonymous users? [Y/n] I typed in Y and hit Enter. I then got this error message;
    Code:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    Well then I tried
    Code:
    mysql_secure_installation
    again and it asked me for my password and I typed in my password I typed in and I am getting this error message now
    Code:
    RROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    I even followed these instructions on resetting the root password from here; http://www.cyberciti.biz/tips/recover-mysql-root-password.html. All went well and it said that the root password was reset but I still cannot log in with the password I typed in again... What should I do?


    EDIT: Well I tried this
    Code:
    shell> mysql -u root -p
    and then I typed in my password and I can access the MySQL database, but I cannot do the secure installation above.

    EDIT2: I have also tried reinstalling MySQL and the same thing happens :(


    -Thank You
     
    Last edited: Mar 10, 2011
  7. falko

    falko Super Moderator ISPConfig Developer

    If the password is set, then everything's fine. You don't need to re-run mysql_secure_installation. :)
     
  8. jchiera

    jchiera New Member

    But that's the thing. I did not finish all of the steps for that. After it asked me
    Code:
    Remove anonymous users? [Y/n]
    and I typed in a Y and pressed enter it gave me that error;
    Code:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    and I could not finish the mysql secure installation.

    Is there a way I can totally remove the root password or uninstall mysql and restart this process over again?
     
    Last edited: Mar 10, 2011
  9. falko

    falko Super Moderator ISPConfig Developer

  10. jchiera

    jchiera New Member

    I know, it's a very weird thing. For the secure installation I cannot login with the root password I set, but when I type in
    Code:
    mysql -u root -p
    I can type in the password I made and access my database... strange :rolleyes:

    EDIT: I followed the steps and when I type in
    Code:
    mysqld_safe --skip-grant-tables &
    I get this output
    Code:
    Starting mysqld daemon with databases from /var/lib/mysql
    and then it just stays there. I it does not go back to the shell command line. I have to open another Terminal in puTTY and lof in to root that way.

    Also, I decided to run
    Code:
    mysql_secure_installation
    
    and it asked me if I would like to reset the root password because one was already set, I selected Y and typed in a new password and it was set. It then asked me if I wanted to Remove anonymous users? [Y/n] I typed in Y again and pressed enter and I got this output...
    Code:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
     ... Failed!
    
    So I have no idea what is going on here....
     
    Last edited: Mar 11, 2011
  11. jchiera

    jchiera New Member

    I have fixed the problem. The problem was that I was using the # (Hash) in my password and I guess that was messing the secure installation up. I have taken out the # (Hash) and it works fine now :)
     

Share This Page