Md Arif Billah Md Arif Billah
  • Home
  • About Us
  • Services
  • Portfolio
  • Blog
  • Contacts
Hire me
Md Arif Billah

Linux System administration , cloud/server security specialist and Wordpress Developer

  • Home
  • About Us
  • Services
  • Portfolio
  • Blog
  • Contacts
find with me
DNS | Portfolio
3 min read

Domain registrar transfer Namecheap to hostinger

August 28, 2024

Domain registrar transfer Namecheap to hostinger

Transferring a domain name registrar involves moving your domain name from one registrar (the company where your domain is currently registered) to another registrar (the company where you want to manage your domain). Here are the general steps involved in transferring a domain name registrar:

  1. Check Transfer Eligibility: Ensure that your domain name is eligible for transfer. Some domain extensions (TLDs) might have specific transfer restrictions or conditions.

  2. Prepare the Domain for Transfer:

    • Unlock the domain: Log in to your current domain registrar’s account and unlock the domain if it’s locked to prevent unauthorized transfers.
    • Obtain the authorization code (EPP code): This code is required to initiate the domain transfer process. It’s usually found within your current registrar’s account settings.
  3. Select a New Registrar: Choose a new registrar where you want to transfer your domain. Ensure they support the domain extension you have and provide domain transfer services.

  4. Initiate the Transfer with the New Registrar:

    • Create an account with the new registrar if you haven’t already.
    • Initiate the domain transfer process through the new registrar’s website.
    • Provide the domain name you want to transfer and the authorization code (EPP code) during the transfer initiation process.
  5. Confirm the Transfer:

    • You’ll receive an email from both the old and new registrars. Follow the instructions to confirm the transfer request.
    • Verify the email address associated with the domain to approve the transfer.
  6. Wait for Transfer Approval:

    • The transfer process usually takes several days to complete. During this time, both registrars verify and authorize the transfer.
    • Keep an eye on your email for any notifications or confirmation requests.
  7. Check Domain Status:

    • After the transfer is complete, log in to your new registrar’s account to confirm that the domain has been successfully transferred.
    • Ensure that all domain settings, such as nameservers, contact information, and domain expiration date, are accurate.
  8. Update DNS Settings (if necessary): If your domain’s DNS (Domain Name System) is managed by your registrar, make sure your DNS settings are correctly configured.

  9. Monitor the Domain: Check your domain regularly after the transfer to ensure it is functioning correctly and that there are no issues with website or email functionality.

  10. Renew the Domain (if needed): It’s recommended to renew your domain at the new registrar for an additional year (or more) to maintain ownership and avoid expiration issues.

Remember that these steps might vary slightly depending on the specific registrars and domain extensions involved. Always follow the instructions provided by both the old and new registrars to ensure a smooth and successful domain transfer process.

DNS | Portfolio
5 min read

CloudFlare Configuration and Increase Server Security

August 28, 2024

CloudFlare Configuration and Increase Server Security

Cloudflare is a prominent global content delivery network (CDN), cybersecurity, and internet security company that provides various services to optimize and secure websites, APIs, and other internet services. It was founded in 2009 and has since grown into one of the largest and most influential companies in the realm of content delivery and internet security.

Key Aspects of Cloudflare:

  1. Content Delivery Network (CDN): Cloudflare operates a global network of servers strategically placed around the world. These servers help deliver website content to users more quickly by caching static content and serving it from the nearest server, reducing latency and improving load times.
  2. Distributed DNS Services: Cloudflare offers Domain Name System (DNS) services, providing authoritative DNS resolution, ensuring that website addresses are correctly mapped to their respective IP addresses.
  3. Security Services: Cloudflare provides a suite of security services, including Distributed Denial of Service (DDoS) protection, web application firewall (WAF), bot mitigation, SSL/TLS encryption, and security analytics to protect websites from various online threats, such as cyberattacks and malicious traffic.
  4. Load Balancing and Traffic Optimization: Cloudflare’s load balancing services help distribute incoming web traffic across multiple servers, ensuring websites can handle high traffic loads without slowdowns or downtime.
  5. Serverless Computing: Cloudflare Workers is a serverless computing platform that allows developers to run their code closer to the end-users directly on Cloudflare’s edge servers, reducing latency and enhancing performance.
  6. Analytics and Insights: Cloudflare provides various analytics tools to track website traffic, performance metrics, and security threats in real-time, offering insights that help in better understanding and optimizing web traffic.
  7. Secure and Fast DNS Resolver: Cloudflare’s public DNS resolver, 1.1.1.1, is known for its speed and privacy, providing users with a faster and more private internet browsing experience.
  8. Edge Computing Capabilities: Cloudflare’s edge computing capabilities bring compute resources closer to the end-user, enabling faster response times and reducing the load on the origin server.

Cloudflare’s services are designed to help improve the performance, reliability, and security of websites and internet services while also providing developers and businesses with tools to optimize their online presence. It’s widely used by a variety of businesses, from small websites to large enterprises, and is valued for its ease of use, powerful features, and extensive network infrastructure.

1. Content Delivery Network (CDN) Benefits:

  • Improved Website Performance: Cloudflare’s global network of servers caches website content and serves it from the nearest edge server, reducing latency and improving load times.
  • Bandwidth Savings: Caching static content at edge servers helps reduce the origin server’s load, saving bandwidth costs.
  • Global Reach: The network spans multiple data centers worldwide, ensuring users receive content from the nearest location, regardless of their geographic location.

2. Security and DDoS Protection:

  • DDoS Protection: Cloudflare’s network helps mitigate Distributed Denial of Service (DDoS) attacks, absorbing and mitigating attack traffic before it reaches the origin server.
  • Web Application Firewall (WAF): Cloudflare offers WAF capabilities to protect against various online threats, such as SQL injection, cross-site scripting, and more.
  • SSL/TLS Encryption: Secure Sockets Layer (SSL) and Transport Layer Security (TLS) encryption services ensure secure connections between users and the website.

3. DNS Services:

  • Fast and Secure DNS Resolution: Cloudflare’s DNS services offer faster resolution times and security features, helping prevent DNS-based attacks and enhancing privacy.

4. Load Balancing and Traffic Optimization:

  • Load Balancing: Helps distribute incoming traffic across multiple servers, improving website availability and performance during traffic spikes.

5. Edge Computing and Serverless Solutions:

  • Edge Computing Capabilities: Cloudflare Workers allow developers to execute code closer to end-users, reducing latency and enabling serverless computing at the edge.

6. Analytics and Insights:

  • Real-time Analytics: Cloudflare provides analytics tools to monitor website traffic, performance, and security threats in real-time, offering insights for better decision-making.

7. Cost Savings and Ease of Use:

  • Cost-Efficiency: Cloudflare’s services often lead to bandwidth and infrastructure savings due to caching and traffic optimization.
  • Easy Setup and Management: Cloudflare’s services are generally easy to set up and manage, providing a user-friendly dashboard for configuration and monitoring.

8. Improved SEO and User Experience:

  • Faster Load Times: Improved site speed due to CDN and caching contributes to better user experience and can positively impact search engine rankings.
  • Site Availability: DDoS protection and load balancing can help maintain site availability, reducing downtime and improving user experience.

Cloudflare’s suite of services collectively provides a robust solution for enhancing website performance, security, and reliability, making it an attractive option for businesses and individuals seeking to optimize their online presence.

 

Portfolio | Server Config
3 min read

Apache Engine config and WP website Build

August 28, 2024

Apache Engine config and WP website Build

Configuring the Apache web server and building an e-commerce website involves several steps. Here’s a basic outline to help guide you through the process:

Apache Web Server Configuration:

  1. Install Apache:

    • If not already installed, use package managers like apt or yum to install Apache. For example, on Ubuntu, you can run:sudo apt update
      sudo apt install apache2
  2. Start Apache:

    • After installation, start the Apache service and enable it to run on system boot:sudo systemctl start apache2
      sudo systemctl enable apache2
  3. Configure Virtual Hosts:

    • Set up virtual hosts in Apache to host your e-commerce site.
    • Create a configuration file for your website (e.g., yourdomain.conf) in the /etc/apache2/sites-available/ directory.
  4. Enable Virtual Hosts:

    • Enable the site by creating a symbolic link to the sites-enabled directory:sudo a2ensite yourdomain.conf
  5. Configure .htaccess (Optional):

    • Use .htaccess files for directory-specific configurations or URL rewriting if needed.
  6. Configure Security (Optional but Recommended):

    • Implement SSL certificates to enable HTTPS for secure transactions. You can use Let’s Encrypt or other certificate authorities.

E-commerce Website Development:

  1. Choose E-commerce Platform:

    • Select an e-commerce platform like WooCommerce (for WordPress), Magento, Shopify, or custom solutions like Laravel or Django.
  2. Set Up Development Environment:

    • Install the necessary software stack (PHP, database server like MySQL/MariaDB, etc.).
  3. Develop the Website:

    • Depending on the platform, develop or customize the design, add products, set up payment gateways, configure shipping, and manage inventory.
  4. Security Measures:

    • Implement security best practices such as input validation, secure payment gateway integration, SSL usage, etc.
  5. Optimize Performance:

    • Optimize the website for performance by caching, optimizing images, and utilizing content delivery networks (CDNs).
  6. Test the Website:

    • Perform comprehensive testing to ensure all features work as expected, including user registration, product pages, checkout process, and payment gateway functionality.
  7. Launch and Go Live:

    • Once you’re satisfied with the development and testing, go live by pointing your domain to the Apache server.

Ongoing Maintenance:

  1. Regular Updates:

    • Keep your e-commerce platform, plugins, and server software up to date to address security vulnerabilities and improve performance.
  2. Regular Backups:

    • Implement a regular backup strategy for your e-commerce website to prevent data loss in case of unexpected issues.
  3. Monitoring:

    • Set up monitoring tools to track website performance, uptime, and visitor activity.

Remember that building an e-commerce website involves various complexities, especially in terms of payment processing, security, and scalability. Depending on your skill level and requirements, it might be beneficial to seek professional help or use established e-commerce platforms to ensure security and proper functionality of your website.

Portfolio | Website
3 min read

Lightsail configuration and Migration WordPress website on the AWS

August 28, 2024

Lightsail configuration and Migration WordPress website on the AWS







Migrating a WordPress website to AWS Lightsail involves a few steps. Lightsail is a simplified cloud service provided by AWS, offering a user-friendly interface and pre-configured options, making the migration process relatively straightforward. Here’s a step-by-step guide:

1. Create a Lightsail Instance:

  1. Log in to AWS Lightsail: Go to the AWS Management Console and navigate to Lightsail.

  2. Create an Instance: Click on “Create instance” and select the appropriate instance image. Lightsail offers a pre-configured WordPress image, making the setup easier.

  3. Select Instance Plan: Choose the instance plan based on your requirements (e.g., amount of RAM, CPU, and storage).

  4. Name your Instance: Give your instance a unique name for easy identification.

  5. Launch the Instance: Click on “Create Instance” to deploy your Lightsail WordPress instance.

