FreeBSD: Upgrade PHP4 To PHP5

PHP4 is a very old version of PHP and is not supported anymore. Therefore, it is recommended to upgrade to a newer version of PHP, such as PHP 7.4 or 8.0. However, if you still need to upgrade from PHP4 to PHP5 for some reason, you can follow the steps below: Install the PHP5 packages: … Read more

Debian IPv6 Networking Configuration

To configure IPv6 networking on Debian, you can follow these steps: Edit the /etc/network/interfaces file: sudo nano /etc/network/interfaces Add the following lines to the file, assuming your network interface is eth0: iface eth0 inet6 auto This will tell the system to use the automatic IPv6 configuration method, which is called stateless address autoconfiguration (SLAAC). Save … Read more

MySQL Reset Root Password

To reset the root password in MySQL, you can follow the steps below: Stop the MySQL service: sudo service mysql stop Start MySQL in safe mode: sudo mysqld_safe –skip-grant-tables –skip-networking & Connect to the MySQL server: mysql -u root At the MySQL prompt, enter the following commands: use mysql; update user set authentication_string=PASSWORD(“new_password”) where User=’root’; … Read more

How To Run / Execute Command Using SSH

To run a command using SSH on a remote server, follow these steps: Open a terminal or command prompt on your local machine. Type the following command: ssh username@remote_host command Replace username with your username on the remote server, remote_host with the hostname or IP address of the remote server, and command with the command … Read more

UNIX Samba: Make A Share Writable

To make a Samba share writable on a UNIX system, follow these steps: Open the Samba configuration file for editing. The location of this file may vary depending on your system, but it is usually located at /etc/samba/smb.conf. Locate the section of the file that defines the share you want to make writable. This section … Read more

UNIX Create User Account

To create a new user account on a UNIX system, follow these steps: Log in to the system with administrative privileges. Open a terminal or command prompt. Type the following command and press Enter: sudo adduser username Replace username with the desired username for the new user account. The system will prompt you to set … Read more