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:

  • MySQL: Connect From an Other System / Computer How do I connect to my MySQL database server from an other server (say Apache or Tomcat app server) in same VLAN under CentOS / Fedora / RHEL / Redhat Linux?First, you need to turn on the r… Read More
  • Chỉnh local time cho vps mv /etc/localtime /etc/localtime.old ln -sf /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime rdate -s rdate.cpanel.net Nếu gặp lỗi khi chạy rdate, thì install rdate: yum -y install rdate File script nào có sử dụng hàm … Read More
  • Apache OptimizationAll the important configuration options are stored by Apache in a config file called httpd.conf that is located at /usr/local/apache/conf/httpd.conf. We will start by opening this file in your favorite text editor.  For… Read More
  • Install php PHP Modules PHP also has a variety of useful libraries and modules that you can add onto your server. You can see the libraries that are available by typing: yum search php- Terminal then will display the list of possible … Read More
  • How to Install php-mcrypt on Plesk 10.3 / CentOS-6 / PHP5.3.3yum repolist-----------------------------------repo id repo name statusbase CentOS-6 - Base 6.346elrepo ELRepo.org Community Enterprise Linux Repository - el6 223epel Extra Packages for Enterprise Linux 6 - x86_64 8.351extras… Read More