2. Access WordPress Installation on Lightsail:

  1. Access Lightsail Instance: Once the instance is running, go to the Lightsail console and access your WordPress installation through the browser-based SSH terminal provided.

  2. Access WordPress Files: Use SSH to navigate to the WordPress directory. Typically, for the Lightsail WordPress image, it’s located in /opt/bitnami/apps/wordpress/htdocs/.

3. Migrate WordPress Content:

  1. Back up Existing WordPress Site:

    • In your current WordPress site, use a plugin like “All-in-One WP Migration” or “Duplicator” to create a full backup of your WordPress site.
  2. Download Backup:

    • Download the backup file generated by the plugin to your local system.
  3. Upload Backup to Lightsail:

    • Using SFTP or SSH, upload the backup file to the WordPress directory on your Lightsail instance.
  4. Restore the Backup:

    • Use the backup plugin to restore the backup on your Lightsail WordPress instance. Follow the plugin’s instructions for restoration.

4. Domain Configuration:

  1. Point Domain to Lightsail Instance:

    • In your domain registrar’s settings, configure the DNS records to point to the IP address of your Lightsail instance.
  2. Update WordPress Settings:

    • Log in to your WordPress dashboard on Lightsail and update the WordPress Address (URL) and Site Address (URL) under Settings > General to match your domain.

5. SSL Certificate Installation (Optional but recommended):

  1. Set Up SSL:

    • Lightsail allows you to easily set up a free SSL certificate using Let’s Encrypt. Secure your site with HTTPS.
  2. Install and Configure SSL Certificate:

    • Follow the instructions in the Lightsail console to enable and configure the SSL certificate for your domain.

6. Test and Verification:

  1. Check Website Functionality:

    • Visit your domain to ensure that the website is accessible and functioning correctly on the Lightsail instance.
  2. Test for HTTPS:

    • Verify that the SSL certificate is active and the site is accessible through HTTPS.

7. Post-Migration Steps:

  1. Regular Maintenance:
    • Ensure regular updates for WordPress and plugins. Set up backups and security measures to maintain a secure environment.

This process may vary based on your specific website setup and requirements. Lightsail simplifies many of these steps, making it user-friendly for hosting and managing WordPress websites on AWS.

Portfolio | Server Config
2 min read

cPanel/WHM install on the Almalinux

August 28, 2024

cPanel/WHM install on the Almalinux

Research
Design

CEO Marketing

Design-2


The installation processes for cPanel, JetBackup, and Softaculous can be detailed and might vary based on the server’s operating system, the specific version of the software, and individual preferences. Below is an overview of the installation steps for each of these applications:

cPanel:

cPanel is a widely-used web hosting control panel. To install cPanel, the process typically involves:

  1. Pre-Installation Checklist:

    • Ensure the server meets the system requirements specified by cPanel.
    • Have a clean installation of a compatible operating system (commonly CentOS).
  2. Access to Installation Files:

    • Acquire the cPanel & WHM installation file by purchasing a license from the official cPanel website.
  3. Execute the Installation Script:

    • Run the installation script via SSH as root.cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
  4. Follow the Installer Instructions:

    • The installation script guides you through the installation process. Follow the prompts and provide the necessary information.
  5. Post-Installation Configuration:

    • Access the cPanel control panel through a web browser at https://your-server-IP:2087 and set up and configure additional settings.

JetBackup:

JetBackup is a backup solution that works with cPanel servers. To install JetBackup:

  1. Download Installation Script:

    • Download the installation script from the official JetBackup website.
  2. Run the Installation Script:

    • Execute the installation script on your cPanel server as root or with elevated privileges.bash jetbackup_install.sh
  3. Configuration:

    • Follow the setup steps provided in the installation script.
    • Configure backup settings, storage locations, and schedules through the JetBackup web interface in WHM/cPanel.

Softaculous:

Softaculous is an auto-installer tool that integrates with various control panels, including cPanel. The installation process often involves:

  1. Login to SSH:

    • Access the server via SSH as root or with elevated privileges.
  2. Download the Installation Script:

    • Fetch the Softaculous installation script.wget -N http://files.softaculous.com/install.sh
  3. Run the Installer:

    • Execute the installation script.chmod 755 install.sh
      ./install.sh
  4. Finish Installation:

    • Follow the on-screen instructions to complete the installation process.
    • Access Softaculous through the cPanel interface and configure settings as needed.

Please note that these instructions are general and can vary. Always refer to the official documentation provided by the respective software vendors for the most current and detailed installation instructions, ensuring compatibility with your server’s operating system and setup

Portfolio | Server Config
3 min read

Install Plesk Web Panel and Security setup.

October 28, 2023

Install Plesk Web Panel and Security setup.

Plesk Install on the server

Plesk is a web hosting control panel that simplifies the management of web servers, providing an easy-to-use interface for website and server administration. Installing Plesk generally involves several steps. Below is an overview of the installation process:

Before Begin:

  1. Check System Requirements: Ensure that your server meets the hardware and software requirements specified by Plesk. These requirements might vary based on the version and edition you are installing.
  2. Prepare the Server: Ensure the server operating system is updated. It’s also a good idea to back up any critical data on the server.

Steps for Plesk Installation:

  1. Get the Plesk Installer Script:
    • Log in to your server via SSH with root privileges.
    • Download the installer script using curl or wget:

      curl -J -O https://autoinstall.plesk.com/plesk-installerwget https://autoinstall.plesk.com/plesk-installer

  2. Make the Installer Script Executable:

    chmod +x plesk-installer

  3. Run the Installer:
    • Start the installation by executing the Plesk installer script:

      ./plesk-installer

    • Follow the on-screen prompts to install Plesk. The installer will guide you through the process, allowing you to select the Plesk edition, specify the installation components, set up the administrator password, and configure the installation settings.
  4. Access Plesk:
    • Once the installation is complete, access Plesk via a web browser. Use your server’s IP address or domain followed by the Plesk port (default is 8443):

      https://your_server_IP:8443

    • Log in using the administrator credentials you set during the installation.
  5. Configuration:
    • After logging into Plesk, you can further configure the settings, set up websites, manage users, and perform various administrative tasks using the Plesk web-based interface.
  6. Secure Plesk:
    • It’s important to ensure Plesk is securely configured by following best practices, such as regularly updating the software, configuring firewalls, using strong passwords, and implementing SSL certificates.

Please note that the installation steps might vary based on the operating system and Plesk version. Always refer to the official Plesk documentation or installation guides for the specific version you are installing for more detailed and up-to-date instructions.

Portfolio | ubuntu Server
2 min read

OVH web server setup

August 28, 2024

OVH web server setup

Configuring a Virtual Private Server (VPS) for hosting a website involves several steps. Here’s a general outline of the process:

1. Choosing a VPS Provider:

Select a VPS provider that meets your requirements in terms of resources, location, pricing, and customer support. Popular providers include AWS Lightsail, DigitalOcean, Linode, Vultr, and others.

2. VPS Setup:

  1. Create and Access the VPS:

    • Choose the operating system you want to use (e.g., Ubuntu, CentOS, etc.).
    • Once your VPS is provisioned, use SSH (Secure Shell) to access it.
  2. Update the System:

    • Run system updates to ensure that your VPS is running the latest software and security patches.

3. Web Server Setup:

  1. Install a Web Server:

    • Popular web servers include Apache, Nginx, and LiteSpeed. Install your preferred web server.
    • For instance, to install Nginx on Ubuntu, use:
       
  2. Configure the Web Server:

    • Set up server blocks (Nginx) or virtual hosts (Apache) to host your website.
    • Point the server configuration to your website files.

4. Database Setup:

  1. Install a Database Management System:

    • For dynamic websites (like those built on WordPress), install a database system like MySQL or MariaDB.
  2. Secure the Database:

    • Run security scripts or configure security settings for your database management system.

5. Domain Configuration:

  1. Point the Domain to the VPS IP:

    • In your domain registrar’s settings, configure the DNS records to point to your VPS’s IP address.
  2. Set Up Virtual Hosts (Optional but Recommended):

    • Configure the web server to respond to requests for your domain name.

6. Security Measures:

  1. Firewall Configuration:

    • Set up a firewall (like UFW or iptables) to control incoming and outgoing traffic to your VPS.
  2. SSL Certificate Installation (Optional but Recommended):

    • Install an SSL certificate to encrypt the data transfer between the server and users’ browsers.

7. Website Deployment:

  1. Upload Website Files:

    • Use SFTP (Secure File Transfer Protocol) or SSH to transfer your website files to the VPS.
  2. Adjust File Permissions:

    • Set appropriate file permissions to ensure security and proper functionality.

8. Monitoring and Maintenance:

  1. Monitoring Tools:

    • Implement monitoring tools to keep an eye on server performance and uptime.
  2. Regular Updates and Backups:

    • Keep your system and applications updated. Schedule regular backups to prevent data loss.

This is a general guide and may require adjustments based on your specific requirements and the VPS provider you choose. Remember to secure your server, regularly update your software, and back up your data to ensure a stable and secure hosting environment for your website








Lightsail | Portfolio
3 min read

WordPress Website Migration on the AWS lightsail

August 28, 2024

WordPress Website Migration on the AWS lightsail




Migrating a WordPress website to AWS Lightsail involves a few steps. Lightsail simplifies the process of deploying and managing web applications, including WordPress. Below is a general guide for migrating a WordPress site to AWS Lightsail:

Prerequisites:

  • AWS Account: You’ll need an active AWS account.
  • Existing WordPress Site: The WordPress site you want to migrate.
  • Access Credentials: Ensure you have administrative access to your WordPress site.

Steps to Migrate WordPress to AWS Lightsail:

1. Create an Instance in Lightsail:

  1. Log in to AWS Lightsail: Log in to the AWS Management Console and navigate to Lightsail.

  2. Create an Instance: Click on “Create instance” and choose the Linux/Unix platform. Select an instance plan based on your requirements.

  3. Name your Instance: Give your instance a unique name for easy identification.

  4. Launch Instance: Click on “Create Instance” to deploy your Lightsail instance.

2. Set up WordPress on Lightsail:

  1. Connect to your Lightsail instance: Once your Lightsail instance is running, you can connect to it via SSH using the browser-based SSH terminal provided in the Lightsail console.

  2. Install WordPress: Use commands (e.g., wget) to download and install WordPress. Follow the installation process detailed on the WordPress website.

  3. Configure your WordPress Installation: Adjust settings, set up databases, and configure your WordPress instance as needed.

