jasiek

  • Dec 17, 2024
  • Joined Jul 12, 2024
  • 0 best answers
  • When editing a DNS records via the cPanel Zone Editor on Ubuntu servers, the following error can be shown and prevent the record from being modified:

    The system failed to send 17.54 KB to the process that is running the command “/usr/sbin/named-checkzone.

    The issue is caused after the Ubuntu bind9-utils package is upgraded or reinstalled. This results in the named-checkzone binary being removed from the /usr/sbin directory, thus, causing the Zone Editor error.

    We’ve opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-45739. Follow this article to receive an email notification when a solution is published in the product.

    Workaround
    Create a symbolic link to the /usr/sbin directory:

    ln -s /usr/bin/named-checkzone /usr/sbin/

    Reference: https://support.cpanel.net/hc/en-us/articles/25125306975639-cPanel-Zone-Editor-error-The-system-failed-to-send-17-54-KB-to-the-process-that-is-running-the-command-usr-sbin-named-checkzone

  • While aaPanel suggests installation on a clean computer/host with a basic net install, but in practice I successfully installed aaPanel on a workstation running Linux Mint Cinnamon. It runs well in the background and takes very little RAM and CPU. Highly recommended to manage Dev web server.

  • It is recommended that you use Ubuntu22.04 to install aaPanel.

    Download install script:

    URL=https://www.aapanel.com/script/install_7.0_en.sh && wget --no-check-certificate -O install_7.0_en.sh "$URL"

    Change file permissions to executable:

    chmod +x install_7.0_en.sh

    Run the installation script:

    sudo ./install_7.0_en.sh

    Wait for the installation to finish. It will display information how to access aaPanel:

    • URL address (WAN and LAN)
    • port
    • security gateway
    • username
    • password

    What operating systems does aaPanel support?

    • CentOS 7.x
    • Debian 10, 11, 12
    • Ubuntu 18.04, 20.04, 22.04
    • CloudLinux 7.x, 8.x
    • AlmaLinux 8.x, 9.x
    • Rocky Linux 8.x

    CentOS 7 has reached end of life, and community support ended on June 30, 2024.

    From: https://www.aapanel.com/new/download.html#install

  • Create index.php file and place it in the root of public_html directory:

    <?php
    header('Location: https://epesicrm.com/');
    exit;
    ?>

    Discussion: “Location:” header. Not only does it send this header back to the browser, but it also returns a REDIRECT (302) status code to the browser unless the 201 or a 3xx status code has already been set.

    <?php
    header("Location: http://www.example.com/"); /* Redirect browser */
    
    /* Make sure that code below does not get executed when we redirect. */
    exit;
    ?>

    https://www.php.net/manual/en/function.header.php

  • Fresh installation of Flarum and accessing it via Firefox didn’t display icons, I could not login. Seemed like CORS problem.
    Found on the forum:
    https://discuss.flarum.org/d/22770-oops-something-went-wrong-again/14

    In your .htaccess file, after RewriteEngine on, add something like this:

    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} ^www\. [NC]
    RewriteRule ^ https://yourdomain.top%{REQUEST_URI} [L,NE,R=301]
  • Pasting the code directly into a template file breaks rendering of the main page immediately.
    Instead use {literal} to surround the <script></script> tags:

      {literal}
    <script>
        (function(h,o,t,j,a,r){
            h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
            h._hjSettings={hjid:11111,hjsv:6};
            a=o.getElementsByTagName('head')[0];
            r=o.createElement('script');r.async=1;
            r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
            a.appendChild(r);
        })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
    </script>
      {/literal}

    I used head.tpl for that and the code was verified immediately.

    From: https://whmcs.community/topic/289265-integrating-hotjar-tracking-js-into-the-head-of-whmcs/

    An alternative solution:
    https://help.hotjar.com/hc/en-us/articles/115009499708-Install-the-Tracking-Code-with-Google-Tag-Manager

  • Importing large files via phpMyAdmin can be slow and problematic.
    Using mysql command line gets the job done quickly:

    c:\xampp\mysql\bin\mysql -u dbusername -p dbname < dbimport.sql

    assuming your XAMPP is installed in C:\XAMPP
    The database dbname must already exist, but it should be empty.

  • When installing Firefly via Softaculous the setup process was completing fine, but the default index.php would not load. The error message can be:

    public_html/.htaccess: Option All not allowed here
    public_html/public/.htaccess: AllowOverride not allowed here

    Edit .htaccess file and remove the first line which is causing this error.

  • Working.

    Custom Header

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,600;1,700&family=Titillium+Web:ital,wght@0,400;1,600;1,700&display=swap" rel="stylesheet">

    Custom CSS

    body {
      font-family: 'Titillium Web', sans-serif;
    }
    h1, h2, h3, h4, .TagsLabel, .Button, .DiscussionListItem-count, .item-discussion-views {
      font-family: 'Exo 2', sans-serif;
    }
  • “I’ve done this via Google Fonts by adding the provided embed script to the Custom Header section and assigning font-family to elements in the Custom Styles section.”

    Example…

    Custom Header

    <link href="https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Raleway:wght@200;400;700&display=swap" rel="stylesheet">`

    Custom Styles

    body {
      font-family: PT Serif, serif;
    }
    h1, h2, h3, h4, .TagsLabel, .Button, .DiscussionListItem-count, .item-discussion-views {
      font-family: Raleway, sans-serif;
    }

    Reposted from https://discuss.flarum.org/d/23450-change-the-font/2

  • The only way to keep Inbox clean is to archive e-mails very frequently.

    Right now I have 26 messages total (unified Inbox in Postbox) and I start getting nervous…
    I like to have only around 10 to 25 e-mails there. There are times that I am down to Zero e-mails in Inbox!
    You have to have a setup that makes archiving easy and convenient and almost automatic. You don’t want to archive SPAM and manual review of every e-mail message is the only way to keep your archive clean. Sorry…

    Epesi has a built in e-mail client - RoundCube - and it handles multiple mailboxes and works great as E-mail Archiving solution for business e-mails, but what about your personal e-mails? Yes, you can setup a personal Epesi Vault and it will work (great for families too), but there is another solution that I use for years: a portable version of MailStore Home.

    “The free email archiving software for home users – permanently archive your personal emails from virtually any source:”

    https://www.mailstore.com/en/products/mailstore-home/

    Very reliable. I track and archive 3 personal accounts since March of 1997 with MailStore.
    Business e-mail I archive on regular basis using Epesi of course.
    Here is how to do it: https://epesi.org/overview/emailmanagement

  • Finally!

    After many years of planning and preparation and procrastination etc. we finally did it.
    Epesi Bazaar is available to Members Only at http://members.epesi.net/

    Why this name? We are following Eric’s advice from The Cathedral and the Bazaar
    http://www.catb.org/esr/writings/cathedral-bazaar/

    Want to be considered for membership?
    Are you an experienced PHP FOSS developer maintaining or contributing to Open Source software that runs on LAMP stack? Then contact us. There are many ways and you will figure it out.

    English only.
    No ads.
    Privacy.
    No tracking.

    Members must follow these guidelines when asking questions:

    How To Ask Questions The Smart Way

    Eric Steven Raymond
    http://www.catb.org/~esr/faqs/smart-questions.html

    Remember!
    When you ask a question you are the owner of this issue (ticket) and must close it. Provide the answer and close it. If you just keep asking questions and never help others your membership in the Syndicate will be suspended and may be terminated.

    This is a private forum and Epesi Bazaar is even more private, you could say secret.

    It is our Developer to Developer (D2D) and Developer to Business (D2B) and even Business to Business (B2B) platform. Therefore if you are looking for D2D or D2B or B2B or SaaS or PaaS… this is the place to join.

    We have developers and business customers in many countries and this is why everything has to be in English, lingua franca of Internet Age (at least for now).

    Cheers!
    Jasiek

  • This is such a great post and worth reading.

    Please like it and subscribe!