close
THE STEP WHICH HAS '#' SIGN IN THE BEGINNING IS THE COMMAND YOU MUST TYPE.
  1. LAMP
    1. install minimal CentOS 6.2 with minimal mode.


    2. set up eth0 enable automatically when booting.
      1. edit "/etc/sysconfig/network-scripts/ifcfg-eth0".
      2. modify the value of "ONBOOT" from "no" to "yes".
      3. add "BOOTPROTO="dhcp"".
      4. test network connection after rebooting.
    3. # yum install httpd mysql mysql-server php php-mysql
    4. # yum install system-config-firewall-tui
    5. # system-config-firewall-tui to enable HTTP access.
    6. # /etc/rc.d/init.d/httpd start to start httpd services.
    7. # /etc/rc.d/init.d/mysqld start to start mysqld services.
    8. # mysqladmin -u root password '[password]' to set up root's password in mysql.
    9. # mysql -u root -p to test if the password is set correctly.
    10. set up httpd and mysqld services to enable when booting.
      1. # chkconfig --level 3 httpd on
      2. # chkconfig --level 3 mysqld on
  2. Add phpMyAdmin
    1. Download the latest version of phpMyAdmin package for all languages.
    2. # cd /var/www/html
    3. # tar -xzvf phpMyAdmin-[version]-all-languages.tar.gz to extract the package which just downloaded.
    4. # mv phpMyAdmin-[version]-all-languages phpMyAdmin.
    5. # /etc/rc.d/init.d/httpd restart to restart httpd service.
    6. "http://[server-ip]/phpMyAdmin" is typed into the URL column of the browser to test if phpMyAdmin works well.



Reference:
鳥哥的 Linux 私房菜 -- WWW 伺服器 Apache
phpMyAdmin安裝使用手冊
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 kylix 的頭像
    kylix

    kylix

    kylix 發表在 痞客邦 留言(0) 人氣()