A technical blog about web and database development discussing the various issues and problems I have experienced and overcome in my 15+ years of coding.

Monday, 27 February 2012

How to install WebMin on LINUX

How to install WebMin on LINUX

If you are from a Windows background and used to graphical interfaces then moving to a LINUX system can be quite a challenge due to the fact that most techies like to use commands from the console to carry out their work.

Whilst it is a good opportunity to learn some of the commands when you first rent a virtual server from Rackspace or buy your own box then you want to get your sites up and running quickly without having to read a lot of information first.

Therefore if you don't have the time to learn all the LINUX commands installing WebMin on your system is a quick way of providing you with a graphical interface to allow you to edit files and stop and start services like the Apache webserver or MySQL database server, as well as managing these services and configuring settings through a visual interface. You will need to have Java installed to use parts of WebMin.

If you want to learn how to use the console for carrying out your work then a good list of Linux applications and commands can be found here: Linux Commands and you should read some of the following articles I have written specifically about performance turning and managing a system such as Wordpress on a LINUX based system.

A quick cheat sheet of the most popular commands I find myself constantly using from the command line through a tool like PUTTY are below. Make a copy and save them to your desktop for quick and easy access.

Command

Details

date

Show the current date and time on the server

cd

change drive e.g cd /var (go to the var directory)

cd ../

go back up one directory

cd ../../

go back up two directories

ls

list out the contents of a directory

whoami

see who you are logged in as

su - [username]

Assume the permissions of the specified user

sudo [command]

Run a command as root but stay as the user you are logged in as

top

Show the current running processes and server load

top -d .2

Show the current running processes with .2 second refresh

tail -f access_log

View the most current entries in the sites access log

grep "61.252.14.247" access_log | tail

View the most current entries in the sites access log for a certain IP address

View the IP's that appear in your access log the most for a certain date ordered by the most frequent first.

/etc/init.d/apache2 restart

Restart Apache

apache2ctl configtest

Test the Apache configuration for configuration errors

/etc/init.d/mysql restart

Restart MySQL

wget [URL]

Remotely access, load and save a file to the current directory

chmod 777 [filepath]

Grant full read/write/delete permission to everyone to a file or folder

chmod +x [filepath]

Grant execute permission to a script

reboot

Reboot the server

How to install WebMin on a LINUX

Back to WebMin, to install WebMin on a LINUX based server you should do the following.

1. Install PUTTY if you haven't already.
2. Connect to your server through SSH using PUTTY.
3. Download the WebMin file with the following command:
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.580_all.deb

4. Run the following command: dpkg --install webmin_1.580_all.deb

You should have now installed WebMin to /usr/share/webmin.

The administration username will be set to root and the password will be set to your current root password.

You should now be able to login to Webmin by accessing your hostname/IP on the port 10000.

For example e.g if your hostname is myhost.some-site.com then use http://myhost.some-site.com:10000/.

If you server is running in SSL mode (which it should) then it will initially give you a "Bad Request" error and ask you to try a secure URL instead e.g https://myhost.some-site.com:10000/

The WebMin options will appear as a tab to the right of the VirtualMin tab in the top left of the screen.

1 comment:

It does not really take a rocket scientist to understand the rules of play when it comes to poker. You just have to understand the basic rules of play, and know which hands to actually set down during the game. check it

Safe To Buy?

This is my blog, clicking on the links will take you to my main site www.strictlysoftware.com which is HTTPS, shows the security padlock, and is safe to purchase from. More apps and plugins may be added soon and this is this place you will buy them from.

Who is Strictly-Software?

I'm a systems architect with 20+ years of IT experience
I currently work for myself as well as for a number of companies including one of the UK's leading recruitment software houses, having created 3 versions of their leading jobboard software.
I also work on multiple Horse Racing websites and have even developed my own automated betting BOT.
My history includes jobs at OCR specialists, a Management Consultancy and an Ofcom director run Telecoms company.
I'm an experienced developer with skills including .NET, C#, JavaScript, VB, ASP, PHP, HTML5, XHTML, CSS, SQL and MySQL.
I have developed my own JavaScript frameworks, markup languages, Windows and Web services. I have also made many Windows form applications plus I have developed numerous 5 star rated WordPress plugins.
On top of that I have created popular online tools and scripts that have been used by thousands of companies as well developing software that runs over 250 currently live websites.
I specialise in automation having created tools that enable feed mashups, automated scraping, auto-blogging and automatic SEO optimisation.
If you want to hire me then please email me using the contact link in the footer.