3. Back up and Migrate your WordPress Content:

  1. Back up your Current WordPress Site: In your existing WordPress site, use a plugin like “All-in-One WP Migration” or “Duplicator” to create a full backup of your WordPress site.

  2. Download Backup: Download the backup file generated by the plugin to your local system.

  3. Upload to Lightsail Instance: Using SSH or SFTP, upload the backup file to your Lightsail instance.

  4. Restore the Backup on Lightsail: If using a plugin, follow the plugin’s instructions to restore the backup on your Lightsail WordPress instance.

4. DNS Configuration:

  1. Point Domain to Lightsail Instance: In your DNS provider’s settings, configure the domain to point to the IP address of your Lightsail instance.

  2. Update WordPress Settings: Log in to your WordPress dashboard on Lightsail, and update the WordPress Address (URL) and Site Address (URL) under Settings > General to match your domain.

5. SSL Certificate (Optional but recommended):

  1. Set up SSL: Lightsail allows you to easily set up a free SSL certificate using Let’s Encrypt. This secures your site with HTTPS.

  2. Install and Configure the SSL Certificate: Follow the instructions in the Lightsail console to enable and configure the SSL certificate for your domain.

After completing these steps, your WordPress site should be successfully migrated to AWS Lightsail. Ensure that everything is working as expected by browsing your domain and testing the functionality of the website.

Portfolio | Website
2 min read

Agency Website using WordPress

August 28, 2024

Agency Website using WordPress

2022-GYM

Visit the Website

Step 1: Domain, Hosting, and WordPress Setup

  1. Domain and Hosting: Choose a domain name and select reliable hosting suitable for a professional website.
  2. Install WordPress: Follow your hosting provider’s instructions to install WordPress.

Step 2: Choose a Theme

  1. Select a Professional Theme: Choose a WordPress theme suitable for a digital agency. Look for one that supports portfolio display, services showcase, and has a professional design.
  2. Install and Activate: Install the chosen theme and activate it in the WordPress dashboard.

Step 3: Customize the Website

  1. Customization: Use the theme’s customization options to modify colors, fonts, layouts, and other visual elements to reflect your agency’s branding.
  2. Create Essential Pages: Create and design pages such as Home, About Us, Services, Portfolio, Testimonials, Contact, and Blog.

Step 4: Content Creation

  1. Service Offerings: Clearly present the services your agency offers. Use engaging content and imagery to describe each service.
  2. Portfolio Showcase: Display previous projects in a portfolio section with detailed case studies if possible.
  3. Testimonials and Case Studies: Include client testimonials or case studies to showcase successful projects.
  4. Blog: Consider a blog to share industry insights, updates, and useful information related to your field.

Step 5: Integrations and Functionality

  1. Contact Forms: Use plugins to create interactive and user-friendly contact forms.
  2. SEO Optimization: Install an SEO plugin to optimize your site for search engines.
  3. Social Media Integration: Add social media icons and enable sharing options to expand your agency’s online presence.

Step 6: Performance and Security

  1. Performance Optimization: Improve site speed by optimizing images, enabling caching, and using a reliable hosting service.
  2. Security Measures: Install security plugins, keep WordPress, themes, and plugins updated, and use strong passwords.

Step 7: Launch and Test

  1. Final Checks: Review the site thoroughly for any errors, broken links, or formatting issues.
  2. Go Live: Once everything is set, launch your website for the public.

Step 8: Maintenance and Updates

  1. Regular Updates: Keep WordPress, themes, and plugins updated to ensure security and functionality.
  2. Content Updates: Regularly update content, portfolio, and blog posts to keep your website fresh.

download

Portfolio | Website
3 min read

Domain Hosting Provider Company Werbsite

August 28, 2024

Domain Hosting Provider Company Werbsite



Visit Now

Integrating WordPress with WHMCS (Web Host Manager Complete Solution) or other billing systems can be beneficial, especially for hosting companies or businesses that require client management and invoicing solutions. Here’s an overview of how you might use WordPress in conjunction with a billing system like WHMCS:

WordPress Website:

WordPress provides a user-friendly content management system and is widely used for building various types of websites, from blogs to e-commerce platforms. You can use it to create an attractive front-end for your business, offering information, services, and products to your customers.

WHMCS Billing System:

WHMCS is a comprehensive client management and billing system designed specifically for hosting companies. It offers functionalities such as invoicing, client management, support ticket systems, domain registration, and more.

Integration Steps:

  1. WordPress Installation:

    • Set up your WordPress website to showcase your services, products, and other information relevant to your business.
  2. WHMCS Integration:

    • Install WHMCS on your server.
    • Configure WHMCS according to your business needs, setting up products, services, pricing, and billing details.
  3. Integration Techniques:

    • Utilize WHMCS Bridge: Some plugins or tools, like WHMCS Bridge, allow you to integrate WHMCS with WordPress seamlessly. This allows users to access client areas or billing sections without leaving the WordPress site.
    • Embed Forms or Pages: You can embed WHMCS forms or client login portals directly into your WordPress website using custom coding or plugins.
  4. Single Sign-On (SSO):

    • Enable SSO to allow users logged into WordPress to access WHMCS without separate logins. Plugins can facilitate this integration by synchronizing user data between the two systems.
  5. Custom Development:

    • Custom development might be necessary for more complex integrations, allowing you to merge databases, create custom widgets, or synchronize data between the platforms.
  6. User Experience and Design:

    • Ensure a seamless transition between your WordPress site and the WHMCS portal, maintaining a consistent design and user experience.

Benefits:

  • Unified Experience: Clients can navigate between your WordPress site and WHMCS without feeling a stark transition.
  • Efficient Management: Access client data, billing, and support functions directly from your website.
  • Enhanced User Interaction: Offering a more user-friendly and streamlined experience can lead to increased customer satisfaction.

Considerations:

  • Security: Ensure that the integration is secure and follows best practices to protect sensitive client data.
  • Maintenance: Regularly update both WordPress and WHMCS to maintain compatibility and security.

The integration of WordPress with WHMCS can streamline your business operations and offer clients a cohesive experience. Consider the specific needs of your business and seek expert advice if required to ensure a smooth integration.

Portfolio | Website
2 min read

eCommerce Website build by Woocommerce using WordPress

August 28, 2024

eCommerce Website build by Woocommerce using WordPress





Visit the website

Step 1: Set Up WordPress

  1. Domain and Hosting: Choose a domain name and select a hosting provider that supports WordPress.
  2. WordPress Installation: Install WordPress on your hosting platform.
  3. Access Dashboard: Log in to your WordPress dashboard using the provided credentials.

Step 2: Install and Set Up WooCommerce

  1. Install WooCommerce: In your WordPress dashboard, navigate to “Plugins” > “Add New” and search for “WooCommerce.” Install and activate the plugin.
  2. WooCommerce Setup Wizard: Run the WooCommerce setup wizard to configure fundamental settings for your online store, including currency, payment options, shipping, taxes, etc.

Step 3: Choose a WooCommerce Compatible Theme

  1. Select a Theme: Choose a WordPress theme that’s WooCommerce compatible and suits your store’s style.
  2. Install and Activate Theme: Install the selected theme and activate it in the WordPress dashboard.

Step 4: Customize Your Store

  1. Customize Store Design: Use the theme’s customization options to adjust the store’s appearance, including colors, fonts, and layouts.
  2. Add Pages and Categories: Create pages like Home, Shop, About, Contact, and set up product categories.

Step 5: Add Products

  1. Product Creation: Start adding products to your store. In the WordPress dashboard, navigate to “Products” > “Add Product.” Include product details, images, pricing, and descriptions.
  2. Product Organization: Categorize and tag products to enhance navigation and user experience.

Step 6: Set Up Payment and Shipping

  1. Payment Gateway Integration: Configure your preferred payment gateways (e.g., PayPal, Stripe, etc.) through WooCommerce settings.
  2. Shipping Configuration: Set up shipping methods, rates, and zones to manage product delivery options.

Step 7: Test Your Store

  1. Preview and Test: Review your store from a customer’s perspective. Test the browsing, shopping, and checkout processes to ensure they work smoothly.
  2. Check Responsiveness: Verify that your store displays well on various devices.

Step 8: Launch Your Store

  1. Final Checks: Ensure all settings, products, and pages are correctly configured.
  2. Go Live: Make your store publicly accessible by removing any “under construction” or maintenance mode pages.

Step 9: Maintain and Optimize

  1. Regular Updates: Keep WooCommerce, WordPress, and all plugins updated for security and performance.
  2. Analyze and Optimize: Use analytics to understand customer behavior and make adjustments to improve your store’s performance.

Building a WooCommerce store is an ongoing process. As you gain customer feedback and insights, you’ll likely make changes to enhance the shopping experience. Regular maintenance, content updates, and a commitment to customer service are key to a successful online store.

Portfolio | Website
2 min read

WordPress Website build Services

August 28, 2024

WordPress Website build Services

Building a WordPress website involves several steps. Here’s a general outline to guide you through the process I followed:

Step 1: Planning

  1. Define Your Purpose: Determine the purpose of your website. Is it a blog, portfolio, business site, or an online store?
  2. Identify Your Audience: Understand who your target audience is and what they might be looking for on your site.
  3. Outline Content: Plan the main sections and content you want to include.

Step 2: Domain and Hosting

  1. Select a Domain Name: Choose a unique and relevant domain name for your website.
  2. Choose Hosting: Pick a reliable web hosting service that supports WordPress installation.

Step 3: WordPress Installation

  1. Install WordPress: Many hosting providers offer one-click WordPress installation. Follow the provider’s instructions.
  2. Access WordPress Dashboard: Log in to your WordPress dashboard using the provided credentials.

Step 4: Theme Selection

  1. Choose a Theme: Pick a WordPress theme that aligns with your website’s purpose and style.
  2. Install and Activate: Install your chosen theme and activate it from the WordPress dashboard.

Step 5: Customization

  1. Customize the Theme: Modify the site’s appearance using the theme customizer and settings.
  2. Add Essential Plugins: Install plugins for functionalities like SEO, security, contact forms, etc.
  3. Create Pages and Posts: Begin by creating necessary pages (like Home, About, Contact) and adding posts if it’s a blog.

Step 6: Content Creation

  1. Add Content: Populate your pages with relevant and engaging content—text, images, videos, etc.
  2. Optimize for SEO: Enhance your content for search engines by using relevant keywords and meta tags.

Step 7: Testing and Optimization

  1. Test Site Functionality: Ensure all links work, forms are functional, and content displays correctly on various devices.
  2. Optimize Performance: Use caching, image optimization, and other techniques to improve site speed.

Step 8: Launch

  1. Final Review: Double-check your website for any errors or missing content.
  2. Go Live: Once you’re satisfied, launch your site for the public.

