How to secure a LAMP server on CentOS or RHEL

LAMP is a software stack composed of Linux (an operating system as a base layer), Apache (a web server that “sits on top” of the OS), MySQL (or MariaDB, as a relational database management system), and finally PHP (a server-side scripting language that is used to process and display information stored in the database). In […]
Continue reading…

 

How to find and kill misbehaving MySQL queries

Sometimes the complexity of a relational database system can be overwhelming. Fortunately, that complexity is an advantage, as with MySQL’s tools for managing queries. In this tutorial, I will show you how to find and kill any misbehaving MySQL queries. To view the currently-running queries, log in to the MySQL console and run the ‘show […]
Continue reading…

 

How to repair a crashed WordPress database table

A WordPress database may experience failure and corruption under various circumstances. One of common problems with it is “crashed database.” When that happens, you will find the following error in WordPress error log: WordPress database error Table ‘./my_home/wp_posts’ is marked as crashed and last (automatic?) repair failed for query SELECT post_date_gmt FROM wp_posts WHERE post_status […]
Continue reading…

 

How to set up a lightweight web server on Raspberry Pi

There are a variety of web server software available for Linux-based platforms including Raspbian. Using one of those available web server software, we can turn Raspberry Pi into a 24/7 available portable web server. In this case, however, we must understand that Raspberry Pi has hardware limitations in terms of CPU clock speed, memory, etc. […]
Continue reading…

 

How to upgrade MySQL server on Debian or Ubuntu

One of routine tasks for system admins is to update installed programs with the latest patches and hotfixes, as well as upgrade software to a more recent release with new bells and whistles. The latest MySQL 5.6 was released early this year, targeting better performance and scalability. For those of you wanting to try out […]
Continue reading…

 

How to install and configure Cacti on Linux

Any system admin working in a service provider network would certainly agree that Cacti is one of the most widely used tools in network management solutions. It is open source, has built in user authentications and user permission features, shipped with frequently used graph templates like bandwidth, 95th percentile, hard disk usage, CPU usage, load […]
Continue reading…

 

How to set up web-based database management system with Adminer

A web-based database management system offers several advantages for any business operating databases. It allows databases to be administered from anywhere in the world, which increases productivity and efficiency of database administration. Also, having a web-based management interface means you don’t need to install a separate database client, but use a cross-platform web browser. Security […]
Continue reading…

 

How to install MySQL server and client on Linux

MySQL is the most popular open-source database management system supporting transactional relational databases. MySQL runs in a server-client architecture, where a MySQL server manages persistent databases and provides SQL query interfaces, while MySQL clients query the MySQL server to access MySQL databases. In this tutorial, I will describe how to install MySQL server and client […]
Continue reading…

 

How to log in to MySQL server without password

In order to log in to a MySQL server, you can run mysql command along with your login credentials and server’s IP address as arguments. For example: $ mysql -u $MYSQL_ROOT -p $MYSQL_PASS -h 192.168.10.1 However, besides the inconvenience of typing extra arguments, using plain-text login credentials in a command line like above is really […]
Continue reading…

 

How to install LAMP server on Ubuntu

LAMP, which stands for Linux, Apache, MySQL and PHP, is a popular open-source web server platform on Linux. The LAMP stack has been enjoying tremendous popularity among website administrators, due to its stability, open-source nature, and excellent community support. To install LAMP server on Ubuntu, you can use a command line tool called tasksel which […]
Continue reading…