Friday, December 13, 2013

Install Apache, MySQL, phpMyAdmin on CentOS

1. Install Apache:
yum install httpd php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mhash gettext/sbin/chkconfig httpd --level 345 on/etc/init.d/httpd start
Root folder on /var/www/html
2. Install MySQL:
yum install mysql mysql-server/sbin/chkconfig mysqld --level 345 on/etc/init.d/mysqld start

Default user is "root" and password is none.
Setup MySQL root password: mysqladmin -u root password passwordhere
3. Install phpMyAdmin:
cd /var/www/html
wget  http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.2.4/phpMyAdmin-3.2.4-all-languages.zip?use_mirror=nchc
unzip phpMyAdmin-3.2.4-all-languages.zip

Change config.sample.inc.php to config.inc.php.
Find line:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
change to:
$cfg['Servers'][$i]['auth_type'] = 'http';
Finish, login to phpMyAdmin: http://IP/phpMyAdmin-3.2.4-all-languages

Related Posts:

  • Midnight Commander Midnight Commander is a console file manager and directory browser. It is a friendly system for many tasks in the terminal window, and the quickest way to copy, move or delete multiple files. MC can also do fast ftp and netw… Read More
  • dos2unix NAME dos2unix - DOS/MAC to UNIX text file format converter SYNOPSYS dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...] Options: [-hkqV] [--help] [--keepdate] [--quiet] [--version] DESCRI… Read More
  • SSH Tutorial SSH (Secure Shell) là một giao thức mạng dùng để thiết lập kết nối mạng một cách bảo mật. SSH hoạt động ở lớp trên trong mô hình phân lớp TCP/IP. Các công cụ SSH (như là OpenSSH, …) cung cấp cho người dùng cách thứ… Read More
  • The-Perfect-Apache-Configuration # ---------------------------------------------------------------------- # Apache configuration file # This file is best used in /apache2/httpd.conf, but works (slower) in .htaccess # # I've spent quite a bit of time com… Read More
  • Setup mysql server 1.Add permission to tmp folder.  chown root:root /tmp   107  chmod 1777 /tmp 2.Video guide: 3.Command install sudo yum install mysql-server service mysqld start sudo /usr/bin/mysql_secure_installation Open po… Read More