Step 9: Maintenance and Regular Updates

  1. Regular Updates: Update WordPress core, themes, and plugins regularly to maintain security and functionality.
  2. Backup Your Site: Create regular backups to prevent data loss in case of issues.

Additional Tips:

  • Security Measures: Implement security measures like strong passwords, security plugins, and SSL certificates.
  • User Experience: Ensure a smooth and intuitive user experience by organizing content and using clear navigation.

Building a WordPress website can be a dynamic process, and you’ll likely make adjustments along the way. Take your time, and don’t hesitate to explore WordPress tutorials and resources for further guidance and improvement.

Website Design Demo


Click here

EC2 | Lightsail | Node.JS | Portfolio | ubuntu Server
2 min read

Express.js Project Deployment on The Ubuntu Server

August 28, 2024

Express.js Project Deployment on The Ubuntu Server

Steps for Express.js Project Deployment:

  1. Prepare Your Application:

    Ensure your Express.js application is complete, functional, and tested. Make sure that it’s ready for deployment.

  2. Select Hosting Service:

    Choose a hosting service or platform where you want to deploy your application. Common choices include:

    • Platform as a Service (PaaS): Platforms like Heroku, AWS Elastic Beanstalk, or Microsoft Azure offer easy deployment for Node.js applications.

    • Infrastructure as a Service (IaaS): Services like AWS EC2, DigitalOcean, or Google Cloud Platform give you more control over the server setup.

    • Containerization with Docker: You can package your application in a container using Docker and deploy it to any platform that supports Docker containers.

  3. Set Up the Server:

    If you’re using a service that provides a server, follow their instructions to set up the server and ensure Node.js is installed.

  4. Configure Environment Variables:

    Manage environment-specific configuration by setting environment variables for database connections, API keys, or other sensitive information.

  5. Install Dependencies:

    Ensure all required dependencies are listed in the package.json file. Run npm install to install these dependencies on the server.

  6. Set Up Reverse Proxy:

    If you are using a reverse proxy like Nginx or Apache, configure it to pass requests to your Express.js application.

  7. Start the Application:

    Use a process manager like PM2 to start and manage your Node.js application to ensure it keeps running.

    For instance, you can use PM2 to start your app:

  8. Domain Configuration:

    If you have a custom domain, configure it to point to your server’s IP address.

  9. Set Up SSL Certificate (Optional, but Recommended):

    Secure your application with an SSL certificate. Use Let’s Encrypt or other certificate providers to set up HTTPS for improved security.

  10. Testing and Monitoring:

    Test your deployed application to ensure it’s functioning as expected. Implement monitoring and logging to keep track of your application’s performance.

  11. Automate Deployments (Optional):

    Consider automating the deployment process using Continuous Integration/Continuous Deployment (CI/CD) tools like Jenkins, GitLab CI/CD, or GitHub Actions.

Additional Considerations:

  • Ensure your application is secure by implementing best practices to protect against common web vulnerabilities.
  • Regularly update your dependencies and keep your system up to date to prevent security vulnerabilities.

The specifics of deployment may vary depending on the hosting service or platform you choose, so always refer to their documentation for detailed steps.

Apache | EC2 | Route 53
2 min read

how to redirect domain to another domain

September 19, 2023

how to redirect domain to another domain

Step 1: Register for a Cloudflare Account

If you haven’t already registered for a Cloudflare account, you’ll need to start by creating one. Visit the Cloudflare website and locate the “Sign Up” option to initiate the account creation process. During this process, you’ll be required to provide essential information about your website, including your domain name and the IP address of your web server.

Step 2: Incorporate Your Domain into Cloudflare

After successfully setting up your Cloudflare account, the next step is to integrate your domain with the Cloudflare platform. To accomplish this, select “Add site” and input your domain name. Cloudflare will then conduct an automated scan of your DNS records and seamlessly transfer them into your newly established Cloudflare account.

Step 3: Create a page rule

