Posts

Complete Guide to Installing Odoo 17 on Digital Ocean with Ubuntu 22.04

Odoo 17 installation on Digital Ocean with Ubuntu 22.04 Detailed Guide to Installing Odoo 17 on a Digital Ocean Ubuntu 22.04 Drople t Odoo is a comprehensive and flexible open-source business management software suite that includes a wide range of applications. This guide provides a detailed, step-by-step tutorial on installing Odoo 17 on a Digital Ocean droplet running Ubuntu 22.04. Prerequisites Before starting the installation process, ensure you have the following prerequisites: - A Digital Ocean account. - A droplet running Ubuntu 22.04. - Access to the server via SSH. - Basic knowledge of the command line. Step-by-Step Installation Step 1: Create an Ubuntu 22.04 Droplet 1. **Log in to Digital Ocean** and create a new droplet with Ubuntu 22.04 as the operating system. 2. **Choose the droplet specifications** based on your company's size and requirements. For Odoo, a droplet with at least 2GB of RAM is recommended. 3. **Set the authentication method** to a password and ensure ...

Odoo 17 - large database restore error

Odoo 17 Large Database Restore Error -  413 Request Entity Too Large While grappling with a perplexing '413 REQUEST ENTITY TOO LARGE' error during the restoration of a sizable database backup onto an existing server, the common reflex was to scrutinize the nginx configuration file. However, the root cause proved elusive, as the same issue persisted when loading Odoo with an IP and port. Before you jump to the standard advice of adjusting 'client_max_body_size' in your nginx configuration, bear with me, because this situation is peculiar and unrelated to nginx or Apache. In an unexpected twist, the solution resided not in the nginx configuration but in the Odoo configuration file (/etc/odoo/odoo.conf). The key was to add a parameter with a significantly higher value: [options] web.max_file_upload_size = Surprisingly, 'web.max_file_upload_size' couldn't be overridden via the odoo.conf file. However, a breakthrough came when I edited line number 235 in 'odo...

Whhtmltopdf error

Whhtmltopdf issue in odoo. Error Message : wkhtmltopdf: b"The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored Solution: ##Remove wkhtmltopdf if it is already installed. sudo apt remove wkhtmltopdf cd ~ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz tar xvf wkhtmltox*.tar.xz sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin sudo apt-get install -y openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig For more insights and professional Odoo Community/Enterprise implementations, connect with us at hashcodeit.com or drop an email at info@hashcodeit.com, +971545975212.  Transform your Odoo journey with precision and expertise!

github - bit bucket mirroring

  Requirement:   We have a project deployed using version controller github and need the same code in bitbucket with commit history and both repositories should be in synchronized as there is continuous deployment # Clone the git repository that you want to merge to the bitbucket repository branch git clone git@github.com:<github_user_name>/<github_repo_name>.git # Rename origin to github git remote rename origin github #Add the bitbucket as a remote to the cloned repository. Replace<bitbucket_repo_url> with the URL of the bitbucket. git remote add bit <bitbucket_repo_url> #Fetch the branches and commits from the bitbucket git fetch bit #checkout to the bitbucket branch, git checkout bit #Attempt to merge the github into the bitbucket. Use the --allow-unrelated-histories flag to force Git to merge the unrelated histories. git merge --allow-unrelated-histories bit/<branch_name> #Resolve any merge conflicts and commit the changes and push the merged...

Install odoo 15 on ubuntu 18 / 20 with nginx and auto renewing ssl

  Install odoo 15 in ubuntu 18/20 LTS with secure domain name   Explore the seamless journey of installing Odoo 15 on Ubuntu 18/20 LTS while securing it with a custom domain and auto-renewing Let's Encrypt SSL through Nginx. Elevate your Odoo experience with a step-by-step guide that covers everything from setting up SSH access, enhancing server security with Fail2ban, to configuring a robust Nginx web server.     ## ssh into the server with root privileges or some user having sudo  ssh username@IP ##update the system  sudo apt-get update && sudo apt-get upgrade  ##Fail2ban is an tool used to improve server security from cyber attacks sudo apt-get install openssh-server fail2ban -y ##Install the required python packages,libraries and web dependencies for Odoo sudo apt-get install -y python3-pip -y sudo apt-get install python-dev python3-dev libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev build-essential libssl-dev libffi-dev ...

LIGHTSQUID COMPILATION IN RHEL6

Image
Required software: Perl http server (Apache, lighthttpd, etc) Squid #mkdir –p /var/www/htdocs/ #cd /var/www/htdocs/ #mkdir lightsquid #cd lightsquid #wget https://indoit.googlecode.com/files/lightsquid-1.8.tar.gz #tar -xzf lightsquid-1.8.tar.gz #cd lightsquid-1.8 #chmod +x *.cgi #service  httpd  stop #rm  ‐rf   /usr/local/lamp/apache */if apache customised  for lamp then remove it/* #yum install httpd #yum install perl*         #chown -R apache:apache * #vim /etc/httpd/conf/httpd.conf <Directory "/var/www/html/lightsquid"> AddHandler cgi-script .cgi AllowOverride All </Directory> #yum –y install squid #yim /etc/httpd/conf.d/squid.conf    Change “From local host” to from all #yum install httpd #vim /var/www/html/lightsquid/lightsquid-1.8./lightsquid.conf */replace all default path to our path /* #path to additional `cfg` files $cfgpath         ="/var/www/html/lightsquid/lightsq...

Configure LAMP (Linux, Apache, Mysql, PHP) on RHEL 6

LAMP -   L inux,   A pache,   M ySQL and   P HP , an open-source Web development platform/Web stacks, that  uses   Linux   as the   operating system ,   Apache   as the Web server,   MySQL   as the DBMS   and   PHP   as the   scripting language.   Perl   or Python   is often substituted for PHP Apache - Apache provides the mechanics for getting a Web page to a user. Apache is a stable,  mission-critical-capable server, and it runs more than 65 percent of all Web sites on   the Internet. The PHP component actually sits inside Apache, and you use Apache and  PHP together to create your dynamic pages. MySQL  - MySQL provides the data-storage side of the LAMP system. With MySQL, you  have access to a very capable database suitable for running large and complex sites. Within your Web application, all your data, products, accounts, and other types of informatio...