Академический Документы
Профессиональный Документы
Культура Документы
3
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! =)
# By default mysql has the no passward. To change the password in command shell write the following
commands
NOTE: Setting this password and user will be using at your phpmyadmin login account
mysql
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD(’your_password’) WHERE user=’root’;
mysql> FLUSH PRIVILEGES;
#Install NANO editor on terminal (My favorite editor and easy to use)
# Install VSFTP
yum install vsftpd
# Modify the conf files it depends on you.
nano /etc/vsftpd/vsftpd.conf
nano /etc/vsftpd/user_list
nano /etc/vsftpd/ftpusers
/etc/init.d/vsftpd start
# Install phpMyAdmin
cd /usr/share/
wget http://files.directadmin.com/services/all/phpMyAdmin/phpMyAdmin-2.11.9.5-all-languages.tar.gz
Creating a user and its directory call public_html and accessed to /var/www/html/
Nano /etc/httpd/conf/httpd.conf
Find the UserDir disable in there and put # infront of it so it would be looked like this
#UserDir disable
UserDir and put public_html (remember put what directory name as you want it to be)
UserDir public_html
Save and close your httpd.conf and restart the httpd services by
adduser username
mkdir /home/username/public_html
(NOTE: Since you have installed vsftpd above right now you can have ftp account as same as the username and
password you have created. )
Uploading your file to /home/username/public_html by using any FTP software with your hostname: IP
address, username and password with 21 ports. You will see a directory call public_html then go inside of it
and upload your files there. Once you have succeed uploading your file, you can start browsing from your
browser by your http://IPaddress/~username
Once you have your hosting working fine with apache, php, mysql, ftp, phpmyadmin and even able to access
your site by your http://ipaddress/~username you might want to have your domain name lets say
www.mydomain.com to link to your http://ipaddress/~username or /home/username/public_html instead of
having to remember IP Address.
1. I will be introducing using zoneedit as DNS Server and have your domain name pointing to
zoneedit.
2. I will be introducing using directly from your domain manager.
1. Go to zoneedit.com and create one account since it is FREE you can have only 5 zone.
2. Change your domain name server. nameserver1: ns4.zoneedit.com and nameserver2:
ns13.zoneedit.com. Sometime this might be changed due to the time. So in order to make it clear try
to add zone in zoneedit.com it will ask you put your domain name there. Put your domain name and
click on add. Once you haven’t change your nameserver on your domain side it won’t work and it
will tell you their nameserver to put on your domain name server.
3. After you have changed your domain name server to zoneedit nameserver, you are not able to add
zone in zoneedit. Im sure you know how to do it.
4. Click on IP address (A) and you will be asked to put www and IP address (your vps/server ip) and
click Add new ip address.
5. Yay you have done it and you need to wait at least 24hours
<VirtualHost *:80>
ServerAdmin info@aisolution.biz
ServerName aisolution.biz
ServerAlias *.aisolution.biz
DocumentRoot /home/aisolution/public_html
<Directory /home/aisolution/public_html>
Options FollowSymLinks
</Directory>
</VirtualHost>
3. Don’t forget uncomment on #NameVirtualHost *:80 so on the configuration file should be look like
this
NameVirtualHost *:80
THE END