Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

When you are creating an application and want to display the user’s image on their profile picture. This can be a better option for you to take users image from there Gravatar account, from where we can simply get the image using their email address.

Copy the above PHP script and use in your php code to show users gravatar in their profiles.

Read More

This is good to test a file has enough permission to do read, write or execute operations. For a good programmer, you should use these functions before doing any operations on the file. 1. Test read permission: Below script will check if the given file has read permission for currently logged in user. This will be useful to test before start reading any file inside a shell script.

2. Test write permission: Below script will check if a given file has to write permission for currently logged in user. This will be useful to test before writing content to…

Read More
AWS

WHM & cPanel is the web-based system management control panel widely used for the Linux hosting environment. To use WHM/cPanel on the AWS environment, we will face the problem with normal instances. So we prefer to use VPC ( Virtual Private Cloud) in aws for installing WHM & cPanel server. This article will help you step by step in brief details for the configuration of the WHM & cPanel hosting environment on AWS instances. Follow below step by step details for configuring WHM & cPanel on AWS:- 1. Setup VPC (Virtual Private Cloud) First login to your AWS web console…

Read More
Download and Upload Files using FTP FTP

FTP (File Transfer Protocol) is widely recognized as a premier method for efficiently transferring files between different systems. Utilized extensively across various platforms, FTP allows for the rapid upload and download of files. It is supported by multiple applications, such as vsFTPd and proFTPd on Linux, and FileZilla Server on Windows. You can connect to an FTP server using several methods, with plenty of free tools available online for this purpose. However, system administrators often prefer the command line for its efficiency and control. This guide will walk you through the process of connecting to an FTP server using command…

Read More

Ubuntu 15.04 (Vivid Vervet) final Release date is scheduled to April 23, 2015. Ubuntu 15.04 Vivid Vervet has a short life, it will only support for 9 months for Ubuntu Desktop, Server and other Ubuntu flavors. If you are running with Ubuntu LTS releases (12.04 LTS or 14.04 LTS) for servers, we don’t recommend to upgrade it but for Desktop users upgrade to this release and enjoy new features. Ubuntu 15.04 (Vivid Vervet) Release Date: Ubuntu 15.04 (Vivid Vervet) – April 23, 2015 Ubuntu Reaching his End of Life: Some of older Ubuntu releases are reached to his End of…

Read More

In Linux, an empty file is a file that has a size of zero bytes. This means that the file does not contain any data, and it does not have any content when it is opened in a text editor. An empty file can be created using the touch command: `touch myfile.txt` This will create an empty file called myfile.txt in the current directory. You can also create an empty file using the echo command with the > operator: `echo > myfile.txt` This will overwrite any existing content in the file with an empty string, effectively creating an empty file.…

Read More

The command add-apt-repository is used for adding PPA reference to our Ubuntu or Debian systems. For newer installations, this command may not available in your system. Use the following commands to add this command utility in your system as per your operating systems. Ubuntu & Debian Latest Version The latest version of Ubuntu 19.10, 18.04, 16.04 and Debian 10/9/8, add-apt-repository command utility is available under the software-properties-common package. So use the following command to install it. sudo apt-get install software-properties-common Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no…

Read More

FileZilla is the most popular cross platform, opensource ftp client. FileZilla works as FTP, FTPS and SFTP client with many of features and an intuitive graphical user interface. Below is few key features of FileZilla Visit below url to install and configure vsftpd ftp server on Linux system with enabling SSL/TLS security. https://tecadmin.net/install-vsftpd-with-ssl-tls-on-linux/ Features of FileZilla Supports FTP, FTP over SSL/TLS (FTPS) and SSH File Transfer Protocol (SFTP) Cross-platform. Runs on Windows, Linux, *BSD, Mac OS X and more Available in multiple languages Supports resume and transfer of large files >4GB Tabbed user interface Powerful Site Manager and transfer queue…

Read More

If you are a PHP developer with Ubuntu system or configuring your computer / laptop for PHP development this article will help you to for configuring your Ubuntu system. PHP Apache MySQL PHP-IDE 1. Setup LAMP Stack First install LAMP Setup on your Ubuntu system using following commands. Install Apache $ sudo apt-get install apache2 Install MySQL $ sudo apt-get install mysql-server Install PHP $ sudo apt-get install php5 php5-mysql 2. Install Geany PHP IDE Geany is available under default ubuntu repositories, but to install most recent version as ppa of Geany in our system. After that install it. $…

Read More

The hosts file is useful for mapping hostname or domain names with IP locally on the system. This file is available on each operating system and useful for mapping domains with IP addresses without making any DNS entry. Sample Hosts File: 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 For example, if you are running a server on the public network and configured a website on that server. Now to access the website through the domain name, you must register a valid domain and point DNS records to that server. But using hosts file we can use any test domain name like…

Read More