Wednesday, December 22, 2010

How to install LAMP, phpMyAdmin and VsFTP on CentOS 5 Using Yum

We will now look at the wonderful and exciting way to install LAMP, phpMyAdmin and VsFTP on CentOS 5.3 utilizing Yum! Hoorray! =)
#Update Your Package
yum update
# Install Mysql Packages
yum install mysql-server mysql mysql-devel
/etc/init.d/mysqld start
# By default mysql has the no passward. To change the password in command shell write the following commands
mysql
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD(’your_password’) WHERE user=’root’;
mysql> FLUSH PRIVILEGES;
# Install php and common packages
yum install php php-gd php-imap php-mysql php-pear php-xml phpxmlrpc curl libxml2 php-mbstring php-mcrypt
# Install VSFTP
yum install vsftpd
# Modify the conf files it depends on you.
vi /etc/vsftpd/vsftpd.conf
vi /etc/vsftpd/user_list
vi /etc/vsftpd/ftpusers
/etc/init.d/vsftpd start
# Install phpMyAdmin
cd /usr/share/
wget http://nchc.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.11.9.5-all-languages.tar.gz
tar xvfz phpMyAdmin-2.11.9.5-all-languages.tar.gz
mv phpMyAdmin-2.11.9.5-all-languages phpmyadmin
rm phpMyAdmin-2.11.9.5-all-languages.tar.gz
cd phpmyadmin/
cp config.sample.inc.php config.inc.php
vi config.inc.php
>> $cfg['blowfish_secret'] = ‘TypeAnything_for_Secure’;
vi /etc/httpd/conf.d/phpmyadmin.conf
>> Alias /phpMyAdmin /usr/share/phpmyadmin
service httpd restart
# Check your web-site
cd /var/www/html/
ls
cat > index.php
<?
phpinfo();
?>
http://localhost
# Setup Auto Start
setup
Select Service -> httpd, mysqld, vsftp
For more hot and heavy tips for installing,managing,configuring, etc – stay tuned for more posts. And hey, give us some feedback as well! – was this helpful!?

0 comments:

Post a Comment

 
Design by GURU