Quantcast
Channel: Fatih Karatana, Software Architect & Business Coach » Tag » MySQL
Viewing all articles
Browse latest Browse all 2

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

$
0
0

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

Source


Viewing all articles
Browse latest Browse all 2

Trending Articles