Constantly challenging ourselves to deliver more to our clients

System Administration

How to Detect Duplicate Links on a Website

Detecting duplicate links on a website is important for SEO optimization and improving user experience. Here are several ways to achieve it: Using online tools: Tools like Screaming Frog or Ahrefs allow you to crawl all the links on a website and show you if there are any duplicates. Screaming Frog has a specific feature [...]

By |2024-10-02T16:01:30+00:00October 2nd, 2024|Python, Scripting, SEO, System Administration|0 Comments

Usage and Examples of the grep

The grep command is widely used in Unix/Linux systems to search for patterns in text files. It’s useful for filtering lines that match a specific text or regular expression. Basic syntax grep [options] "pattern" file pattern: The text or regular expression you want to search for. file: The file where you want to perform the [...]

By |2024-09-28T16:08:48+00:00September 28th, 2024|Centos, Dedicated servers, Scripting, System Administration, Ubuntu|0 Comments

Python script logging and posting in a Discuz forum

#!/usr/bin/python3 # -*- coding: utf-8 -*- import logging import re import requests class AutoDiscuz: LOGIN_URL = "/member.php?mod=logging&action=login&loginsubmit=yes" LOGIN_POST = {"username": "", "password": ""} def __init__(self, forum_url, user_name, password): """初始化论坛 url、用户名、密码和代理服务器.""" self.forum_url = forum_url self.user_name = user_name self.password = password self.formhash = None self.is_login = False self.session = requests.Session() logging.basicConfig(level=logging.INFO, format="[%(levelname)1.1s %(asctime)s] %(message)s") def login(self): """登录论坛.""" [...]

By |2024-09-28T15:46:12+00:00September 28th, 2024|Python, Scripting, System Administration|5 Comments

Base-admin.class.php PHP Fatal error: Uncaught Error: [] operator not supported for strings

The error you're encountering, "PHP Fatal error: Uncaught Error: [] operator not supported for strings", indicates that in the file base-admin.class.php of the Revolution Slider (or RevSlider) plugin, you are trying to use the [] operator to add a value to a variable that has been declared as a string. The [] operator is used [...]

How to Download an Entire Directory Using SFTP?

When working with SFTP (SSH File Transfer Protocol), you might need to download an entire directory from a remote server to your local machine. Here's how you can do it. 1. Connecting to the SFTP Server First, you need to connect to the SFTP server. You can do this from the command line using the [...]

By |2024-08-26T09:00:12+00:00August 26th, 2024|Centos, Dedicated servers, System Administration, Ubuntu|0 Comments

Step-by-Step Guide to Configuring Lsyncd with Public Key Authentication

1. Install Lsyncd First, install Lsyncd on the main server where you want to set up synchronization. For Debian/Ubuntu-based systems: sudo apt-get update sudo apt-get install lsyncd For Red Hat/CentOS-based systems: sudo yum install epel-release sudo yum install lsyncd 2. Generate SSH Public Key Generate an SSH key pair (public and private keys) on the [...]

By |2024-08-26T08:40:12+00:00August 26th, 2024|Centos, Dedicated servers, System Administration, Ubuntu|0 Comments

Error: “Temporary or permanent failure on startup of”

This error generally means that Lsyncd encountered an issue while trying to start. Common causes may include: Configuration Problems: Check that your Lsyncd configuration file (/etc/lsyncd/lsyncd.conf.lua) is free of syntax errors or incorrect parameters. Insufficient Permissions: Ensure that Lsyncd has the necessary permissions to access the directories and files it is trying to sync. Network [...]

By |2024-08-26T08:33:13+00:00August 26th, 2024|Centos, Dedicated servers, System Administration, Ubuntu|0 Comments

Manual for Using lftp in Linux

1. Introduction to lftp lftp is a command-line client for transferring files via FTP, FTPS, HTTP, HTTPS, and other protocols. It is very versatile and offers advanced features like resuming downloads, directory synchronization, and background operations. 2. Installing lftp To install lftp on a Debian/Ubuntu-based system, use the following command: sudo apt-get update sudo apt-get [...]

By |2024-08-25T20:32:02+00:00August 25th, 2024|Centos, Dedicated servers, System Administration, Ubuntu|0 Comments

Complete Manual for Using rsync in Linux

rsync is a powerful file synchronization and transfer tool used in Linux systems. It allows copying and synchronizing files and directories between different locations, either locally or between remote systems. Below is a step-by-step guide on how to use rsync with practical examples. 1. Installing rsync In most Linux distributions, rsync comes pre-installed. However, if [...]

By |2024-08-25T20:25:23+00:00August 25th, 2024|Centos, Dedicated servers, System Administration, Ubuntu|0 Comments

Complete Manual for Lsyncd Usage and Configuration

1. Introduction to Lsyncd Lsyncd (Live Syncing Daemon) is a tool that combines file system monitoring using inotify with the file synchronization capabilities of rsync. It's ideal for near real-time synchronization between servers, especially when a simple and efficient solution is needed. 2. Installing Lsyncd To install Lsyncd on a Debian/Ubuntu-based system, use the following [...]

By |2024-08-25T14:24:25+00:00August 25th, 2024|Centos, Dedicated servers, Plesk, System Administration, Ubuntu|0 Comments
Go to Top