UtamaBeritaTutorialBlogTool



Installing Webmin in CentOS

Posted By: azhar on January, 22 2012

Webmin is a web-based interface for system administration for Unix/Linux. By using any modern web browser, you can setup user accounts, Apache, DNS, emails  and so on without needed to manually edit Unix configuration files like /etc/passwd.

Below are instructions on how to install webmin control panels on your VPS or Dedicated Server:

1) Connect SSH to your server and type the following command:

Create new temporarily folder:
# mkdir tmp

Change to temporarily folder:
# cd tmp

Download webmin:
# wget http://sourceforge.net/projects/webadmin/files/webmin/1.xxx/webmin-1.xxx-1.noarch.rpm

(Replace xxx with the corresponding Webmin version)

Once the file has been downloaded, enter this command, this will install Webmin and all its dependencies:

# rpm –Uvh webmin-1.xxx-1.noarch.rpm

Now you can login to your newly install Webmin control panel at server IP address at port 10000. So if your server IP address is 123.123.123.123 then your webmin address is:

http://123.123.123.123:10000

Login to Webmin as root using your password.


No Comment | Category: CentOS

How to Create Nameserver with Kloxo

Posted By: azhar on January, 22 2012

In kloxo its very easy to setup DNS. Before you create your own nameserver, first you will have to decide what nameservers you want to set on your VPS or Dedicated server. This guide will show you how to register a new nameservers on a VPS or Dedicated server using the Kloxo interface.

1) Login to your Kloxo control panel securely using SSL

2) Click on the “DNS Templates” icon from the home screen.

3) You will be presented with the following screen, click on Add DNS Template

4) Add settings in your DNS template box. Enter your Primary and Secondary DNS with ns1.yourdomain.com and ns2.yourdomain.com (see below).

5) Click Add button

Finally, you now need to create / register the name servers at your domain registrar. Log in to your domain registrar and edit the assigned nameservers so that it now points at your new nameserver names (ns1.yourdomain.com, ns2.yourdomain.com). Please contact your registrar to assist you.


No Comment | Category: Kloxo

Yum Error: Cannot find a valid baseurl for repo

Posted By: azhar on November, 07 2011

Just installed CentOS and tried to run the yum tool to install MySQL Server:

# yum install mysql-server

But I keep getting the same result, Here is the error:

# yum install mysql-server
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update

I figured out that my DNS is not working. There is no response to www.centos.org.

# ping www.centos.org
ping: unknown host www.centos.org

Not only Centos website, it also can’t recognize any domain. As a solution, I’ve add domain name server (DNS) in my machine by add the following line to /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4

Save and close the file. Done! I just added primary and secondary dns server in my machine. To check if the machine work fine, I type ping www.centos.org. It has a reply, means it work well. So, I try yum command again and all is working.

Hopefully this will help someone else.


No Comment | Category: CentOS

Kernel.org is back online

Posted By: azhar on October, 07 2011

After a month of being offline caused by security breach at Kernel.org, they’re now back. However, they had to take some time to reconstruct the site in order to improve their system for developers and users.

For the time being, only www.kernel.org and git.kernel.org will be online. All developer git trees have beed removed from git.kernel.org and will be put back again as the relevant developers regain access to the system.

Source: Kernel.org


No Comment | Category: Kernel, Linux

Installing MySQL Server on CentOS

Posted By: azhar on April, 29 2008

To check if MySQL Server is installed, use the following command:

# rpm -qa | grep mysql

Check the output:

mysqlclient10-3.23.58-4.RHEL4.1
libdbi-dbd-mysql-0.6.5-10.RHEL4.1
mysql-4.1.20-1.RHEL4.1
mysql-devel-4.1.20-1.RHEL4.1
If mysql-server* package is not there, means you haven’t installed the mysql-server package.

To Install MySQL Server, do the following command (Yum must be installed):

# yum install mysql-server

Once the installation is complete, recheck the package again:
# rpm -qa | grep mysql

mysqlclient10-3.23.58-4.RHEL4.1
libdbi-dbd-mysql-0.6.5-10.RHEL4.1
mysql-4.1.20-3.RHEL4.1.el4_6.1
mysql-devel-4.1.20-3.RHEL4.1.el4_6.1
mysql-server-4.1.20-3.RHEL4.1.el4_6.1

Now start MySQL server daemon:

# service mysqld start


2 Comments | Category: CentOS

Menjalankan aplikasi Linux di dalam Windows

Posted By: azhar on February, 25 2008

?andLinux

Anda seorang penggemar Linux tetapi sering menggunakan Windows untuk kerja-kerja seharian? Ada berita baik untuk anda.

Selain menjalankan Linux di dalam Windows menggunakan produk-produk emulator seperti VMware dan VirtualBox, terdapat distribusi Linux yang dinamakan andLinux membolehkan anda menjalan aplikasi Linux di atas pelantar Windows sambil kedua-dua sistem operasi Windows dan Linux berjalan secara serentak.

andLinux akan didatangkan dengan dua perasa; satu dengan sistem KDE dan satu lagi dengan sistem berasaskan XFCE.

http://www.andlinux.com


No Comment | Category: Linux

Turn off ICMP echo response

Posted By: azhar on September, 21 2007

To avoid malicious attacks from ping, you may disable ICMP echo response by adding the following lines to /etc/sysctl.conf file.

net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1

Then run the following command:

# sysctl -p


No Comment | Category: Linux

Apache 2.2 & PHP 5 - Error 403 Access forbidden

Posted By: azhar on June, 20 2007

If you are using Apache 2.2 and PHP 5 and keep receiving this error:

Forbidden

You don’t have permission to access / on this server.

You need to check the .conf file and see if there are no unintentional restrictions to accessing the pages. To remove the restriction, each allowed directory must include the Allow from All statement:

<Directory />
Allow from All
</Directory>


No Comment | Category: Apache

How to Create Private Name Server in WHM

Posted By: azhar on May, 15 2007

If you have the domain “yourdomain.com” then you can create ns1.yourdomain.com and ns2.yourdomain.com as your own private nameserver. This guide will show you how to register a new private nameservers on a cPanel server using the WHM (Web Host Manager) interface.

1) Login to WHM (web host manager)
2) Under DNS functions, click Add a DNS Zone.

3) Enter your IP address of the reseller name servers in ‘IP’ field. Next, enter your first nameserver in ‘domain’ field (eg. ns1.yourdomain.com)

4) Click Add Zone button
5) Repeat this process for your second name server (ns2.yourdomain.com)

Finally, you now need to create / register the name servers at your domain registrar. Log in to your domain registrar and edit the assigned nameservers so that it now points at your new nameserver names (ns1.yourdomain.com, ns2.yourdomain.com). Please contact your registrar to assist you.


4 Comments | Category: WHM

Administer your database via MySQL Administrator

Posted By: azhar on May, 01 2007

In CPanel, if you wish to manage or connect your database from other location, let say from your own PC, via a program like MySQLFront, mysql.exe, MySQL Administrator, or PremiumSoft Navicat, you need to add an “access host”.

Access Host

1) From the CPanel administration page, click the MySQL Databases icon.

2) On the Access Hosts: directive, type your IP Address on the Host field. You can use the % character for wildcard


No Comment | Category: CPanel