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..

If you are using Laravel and you see an error message that says “Please provide a valid cache path,” it means that Laravel is unable to write to the specified cache directory. This can be caused by a number of factors, such as incorrect permissions on the cache directory, or a lack of write access to the directory. Please provide a valid cache path. Problem: After more debugging and Google it, I found that the storage/framework directory is missing from deployment. Because the .gitignore file has an entry of storage/framework directory to prevent them from adding code to the git…

Read More

The Debian team has announced the latest version Debian 10 “Buster” released on July 6th, 2019. This release has code name “Buster”. Debian 10 is full of new features and upgrades than the previous release. In this tutorial, I will help you to Upgrade Debian 10 Buster from Debian 9 Stretch with simple steps. In this tutorial, all commands are running with the root account. So you must have root user privilege or sudo privileges to complete this. The Desktop users can upgrade it immediately and use the new features, But the users with Debian servers can wait for their…

Read More

Keeping in touch with friends and family is important, especially when you live far away from them. Thanks to modern technology, keeping in touch has become much easier over the last few years. We can send text messages, snap selfies, and video calls with just a few taps. If you use Linux as your primary operating system or as a secondary OS on your computer, you might be interested in installing Skype on it. This article will help you learn how to install Skype on Debian. Read on to discover more. How to Install Skype on Debian First of all,…

Read More

The login screen provides additional security for your system from unauthorized access. We do not recommend this until specifically required. This tutorial helps you to set up Windows 8/8.1 log automatically on system startup, even if the user account is password protected. Configure Auto-Login for Windows Here are the steps to enable auto login for Windows 8 and 8.1. Step 1 – Launch run window (WINDOW + R) and type netplwiz and press Enter key. This will open the user accounts window. Step 2 – You will see the list of account. Select the account you want to enable auto-login…

Read More

You can use the PHP count() or sizeof() function to get the number of elements or values in an array. The count() and sizeof() method returns 0 for a variable that has been initialized with an empty array. If the array is not initialized, you will see an error. In that case, you can use the isset() function to check whether a variable is set or not. Using sizeof():

Using count():

Read More

MongoDB is a popular NoSQL database that is designed to scale out and to be developer-friendly. For macOS users, one of the simplest methods to install MongoDB is using Homebrew, a popular package manager. This article provides a step-by-step guide on how to do just that. Prerequisites macOS: Ensure you’re running a supported version of macOS. Most modern versions should work without any issues. Homebrew: If you don’t have Homebrew installed on your macOS, you will need to install it. If you’re not sure, you can check by typing `brew` in your terminal. If it’s not installed, you’ll receive a…

Read More

MySQL, a robust and widely-used open-source relational database management system, is a cornerstone for many applications, particularly those involving web services. This comprehensive guide will help you install MySQL 8.0 on CentOS 7 or CentOS 6, ensuring a successful setup for your development or production environment. Prerequisites A CentOS 7 or CentOS 6 server Root or sudo privileges Basic familiarity with Linux terminal commands Step 1: System Update Keeping your system updated is crucial for security and compatibility. Begin by updating your system’s packages: sudo yum update This command refreshes your package index and updates all your system packages to…

Read More

Angular is an frameworks, libraries, assets, and utilities. It keeps track of all the components and checks regularly for their updates. This tutorial will help you to install the Angular CLI tool on CentOS 8/7/6 and RHEL 8/7/6 Linux operating systems. Step 1 – Install Node.js First of all, you need to install node.js on your system. Use the following set of commands to configure node.js yum repository in your CentOS system and install it. curl -sL https://rpm.nodesource.com/setup_20.x | sudo -E bash – sudo yum install nodejs Make sure you have successfully installed node.js and NPM on your system node…

Read More

Cron jobs are automated scripts that are essential in system administration and are prevalent in Unix-like operating systems. They allow system administrators and developers to schedule tasks (jobs) to run at specific times. This can be incredibly useful for tasks such as database maintenance, system updates, and data backup. This article will take a deep dive into how to schedule a cron job specifically for the last day of the month, an operation that might seem simple at first but can be surprisingly nuanced. Understanding Cron Before we delve into scheduling cron jobs, it’s crucial to understand what cron is…

Read More

This tutorial will help you to check if a string contains any substring in PHP programming language. For example, you want to run a specific line of code only if an input string contains another substring in it. Here is a sample PHP programme, which will evaluate to true because the main string $str contains the substring ‘TecAdmin’ in it. This will print “true”.

Another PHP program will evaluate to false because the main string $str doesn’t contains the substring ‘Hello’ in it. This will nothing print.

Read More