Here’s a step-by-step guide on creating a page rule:

  1. Begin by accessing the “Page Rules” section within your Cloudflare dashboard.
  2. Next, click on the option labeled “Create Page Rule.”
  3. Within the “If URL matches” field, specify the URL pattern that necessitates redirection. For instance, if your aim is to redirect all traffic originating from “www.example.com” to “suppose.com,” input “www.example.com/*.”
  4. In the “Then the settings are” section, opt for “Forwarding URL.”
  5. Subsequently, insert the destination URL, which signifies the location to which you want the redirection to direct users. To continue with the example of redirecting traffic from “www.example.com” to “suppose.com,” enter “https://suppose.com/$1.”
  6. one more important things is set dns record. this dns rcord ip is fix. use exact same ip. “192.0.2.1”
  7. and save.

By following these steps, you can effortlessly set up a redirection rule using Cloudflare’s page rules feature.

Marketing | Uncategorized
3 min read

14 steps to grow your business.

September 14, 2023

14 steps to grow your business.

a marketing strategy is not just a document; it’s a fundamental tool for guiding your business’s marketing efforts, achieving your goals, and staying competitive in today’s dynamic business environment. Whether you’re a small startup or a large corporation, having a well-defined marketing strategy is essential for success.

1. Define Your Target Audience:

  • Identify who your ideal customers are in terms of demographics, interests, and problems your product or service can solve.

2. Create a Simple Website:

  • Build a basic website using user-friendly website builders like Wix, WordPress, or Squarespace. Ensure it’s mobile-responsive.

3. Set Up Social Media Profiles:

  • Create profiles on social media platforms relevant to your audience (e.g., Facebook, Instagram, or Twitter).

4. Develop Content:

  • Create informative and engaging content that addresses your audience’s needs and interests.
  • Start with blog posts or social media updates. You can later expand to other content formats like videos or infographics.

5. Content Sharing:

  • Share your content on your social media profiles.
  • Utilize relevant hashtags and keywords in your posts to increase discoverability.

6. Engage with Your Audience:

  • Respond to comments and messages promptly.
  • Encourage discussions and interactions by asking questions or running polls.

7. Email Marketing:

  • Collect email addresses from interested visitors to your website.
  • Send out a monthly newsletter with valuable content, promotions, or updates.

8. Collaborate with Influencers:

  • Identify local or micro-influencers who align with your brand.
  • Reach out to them for partnerships or sponsored content.

9. Online Advertising (Optional):

  • If budget allows, consider running small pay-per-click (PPC) advertising campaigns on platforms like Google Ads or Facebook Ads to target specific demographics.

10. Monitor and Learn:

  • Use free tools like Google Analytics and social media insights to track your website traffic and social media engagement.
  • Analyze which content performs best and adjust your strategy accordingly.

11. Consistency is Key:

  • Maintain a regular posting schedule on social media and your blog.
  • Stay engaged with your audience to build trust and credibility.

12. Local Outreach:

  • Partner with local businesses or attend local events to increase your brand’s visibility in the community.

13. Customer Reviews:

  • Encourage satisfied customers to leave reviews on platforms like Google My Business, Yelp, or Facebook.

14. Learn and Improve:

  • Continuously educate yourself about digital marketing trends and best practices.
  • Use the insights you gain to refine your strategy over time.

This beginner-level strategy focuses on building an online presence and engaging with your target audience through content and social media. As you gain experience and resources, you can expand and refine your digital marketing efforts to achieve more specific goals and reach a larger audience.

These is the simple common steps. but you know marketing is not so easy. tell my you business idea. i give you a unique process to grow your business. say hi on the WhatsApp. Click Here to say Hi!

Linux
2 min read

What is DevOps? Which skill needs for DevOps

April 12, 2023

What is DevOps? Which skill needs for DevOps

What is DevOps?

DevOps is a set of practices that combines software development and IT operations to improve collaboration and communication between teams, and to streamline the software development lifecycle. It involves automating the process of building, testing, deploying, and monitoring software applications, using tools such as version control, continuous integration/continuous delivery (CI/CD), infrastructure as code (IaC), and monitoring and logging tools. The goal of DevOps is to deliver high-quality software faster and more reliably, while also improving the efficiency and scalability of the development process.

Which skill needs for DevOps?

There are several skills that are important for a career in DevOps:

Automation: DevOps engineers should have knowledge of scripting languages like Python, Perl, Ruby, or Shell to automate repetitive tasks and streamline processes.

Continuous integration and continuous delivery (CI/CD): DevOps professionals need to understand how to implement and manage CI/CD pipelines to ensure that software is deployed efficiently and consistently.

Cloud computing: Knowledge of cloud infrastructure platforms such as Amazon Web Services (AWS), Microsoft Azure, or Google Cloud Platform is crucial for implementing scalable and reliable solutions.

Infrastructure as code: DevOps engineers need to be proficient in tools like Terraform or CloudFormation to automate infrastructure deployment and management.

Monitoring and logging: DevOps professionals should have a deep understanding of monitoring tools such as Nagios, Prometheus, or Grafana, as well as logging and analytics tools such as ELK stack (Elasticsearch, Logstash, Kibana).

Collaboration and communication: DevOps requires close collaboration between developers and operations teams, as well as strong communication skills to facilitate this collaboration.

Security: DevOps professionals should have knowledge of security best practices, including risk management, vulnerability assessment, and penetration testing, to ensure the security and reliability of software and systems.

DevOps Job in Bangladesh

Bangladesh ranges from BDT 500,000 to BDT 1,500,000 per year, depending on the level of experience, skills, and company size. Keep in mind that this is just an estimate and can vary depending on several factors.

AWS | EC2 | Linux
5 min read

What is ec2 used for? ec2 feature, ec2 future, ec2 Market and ec2 job in current market in 2023

March 16, 2023

What is ec2 used for? ec2 feature, ec2 future, ec2 Market and ec2 job in current market in 2023

What is ec2 used for?

Amazon EC2 is a cloud computing service that offers scalable, secure, and flexible computing capacity in the cloud. It is designed to simplify web-scale cloud computing for developers.

Using EC2, developers can easily obtain and configure computing resources through a simple web service interface, providing complete control over computing resources in Amazon’s proven computing environment. EC2 allows developers to obtain and boot new server instances rapidly in just a few minutes, enabling them to quickly scale up or down their computing capacity based on their needs.

EC2 offers an innovative pricing model that allows developers to only pay for the capacity they use, which can significantly reduce the cost of computing resources. Additionally, EC2 provides developers with tools to build applications resistant to failure and can be isolated from common failure scenarios.

Amazon EC2 is a powerful cloud computing service that simplifies the process of obtaining and configuring computing resources, reduces the cost of computing, and provides tools for building resilient applications.

EC2 Features and Functionality

Cloud servers, like Amazon EC2, provide users with a flexible and scalable computing environment that can be customized to meet specific needs. Here are some common tasks that can be accomplished using a cloud server:

  1. Hosting websites and web applications: Cloud servers can be used to host websites and web applications of any scale. You can easily configure your server to run web server software like Apache, Nginx, or Microsoft IIS and host your website or application.
  2. Running backend services: Cloud servers can run backend services for your applications, such as databases, message queues, and file servers. You can install any software on the server and configure it to work with your application.
  3. Running analytics and big data processing: Cloud servers can be used to process large amounts of data and run analytics jobs. You can use specialized tools like Hadoop or Spark to analyze your data and generate insights.
  4. Running virtual desktops and remote workstations: Cloud servers can be used to create virtual desktops and remote workstations for your team. This can be especially useful for remote work or collaboration with team members in different locations.
  5. Running machine learning and artificial intelligence models: Cloud servers can be used to train and run machine learning and artificial intelligence models. You can use specialized tools like TensorFlow or PyTorch to train and deploy your models on the server.

Ec2 can be customized to meet a wide range of needs. Whether you need to run web applications, process big data, or run machine learning models, a cloud server can provide the computing power you need to do the job.

Future of EC2 Services

The future of Virtual Private Server (ec2) hosting looks promising, with the growing demand for cloud computing and the increasing number of businesses shifting their IT infrastructure to the cloud. Here are some possible trends for the future of ec2 servers:

  1. Increased adoption of ec2: As businesses increasingly shift towards cloud computing, ec2 hosting is becoming an increasingly popular choice for many organizations. With ec2 hosting, businesses can access the benefits of cloud computing, such as scalability, flexibility, and cost-effectiveness, while still retaining control over their computing resources.
  2. Growth in the hybrid cloud: Hybrid cloud, which combines public and private cloud infrastructure, is becoming a popular choice for many businesses. With ec2 hosting, businesses can easily build hybrid cloud environments that allow them to take advantage of the benefits of both public and private clouds.
  3. Focus on security: With cyber threats becoming more sophisticated, security is becoming a top business priority. In the future, ec2 hosting providers are likely to place an even greater emphasis on security, offering more advanced security features and services to ensure the safety of their customers’ data.
  4. Continued innovation: As the demand for ec2 hosting continues to grow, ec2 hosting providers are likely to continue to innovate and develop new features and services to meet the needs of their customers. This could include new automation tools, more advanced monitoring and analytics, and improved performance and scalability.

So the future of ec2 hosting looks promising, with continued growth in cloud computing and the increasing demand for scalable, cost-effective IT infrastructure. As ec2 hosting continues to evolve, businesses can expect to see even more advanced features and services, greater flexibility and scalability, and improved security and performance.

ec2 growing market

The private server market is projected to reach $8.3 billion by 2026. That’s a CAGR of 16.2%. The enormity of cyberspace can be overwhelming to comprehend as technology advances rapidly, making it easy to forget just how far we’ve come in such a short time. To better understand the web hosting industry, here are some statistics:

  • There are currently over 1.97 billion websites online.
  • As of September 2021, the indexed web contained around 5 billion web pages.
  • At the end of 2021, there were 364 million domain name registrations across all top-level domains.
  • There are nearly 5.03 billion internet users worldwide, over 63.1% of the global population.
  • 100% of 18- to 29-year-olds in the US are active internet users.

Given these staggering numbers, it’s no surprise that the global web hosting industry is worth over $75 billion, according to Fortune Business Insights. Despite being a relatively new segment, VPS hosting has experienced significant growth in the industry. Let’s take a closer look at some numbers to understand what’s driving this progress.

ec2 job in 2023

I will just show you some of the screenshots and website links. There you will find out the current opportunity and demands of the ec2.

EC2 Trending live job on Upwork
EC2 Trending Live Job on Fiverr

PLEASE DONT CREATE ANY ACCOUNT IN UPWORK AND FIVERR WITHOUT SKILL. JUST VISIT.

Huge opportunity in cloud computing in today’s world. We just need to focus on a specific product or service. We can never provide many services alone without making agency.

Thanks for Reading the Article. Be Dedicated, Be Specific, and Be Happy.
By Arif Billah
System Administrator

Data was collected from various sources on the Internet and Modified by CHATGPT.

Apache | AWS | Linux | SSH | ubuntu
1 min read

Change the ssh key from aws

January 8, 2023

Change the ssh key from aws

SSH key change is very easy. you just need to change the authorized_keys from the live server.

SSH key generate

at first, you would have to create a key on your local computer using GitBush. Remember it is not your live server. it would be creating our own computer that you use. after creating the key then we will transfer the key to the live server. Let’s start…

ssh-keygen -t rsa -b 4096
//comment: click 2 time for skip file location and passpharase. 

SSH key change from the server

Now we change the ssh key. let’s follow the process that I showed a screenshot.

cd .ssh
nano authorized_keys

Now enjoy the new ssh key authentication

AWS | Linux | ubuntu
2 min read

How to create an ssh or secure shell on your server

January 7, 2023

How to create an ssh or secure shell on your server

SSH is an encrypted protocol used to administer and communicate with servers. When working with a linux server, chances are you will spend most of your time in a terminal session connected to your server through SSH. In this guide, we’ll focus on setting up SSH keys for a Linux installation. SSH keys provide a secure way of logging into your server and are recommended for all users.

Why Is SSH Used?

Secure Shell (SSH for short) is a network communication protocol that makes it possible for two computers to communicate with one another. SSH also makes data transfers possible between two computers.

Create a user in Linux

adduser arif
 update-alternatives --config editor
//chose default editor as a NANO
visudo 

SSH key generate

at first, you would have to create a key on your local computer using GitBush. Remember it is not your live server. it would be creating our own computer that you use. after creating the key then we will transfer the key to the live server. Let’s start…

ssh-keygen -t rsa -b 4096
ssh-copy-id -i /c/Users/emran/.ssh/id_rsa.pub [email protected]

//comment: click 2 time for skip file location and passpharase.
//ssh-copy-id -i <ssh file location> <Live_server_username@ip>
//comment: write your own file location path and your server user and ip like mine. Follow the screenshot

SSH configuration

Now we have to configure the sshd_config file. there are all the ssh configuration options are given.

nano /etc/sshd/sshd_config

after run this command a text editor will be visible. now we would have to uncomment and config some of the options from there. follow the screenshot

  • PermitRootLogin no
  • PubkeyAuthentication yes
  • PasswordAuthentication no
sudo systemctl restart ssh

the change we made is not active. after run “sudo systemctl restart ssh” command our all the configurations will be active.

Login Using SSH key

Open the new CMD from windows and write a following way that i have given in the screenshot below

ssh -i .ssh/id_rsa [email protected]
// ssh -i <key file location> <liveserver_username@ip> 

Website
2 min read

How to connect github to you windows or linux computer.

December 28, 2022

How to connect github to you windows or linux computer.

How to install Git on Ubuntu 22.04

We have summed up for you all steps that will help in the successful installation of git on Ubuntu 22.04.

Step 1: Update the system

Before installing Git make sure your system is up to date. To verify this use the following commands.

$ sudo apt update

$ sudo apt upgrade -y

Now let’s upgrade the system.

Step 2: Install git

Now check if Git is already installed on the system or not.

$ git –version

As indicated in the output the git version is not installed on the system, therefore, now we will install by running the below-given command.

$ sudo apt install git

If you are using windows then install git bush software. Also you can continue using windows computer terminal

Step 3: Verify Installation

Now to verify the successful installation of git use this command once again.

$ git –version

Git has been successfully installed on Ubuntu 22.04.

Below we will brief you on how to set up a user account and make an empty repository using Git.

How to set up an account and repository

In order to make a user account on Git you have to provide a username and an email and this can be done using the following commands.

Step 1: Provide a username

Use the command given below to provide a username

$ git config –global user.name “INSERT YOUR NAME”

Step 2: Provide an email address

The email address is provided using this command.

$ git config –global user.email “INSERT YOUR EMAIL”

Step 3: Create a repository

Now the account has been set up, we will now generate a repository.

$ mkdir sample-directory -p

The directory has been created with success.

Step 4: Navigate to the directory

Now using the following command navigate to the newly-created directory.

$ cd sample-directory

Step 5: Initialize Git

After navigating to the directory, use the initialization command to create a hidden git directory that will store history, configuration, etc

$ git init

Step 6: List the content to verify

git clone https://github.com/arifbillah360/Glozzom.git

Let’s also test how to clone any github repository on our computer.

Website
3 min read

A complete tutorial of ngnix server configuration in ubuntu 22.04

December 23, 2022

A complete tutorial of ngnix server configuration in ubuntu 22.04

1. Overview

Nginx is an open-source web server that is often used as a reverse proxy or HTTP cache. It is available for Linux for free.

In this tutorial, we’ll install Nginx and set up a basic site.

What you’ll learn

  • How to set up Nginx
  • PHP installation
  • Mysql Installation
  • Basic Mysql configuration
  • Firewall install and configuration
  • Website demo hosting

Setup Nginx

To install Nginx, use following command:

sudo apt update
sudo apt install nginx

PHP installation

To run PHP 8.2 on Ubuntu 22.04, we need to add Ondrej sury PPA into our system. This is the maintainer of the PHP repository at the moment. This PPA is not currently checked so installing from it will not be guaranteed 100% results.

To add this PPA use the following command on our terminal.

sudo add-apt-repository ppa:ondrej/php
After installation is complete we need to update the repositories again for the changes to take effect.

sudo apt update
Install PHP 8.2 on Ubuntu 22.04
We should now be able to install PHP 8.2 on Ubuntu 22.04 Linux machine. The commands to run are as shared below:

sudo apt install php8.2 -y
Check for the currently active version of PHP with the following command:

php –version

MYsqL server install and configuration

To install it, update the package index on your server if you’ve not done so recently:

Then install the mysql-server package:
sudo apt install mysql-server
Ensure that the server is running using the systemctl start command:
sudo systemctl start mysql.service

Then run mysql secure command:

These commands will install and start MySQL, but will not prompt you to set a password or make any other configuration changes. Because this leaves your installation of MySQL insecure, we will address this next.

First, open up the MySQL prompt:

mysql -u root -p

Then go back to using the default authentication method using this command:

ALTER USER ‘root’@’localhost’ IDENTIFIED WITH auth_socket;
This will mean that you can once again connect to MySQL as your root user using the sudo mysql command.

Run the security script with sudo:

sudo mysql_secure_installation

This will take you through a series of prompts where you can make some changes to your MySQL installation’s security options. The first prompt will ask whether you’d like to set up the Validate Password Plugin, which can be used to test the password strength of new MySQL users before deeming them valid.

Database Installation command: 

mysql> CREATE DATABASE wpdb;
mysql> CREATE USER ‘wpuser’@’localhost’ IDENTIFIED BY ‘BNlerp4@38%4o^G7’;
mysql> GRANT ALL ON wpdb.* TO ‘wpuser’@’localhost’;
mysql> FLUSH PRIVILEGES;
mysql> EXIT;

Another basic command of mysql database;

SHOW DATABASES;
systemctl status mysql.service
mysql -v

Website
4 min read

Environmental strategies adopted by the Green University of Bangladesh to achieve sustainability

December 1, 2022

Environmental strategies adopted by the Green University of Bangladesh to achieve sustainability

Climate scientists say we must now achieve ecological and economic transformation at a speed and scale with “no historic precedent.” But here’s the good news: By planting trees and restoring healthy soil,  by growing food in ways that restore the health of both landscapes and communities. In simple terms, environmental sustainability is the practice of interacting with the planet responsibly. We do it to avoid depleting natural resources and compromising the future generation’s ability to meet their daily needs. we are literally changing the world. So we are building an event that we call “GreenFest”.

Green University’s campaign helped start a movement. Its slogan:  “Green thinking and living.” among the students through knowledge and action. We believe through this event, the Green university of Bangladesh will start to become a leading force in promoting sustainability which is coherent with our name and will have a strong impact in terms of Branding and student engagement, we have created an award-winning program GreenFest to restore the ecology and economy of struggling communities on the front lines of climate change. We have pioneered holistic practices that harmonize the needs of both humanity and nature.

We students of Green University are going to celebrate GreenFest. The color green can positively affect thinking, relationships, and physical health. Green is also thought to relieve stress and help heal. This color has strong associations with nature and brings to mind lush grass, trees, and forests. Our daily lives are full of busyness. With this busy schedule, we also need some time for refreshments. Therefore, for the first time, GREEN FEST is going to be held to promote the prosperity of green nature, with the motto “We stand with the green.” The festival is going to be held at the permanent campus of Green University, which is surrounded by a bunch of greenery.

Keeping view on this context we are going to arrange a day-long program regarding environment awareness campaign with different events.

  1. Tree plantation by renowned guests.
  2. Environment speech by three renowned speakers, 1. Prof. Ainun Nishat, 2. Atiqul Islam, Mayor of Dhaka North City Corporation and 3. Dr. Ashraful Alam, DC, Magura.
  3. Organize a fashion extravaganza title ‘Recycle platform’, while advocating the slogan ‘Be innovative’. Show a fashion competition on practical ideas on how to reuse old dresses.
  4. A short documentary presentation based on environmental awareness
  5. Serving food in eco-friendly containers.
  6. Cleaning Operation by dedicated Volunteers.
  7. Refreshment program with bands (Ashez, Avash) and Folk music (Fakir Saheb).

The event will engage our students in tackling environmental problems at a level where they can see tangible results, spurring them on to realize that they really can make a difference.

Eco club can encourage members to think creatively as they apply their knowledge to real life and everyday thinking. Involving members in participation through real responsibilities improves self-esteem, which impacts learning also. The attitude developed will stay with pupils throughout their lives.

Through these activities, people will have greater respect for and take more care of other environments they encounter. It will empower club members to explore environmental concepts and actions beyond the confinement of a campus-based activity. While everyone, everywhere, asserts the importance of ‘learning to live sustainably,’ the environment remains a peripheral issue in the formal living system. These activities, inspire youths to create positive environmental change in their communities. It would be an unforgettable experience that bears with us throughout our life span.

The bottom line,  we must step carefully and avoid letting our optimism run away with us. By acknowledging that a greener world will hardly be devoid of geopolitical challenges and preparing accordingly, we may find a path to defusing our threats today, while largely avoiding the inadvertent drawbacks of desperately needed innovation. All countries are aware of the need to take measurable steps necessary for survival on the planet. However, there is still more to know about these issues. Greenfish is just an awareness creation initiative Therefore, We can continue the activities of various seminars and events to keep the awareness of people.

AWS | Linux | SSH | ubuntu
3 min read

AWS public lost solution and enable password log in system in linux

November 22, 2022

AWS public lost solution and enable password log in system in linux

SSH server in most systems is by default configured to allow public-key authentication. The method will enable you to use your public and private key pair to passwordless log in to an SSH server instead of the typical username and password method.

How to connect aws without public key or Password?

The AWS Systems Manager console includes access to all the Session Manager capabilities for both administrators and end users. You can perform any task that is related to your sessions by using the Systems Manager console. we will connect on the terminal using ssh. and now we need to know about IAM. IAM help us to communicate server and session manager.

IAM :Through the use of IAM policies, you can control which members of your organization can initiate sessions to managed nodes and which nodes they can access. You can also provide temporary access to your managed nodes.

Let’s see how to do it? 1st of all go to the ec2 control panel and click on the action button. then you will get the security option> modify IAM role. click on the Modify IAM role.

create a new IAM role. select aws service and ec2. now click on the next

and find a policy “AmazonSSMManagerInstanceCore”. select this role and click next.

Give a name of the role and description. and click on the create role button

How to connect ec2 instance in Session manager?

Now we search session manager from aws console. you need to wait 10 minutes before start the session. after 1o minutes, you would have to selcet the server and start a session. the you will get command line access in session manager. but not root user. you have to write a command for a user. the command is:

sudo su -

Now you will get root user access and you can perform any task as a root user.

How to enable Password Authentication?Gi

you have to edit sshd_config file. the file path “etc>ssh>sshd_config” . so need to open it on a notepad. we use a nano note pad. if not have nano editor on your linux just runt this command. “sudo apt-get install nano”

let’s do our main task. 1st of all open the sshd_congig file. using the command bellow

sudo nano /etc/ssh/sshd_config

Lookup the variable: PermitRootLogin and PasswordAuthentication option change ‘no’ to ‘yes’

PermitRootlogin yes
PasswordAuthentication yes

Save and close the file. Run this command:

 service sshd reload

Now you will be able to SSH into your server without public keys.

Make sure your other authentication method such as password is enabled before disabling public key authentication method as you might completely lose remote access to your server. so ensure you know the linux password.

AWS | Linux | ubuntu
1 min read

Disable Linux public key authentication

November 22, 2022

Disable Linux public key authentication

SSH server in most systems is by default configured to allow public-key authentication. The method will enable you to use your public and private key pair to passwordless log in to an SSH server instead of the typical username and password method.

How to enable Password Authentication?

you have to edit sshd_config file. the file path “etc>ssh>sshd_config” . so need to open it on a notepad. we use a nano note pad. if not have nano editor on your linux just runt this command. “sudo apt-get install nano”

let’s do our main task. 1st of all open the sshd_congig file. using the command bellow

sudo nano /etc/ssh/sshd_config

Lookup the variable: PermitRootLogin and PasswordAuthentication option change ‘no’ to ‘yes’

PermitRootlogin yes
PasswordAuthentication yes

Save and close the file. Run this command:

 service sshd reload

Now you will be able to SSH into your server without public keys.

Make sure your other authentication method such as password is enabled before disabling public key authentication method as you might completely lose remote access to your server. so ensure you know the linux password.

Apache | AWS | Linux | Website
4 min read

How to learn Linux || All in one Linux system adminstration

October 29, 2022

How to learn Linux || All in one Linux system adminstration

What is Linux?

The Linux operating system has become one of the most widely used operating systems, popular among researchers, application developers, and hobbyists alike. These days, the Linux operating system can be found in an amazing range of computer environments, from mobile phones to satellites. This chapter examines just what the Linux operating system is and why there are so many different Linux distributions available to choose from. With this information, you can select the right Linux distribution for your environment

What does a Linux administrator do?

Linux administrators are responsible for maximizing the performance of the operating system. Security is fundamental to their role, especially when approving the installation of new software and enhancement features. Some of their day-to-day responsibilities include:

  • Installing Linux servers and systems
  • Updating the system after crashes or reboots
  • Performing maintenance checks and system backups
  • Reading error logs
  • Conducting root analyses
  • Processing user complaints
  • Training other administrators to use the system

Job Market in Linux System administartor.

There are a lot of work in linux system administrator. But now I discuse personllay what job done by me. Actually, I have been working as a linux server administrator for 2 years. there I did linux server configuration. Most of the work was linux server configuration for website. Let’s see the work i done as a freelancer:

  • Cpanel/Plesk/Cyberpanel configuration
  • Amazon Web Services (AWS)
  • Google clould Platform
  • Linux softwere instation
  • Ubuntu/CentOS/Debian/RHEL etc os.
  • Apache/Ngnix server configuration
  • Website Migration to linux server
  • WordPress Bitname
  • Linux issue fix
  • Linux software/open source scrip installation
  • Linux Storage partition managment.

What do you need to learn for a job?

There are basic 20 things that you need to learn for Linux server administration. Also if you are a student of computer science or a web developer, you should learn these 20 things. that will help you 1 step in your professional life. I recommended learning basic Linux to everyone. Also, use Linux in our daily life instead of a window.

  1. Setting Up The Environment
  2. Managing Users and Groups]
  3. Installing and Configuring Packages
  4. Linux Shells
  5. Linux Filesystem
  6. Configuring and Managing Networks
  7. Managing Data Storage
  8. Virtualization Technologies
  9. Managing Backups
  10. Disaster Recovery
  11. Security Management
  12. Hardware Management
  13. Memory Management
  14. Automation
  15. Troubleshooting
  16. Monitoring
  17. Know about Linux core
  18. Communication
  19. firewalls
  20. Course Certifications

How to learn Linux System Administration

Read one of my favorites “Book Linux one in all”. Only reading is not sufficient for a job or any freelancing work. you have to earn huge practical knowledge. because the Linux system administration is very sensitive work. if you missed something you may hunter from the hacker. then you will lose all the data and website files. so you must have to very practical about this. I started my career as a web developer. web development knowledge helps me in 1 step. I know about security and basic security. then I just gather knowledge how to configure the Linux and secure the website and server. However, Download the book as well as watch videos from youtube. The best way is to buy the latest premium course. I followed some youtube channels for Basic Linux. But now the videos are backdated. I prefer you to find out a latest playlist.

Download Premium book: Linux® All-in-One For Dummies

My prefared youtube chanel for basic linux. After learn basic linux you will autometically know what is the next step.
Bangla playlist: Open Youtube Basic linux. Click Here
English Playlist: Open Youtube Basic linux. Click Here


You can follow my channel. I don’t think you learn anything from my channel. Here I uploaded various on-demand work tutorials. that is not helpful for beginners. My chanel is Arif TheBrother. Click Here

My Opnion About Linux Administration

If you learn Linux to earn money, that’s good. but remember you have to be passionate about your work. Linux system is a very advanced course. there you just need some basic knowledge about computers and the internet. i.e: you have to know how the internet work, what is a website, the website backend-font end, operating system, computer memory, processor, and storage in detail. Also, you have to know basic cybersecurity. to me, Linux server/OS is very easy than the web development or digital marketing. but It is very sensitive work. you would have to ensure 100% security in Linux.

Welcome to linux server administration profession. This job is very uncommon and have a lot of work in marketplaces. Happy freelancing

Ecommerce | ubuntu | Website | WordPress
1 min read

Server error (500 internal Server Error) in the ubuntu server

October 29, 2022

Server error (500 internal Server Error) in the ubuntu server

Way 1:

Add the following lines in the wp-config. PHP file right above “That’s all, stop editing! Happy publishing”:
define( ‘WP_MEMORY_LIMIT’, ‘515M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );

And save wp-config.php file

Note: before changing wp-config.php. you must download the file.

Way 2:

Website
7 min read

Linux most common script.

October 26, 2022

Linux most common script.

Bash Related Commands
Clear the terminal

clear / ctrl + l
Close the terminal

exit / ctrl + d
Reset the terminal

reset
Stop any program

ctrl + c
Sleep any program

ctrl + z
Check the history

ctrl + r / history
Check last 30 commands

history | tail -30
Autocomplete Filename or Folder name

Tab
Autocomplete command

Tab twice
Autocomplete command with options

Tab three times
System Related Commands
Dabian Based Systems
Update the system

sudo apt update

for some older packages

sudo apt-get update
Upgrade the system

sudo apt upgrade

for some older packages

sudo apt-get upgrade
Install a package

sudo apt install package_name

for some older packages

sudo apt-get install package_name
Remove a package

sudo apt remove package_name

for some older packages

sudo apt-get remove package_name
Remove a package and its dependencies

sudo apt autoremove package_name

for some older packages

sudo apt autoremove package_name
Search for a package

apt search package_name
List all installed packages

apt list –installed
List all available packages

apt list
List all available packages with version

apt list –all-versions
Arch Based Systems
Update the system

sudo pacman -Syyu
Install a package

sudo pacman -S package_name
Remove a package

sudo pacman -R package_name
Search for a package

pacman -Ss package_name
List all installed packages

pacman -Q
List all available packages

pacman -Ss
More to come
Check the internet is working

ping google.com
Check System and Kernel version

uname -a
Check System version

cat /etc/os-release
Check Kernel

uname -r
Check hostname

hostname
Check IP address

ip addr
Check IP address (short)

ip a
Check IP address (long)

ip address
See user logged in

who
See username

whoami
Short information of logged in user

users
See all users

cat /etc/passwd
See all groups

cat /etc/group
See all groups of a user

groups username
See all users of a group

getent group groupname
Reboot the system

sudo reboot
Shutdown the system

sudo shutdown -h now / sudo poweroff / sudo halt / sudo init 0 / sudo systemctl poweroff
Check the current date and time

date
Check the current user

whoami
Check the current user’s home directory

echo $HOME
Check the current user’s shell

echo $SHELL
Check the current user’s path / executable paths of system

echo $PATH
Check the current user’s environment variables

env
Check the current user’s environment variables with values

env | grep -i “variable_name”
Check the current user’s environment variables with values in a file

env > env.txt
Check the current user’s environment variables with values in a file with root access

sudo env > env.txt
See the top 10 processes

top
See the top 10 processes with root access and sorted by memory usage

sudo top -o %MEM
See the top 10 processes with root access and sorted by cpu usage

sudo top -o %CPU
See the top 10 processes with root access and sorted by cpu usage and memory usage

sudo top -o %CPU,%MEM
See the top 10 processes with root access and sorted by cpu usage and memory usage and show only the process id and the process name

sudo top -o %CPU,%MEM -p -c
See the current running processes

ps
See the current running processes in a tree format

pstree
Kill a specific process

killall ProcessName
See the system uptime

uptime
See the system uptime in a specific format

uptime -p
See the system monitor

htop
See the system monitor with root access and sorted by memory usage

sudo htop -o %MEM
See the system monitor with root access and sorted by cpu usage

sudo htop -o %CPU
See the system monitor with root access and sorted by cpu usage and memory usage

sudo htop -o %CPU,%MEM
See the system monitor with root access and sorted by cpu usage and memory usage and show only the process id and the process name

sudo htop -o %CPU,%MEM -p -c
See the system monitor with root access and sorted by cpu usage and memory usage and show only the process id and the process name and show the process tree

sudo htop -o %CPU,%MEM -p -c -t
Hardware Related Commands
See the system’s hardware information

sudo lshw
See the system’s hardware information in a specific format

sudo lshw -short
See the system’s hardware information in a specific format and show only the network devices

sudo lshw -short -C network
See the system’s hardware information in a specific format and show only the network devices and show the network devices in a tree format

sudo lshw -short -C network -class network -tree
Check the system’s memory usage

free -h
Check CPU information

lscpu
Check Memory information

sudo dmidecode -t memory
Check Disk information

sudo dmidecode -t memory
Check USB information

lsusb
Check PCI information

lspci
Check Partitions

lsblk
Check Partitions with root access

sudo lsblk
Check Partitions with root access and show only the partitions

sudo lsblk -p
Check Partitions with root access and show only the partitions and show the partitions in a tree format

sudo lsblk -p -t
Mount a partition

sudo mount /dev/sda1 /mnt
Unmount a partition

sudo umount /dev/sda1
Mount a partition with root access and show only the partitions and show the partitions in a tree format

sudo lsblk -p -t
Read Write Mount a partition

sudo mount -o rw /dev/sda1 /mnt
File / Directory Related Commands
Create a new directory

mkdir directory-name
Create a new file

touch file-name
Create multiple directories at a time

mkdir dir1 dir2 dir3 dir4 dir5
Create multiple files at a time

touch index.html style.css script.js
Delete a directory with all it’s child

rm -rf directory-name
Delete a file

rm filename
List down all the files and directories

ls
List down all the files and directories with all the details

ls -l
List down all the files and directories with all the details and hidden files

ls -la
List down all the files and directories with all the details and hidden files and sort by size

ls -lS
List down all the files and directories with all the details and hidden files and sort by time

ls -lt
List down all the files and directories with all the details and hidden files and sort by time and reverse

ls -ltr
List down all the files and directories with all the details and hidden files and sort by time and reverse and show only 10 files

ls -ltr | head -10
Open a file

cat filename
Open a file with line numbers

cat -n filename
Open a file with line numbers and show only 10 lines

cat -n filename | head -10
Open a file using vim

vim filename
Open a file using vim and show only 10 lines

vim +10 filename
Open a file using nano

nano filename
Open a file using nano and show only 10 lines

nano +10 filename
Open a file using gedit

gedit filename
Count the number of lines in a file

wc -l filename
Print the current working directory

pwd
Change the current working directory

cd directory-name
Change the current working directory to the home directory

cd ~
Change the current working directory to the parent directory

cd ..
Change the current working directory to the root directory

cd /
Copy a file

cp filename newfilename
Copy a file to a directory

cp filename directory-name
Copy a directory

cp -r directory-name newdirectory-name
Copy a directory to a directory

cp -r directory-name directory-name
Move a file

mv filename newfilename
Move a file to a directory

mv filename directory-name
Move a directory

mv -r directory-name newdirectory-name
Move a directory to a directory

mv -r directory-name directory-name
Rename a file

mv filename newfilename
Rename a directory

mv directory-name newdirectory-name
Create a symbolic link

ln -s filename linkname
Create a hard link

ln filename linkname
Create a hard link to a directory

ln -r directory-name linkname
Create a symbolic link to a directory

ln -sr directory-name linkname
Create a file with content

echo “Hello World” > filename
Append content to a file

echo “Hello World” >> filename
Create a file with content and open it using vim

echo “Hello World” > filename && vim filename
Create a file with content and open it using nano

echo “Hello World” > filename && nano filename
Create a file with content and open it using gedit

echo “Hello World” > filename && gedit filename
Create a file with content and open it using cat

echo “Hello World” > filename && cat filename
Create a .tar file

tar -cvf filename.tar directory-name
Create a .tar.gz file

tar -cvzf filename.tar.gz directory-name
Create a .zip file

zip -r filename.zip directory-name
Extract a .tar file

tar -xvf filename.tar
Extract a .tar.gz file

tar -xvzf filename.tar.gz
Extract a .zip file

unzip filename.zip
Find a file

find . -name filename

Website
1 min read

How to Download and upload files using SCP in linux

October 16, 2022

How to Download and upload files using SCP in linux

In this article, We have explored the steps to Download and upload files from one remote server to another remote server. This involves using commands like SCP or utilities like windSCP

Upload File using SCP command from windows to Server.

Code details: $SCP -i <ssh-key-location> <local/Windows computer location> user@ip: <web server location>

scp -i "C:\Users\emran\Downloads/MyWeb.pem" "C:\Users\emran\Downloads/test.txt" [email protected]:/home/admin/

If you do not have not SSH code, try the command below.

scp -i "C:\Users\emran\Downloads/test.txt" [email protected]:/home/admin/

Download the File using the SCP command from Server to Windows

Code details: $SCP -i <ssh-key-location>user@ip: <web server location> <Local/Windows location>

scp -i "C:\Users\emran\Downloads/MyWeb.pem" [email protected]:/home/admin/arif.txt "C:\Users\emran\Downloads/arifbillah.txt"

If you do not have not SSH code, try the command below.

scp -i [email protected]:/home/admin/arif.txt "C:\Users\emran\Downloads/arifbillah.txt"

AWS | CloudFront | Route 53
2 min read

How to setup amazon CloudFront with WordPress

October 15, 2022

How to setup amazon CloudFront with WordPress

There are 7 steps to set up CloudFront.

  • Create cache policy
  • Create Origin Request
  • Issue SSL Certificate
  • Create Distribution
  • Edit Distribution
  • Change DNS
  • Use WordPress cache plugin

Create cache Policy:

Enter name and description. click on the check box of the header and add host, origin and referer under the header. Query setings and cookies will be all

Create Origin Request Policy

Again go to the Policies option and click on the origin request tab. After entering the origin request tab, you will get create request policy button. click on the button.

Add include specified cookies field

cookiescomment_author_*
comment_author_email_*
comment_author_url_*
wordpress_logged_in_*
wordpress_test_cookie
wp-settings-*
PHPSESSID
wordpress_*
wordpress_sec_*

Issue ssl Certificate

Go to the Route 53 and add a domain

Again go back certificate manager and click mentioned button

wait for something like 50 minutes to issue the certificate. it is now pending.

Create Distribution

go the cloud font. and click on the create distribution button

Edit Distributions Behaviour

back again on the coludfont. enter cloud font and click on Behaviours. Now follow my steps

DNS management

Go to the route 53 console and enter the domain dns zone. After the select A record follow my screenhooted option

Congratulations! you successfully setup CloudFront on your website.

You can check using cmd.
$curl -v intense.digital
after run this command your will get details. Also you can check it using who.is.

Best of luck
if you faced any issue. contact me.

Apache | AWS | ubuntu | Website | WordPress
2 min read

How to install WordPress in ubuntu server

October 15, 2022

How to install WordPress in ubuntu server

  1. Install Apache
    sudo apt update && sudo apt upgrade -y
    sudo apt install apache2 -y
  2. Install PHP
sudo apt install php libapache2-mod-php php-mysql -y
MARIA DB Installation

MYSQL
sudo apt install mysql-server -y
sudo mysql_secure_installation

sudo apt install mariadb-server
sudo mysql_secure_installation

if show errors, when you install database. if sucessfully install then flow next section “database create”
solved it by running “$sudo mysql”
which logged me in as root without a password, then I ran
$ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password by ‘mynewpassword’;
$ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password by ‘4Hxla]h!@/8gjEWY’;

Database create
sudo mysql -u root -p
CREATE DATABASE wpdb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE USER ‘wpuser’@’localhost’ IDENTIFIED BY ‘BNlerp4@38%4o^G7’;

mysql> CREATE DATABASE wpdb;
mysql> CREATE USER ‘wpuser’@’localhost’ IDENTIFIED BY ‘BNlerp4@38%4o^G7’;
mysql> GRANT ALL ON wpdb.* TO ‘wpuser’@’localhost’;
mysql> FLUSH PRIVILEGES;
mysql> EXIT;


Flow the command for a single website. For multi websites follow the next section command
cd /var/www/html
sudo wget http://wordpress.org/latest.tar.gz
sudo tar xzf latest.tar.gz
sudo mv wordpress/* .
sudo chown -R www-data: .

cp wp-config-sample.php wp-config.php
nano wp-config.php
sudo systemctl reload apache2


Follow the command for 2+ websites===Ignore this command, if you want to configure a single website.========================
No:1# WordPress
cd /var/www
sudo mkdir site1
cd site1
sudo wget http://wordpress.org/latest.tar.gz
sudo tar xzf latest.tar.gz
sudo mv wordpress/* .
sudo chown -R www-data: .
3.3 Apache configuration
cd /etc/apache2/sites-available/
sudo cp 000-default.conf site1.conf
nano site1.conf
ServerName netvnsite1.tk
ServerAlias www.netvn.site1.tk
DocumentRoot /var/www/site1
a2ensite site1.conf
a2dissite 000-default.conf
systemctl reload apache2


4.2 WordPress
cd /var/www
sudo mkdir site2
cd site2
sudo wget http://wordpress.org/latest.tar.gz
sudo tar xzf latest.tar.gz
sudo mv wordpress/* .
sudo chown -R www-data: .

4.3 Apache configuration
cd /etc/apache2/sites-available/
sudo cp 000-default.conf site2.conf
sudo nano site2.conf
ServerName netvnsite2.tk
ServerAlias www.netvnsite2.tk
DocumentRoot /var/www/site2
sudo a2ensite site2.conf
sudo systemctl reload apache2

  1. Port Forwarding
    80,443
    ufw allow 80
    ufw allow 443
    ============================================ssl=========================
  2. HTTPS
    sudo apt install python3-certbot-apache -y
    sudo certbot –apache -d -d www.domain
    sudo certbot –apache -d huskyfurniture.com -d www.huskyfurniture.com

Congratulations! we prepare a complete web configuration

Website
1 min read

Common Firewall (UFW) command

October 15, 2022

Common Firewall (UFW) command

$sudo ufw status
$sudo ufw enable
$sudo ufw disable

How to allow any port. just write ufw allow and the port and same way you can disallow any port look at the example given below.
$ufw allow 22
$ufw diallow 22

$ss -anpst
ufw delete allow 3389

Website
1 min read

How to increase EC2 Instance root volume size

October 15, 2022

How to increase EC2 Instance root volume size

1st of all we need to format the partition

the command of formatting the partition is
$mkfs.ext4 /dev/xvdf

then we have to mount the partition to another directory for example we mount the partition on /opt directori. so now we have to cmnd
$mount /dev/xvdf /opt

So now our new volume is mounted on the /opt directory. But not visible. we can check it using the command
$df -h

Now we have to do visible this partition to the /opt directory

===================Another way====================

df -h

lsblk

growpart /dev/xvda1

lsblk -f

trdoxr2fs /dev/xvda1

Now check the size.

Website
1 min read

How to Install Apache

October 15, 2022

How to Install Apache

  1. Install Apache
    sudo apt update && sudo apt upgrade -y
    sudo apt install apache2 -y
  2. Install PHP
    cd /var/www/html
  3. HTTPS
    sudo apt install python3-certbot-apache -y
    sudo certbot –apache -d -d www.domain
    sudo certbot –apache -d huskyfurniture.com -d www.huskyfurniture.com
AWS | S3 | Website | WordPress
2 min read

How to connect s3 bucket to wordpress using wp offload media lite plugin

October 15, 2022

How to connect s3 bucket to wordpress using wp offload media lite plugin

An Amazon S3 bucket is a public cloud storage resource available in (AWS). s3 a object storage offering. Amazon S3 buckets, which are similar to file folders, store media, which consists of data and its descriptive metadata.

Let’s started

Go to the AWS control panel and then the s3 bucket.
create an s3 bucket same as my screenshot.

Enter the bucket and click on the permission tab. then you have to off block all public access.

then we would have to add a bucket policy.

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AllowPublicRead",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::arifwork/*"      //replace your bucket name
        }
    ]
}


then go to the IAM. we have to create a user. so click on the ‘User” and enter a user name.

then click on the attached existing policies directly then you will get create policy button. click on the create policy button


{
	"Version": "2012-10-17",
	"Statement": [
	{
		"Effect": "Allow",
		"Action": [
			"s3:CreateBucket",
			"s3:DeleteObject",
			"s3:Put*",
			"s3:Get*",
			"s3:List*"
		],
		"Resource": [
			"arn:aws:s3:::bucketname",
			"arn:aws:s3:::bucketname/*"     //replace your bucket name
		]
	}
	]
}



In the end, you have to add the plugin. the name of the plugin is “wp offload media lite” after active the plugin and enter the plugin settings. you will get a code like

define( 'AS3CF_SETTINGS', serialize( array(
	'provider' => 'aws',
	'access-key-id' => '********************',
	'secret-access-key' => '**************************************',
) ) );

you paste the code on your wp-config.php file. then paste the access key and secret id on the code.

Website
4 min read

How to install cyber panel using command line

September 26, 2022

How to install cyber panel using command line

Installing CyberPanel
Step 1: Connect to your server via SSH
The installation of CyberPanel is quite simple. First, log into your server via SSH as the root user (sudo will not work). You can get the login details from your web host.

Step 2: Update packages
For Ubuntu: sudo apt update && sudo apt upgrade -y
For CentOS/Alma/Rocky:

sudo yum check-update
sudo yum update
Step 2: Run the installation script
Run the following command. It will initiate the automated installation script, which will prompt you for a few decisions about which version of LiteSpeed and which add-ons you would like to install.

sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)

If, for some reason, you are not able to log in as root, you can use this command

sudo su - -c "sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)"

Step 3: Select the version of LiteSpeed that you would like to use
Select which version of LiteSpeed to install. If you select LiteSpeed Enterprise, please ensure that you have obtained a license key first. It is free for 1 domain, but you still need to obtain the key. Visit the pricing table 346 to decide your desired plan.

CyberPanel Installer v2.1.2

RAM check : 184/981MB (18.76%)

Disk check : 7/30GB (27%) (Minimal 10GB free space)

  1. Install CyberPanel with OpenLiteSpeed.
  2. Install Cyberpanel with LiteSpeed Enterprise.
  3. Exit. Please enter the number[1-3]:
    If you selected LiteSpeed Enterprise, you will see the following prompt. Enter your serial number

If you do not have any license, you can also use trial license (if server has not used trial license before), type TRIAL

Please input your serial number for LiteSpeed WebServer Enterprise:

Step 4: Select options and add-ons
You will be presented with a series of prompts for different options and add-ons that are available.
you just type Y every time.

Full Service (default Y):

Allow for your Database to be installed on a remote server
CyberPanel Version (default Latest Version):

You can choose to install a previous version of CyberPanel, or press Enter to install the latest
Password (default “1234567”):

It is recommended that you use “s” to set your own strong password
Memcached 22 (default Y):

Distributed memory object caching system
Redis 8 (default Y):

In-memory data structure store, used as a database, cache, and message broke
Watchdog 17 (default Yes):

Kernel watchdog is used to monitor if a system is running. It is supposed to automatically reboot hanged systems due to unrecoverable software errors
Step 5: Installation
The installation process will proceed automatically. It will take 5-10 minutes, depending on the speed of your server.

Step 6: Finalize Installation
At the end of the installation process, you will be presented with the following screen which contains important information about your configuation. Select and copy it to a safe location for future reference.

#
            CyberPanel Successfully Installed

            Current Disk usage : 7/30GB (26%)

            Current RAM  usage : 313/981MB (31.91%)

            Installation time  : 0 hrs 11 min 0 sec

            Visit: https://<your server's IP address>:8090
            Panel username: admin
            Panel password: <the password you set during installation>
            Visit: <your server's IP address>:7080
            WebAdmin console username: admin
            WebAdmin console password: TSXMwny4zVeDg37K

            Visit: https://<your server's IP address>:8090/rainloop/?admin
            Rainloop Admin username: admin
            Rainloop Admin password: gQKFWm9O3nr7Xn

         Run cyberpanel help to get FAQ info
         Run cyberpanel upgrade to upgrade it to latest version.
         Run cyberpanel utility to access some handy tools .

          Website : https://www.cyberpanel.net
          Forums  : https://forums.cyberpanel.net
          Wikipage: https://docs.cyberpanel.net
          Docs    : https://cyberpanel.net/docs/

        Enjoy your accelerated Internet by
            CyberPanel & OpenLiteSpeed
#

If your provider has a network-level firewall
Please make sure you have opened following port for both in/out:
TCP: 8090 for CyberPanel
TCP: 80, TCP: 443 and UDP: 443 for webserver
TCP: 21 and TCP: 40110-40210 for FTP
TCP: 25, TCP: 587, TCP: 465, TCP: 110, TCP: 143 and TCP: 993 for mail service
TCP: 53 and UDP: 53 for DNS service
Your provider seems blocked port 25 , E-mail sending may not work properly.
Step 7: Restart Server
Would you like to restart your server now? [y/N]:

Enter “y” to restart. Or enter “reboot” later after you have performed other desired operations.

Step 8: Access CyberPanel
After the successful installation you can access CyberPanel using the details below (make sure to change):

URL: https://:8090
Username: admin
Password:

Congratulations! you successfully install cyber panel on your server

"All Right Reserved Softorio.com and Hostorio.com"