2011/12/11

CentOS Server Setup

http://www.howtoforge.com/quick-n-easy-lamp-server-centos-rhel

yum install httpd httpd-devel
/etc/init.d/httpd start

yum install mysql mysql-server mysql-devel
/etc/init.d/mysqld start
mysql

mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD('root') WHERE user='root';
mysql> FLUSH PRIVILEGES;

yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml

yum install phpmyadmin
(Point your browser to: http://ip.address/phpmyadmin.)

The configuration file now needs a secret passphrase
vim /usr/share/phpmyadmin/conf.inc.php
Look for a line and enter any password. Just dont leave it empty!
$cfg['blowfish_secret'] = 'mydemopass';

chkconfig httpd on
chkconfig mysqld on


http://chrisschuld.com/2009/11/installing-webmin-with-yum-centosrhel/
echo -e "[Webmin]\nname=Webmin Distribution Neutral\nbaseurl=http://download.webmin.com/download/yum\nenabled=1" > /etc/yum.repos.d/webmin.repo
rpm --import http://www.webmin.com/jcameron-key.asc
yum install webmin

No comments:

Post a Comment

Post Code on Blogger

Simplest way to post code to blogger for me: <pre style="background: #f0f0f0; border: 1px dashed #CCCCCC; color: black;overflow-x:...