Do it your self hobby code

Year: 2019

Required XMLReader PHP extension is missing on your server!

Required XMLReader Php extension. You are running your own vps and hosting a website. But after you installed a wordpress site, you see this error: Required XMLReader PHP extension is missing on your server! How to install XMLReader PHP extension on Linux VPS Ubuntu server? Run this command: sudo apt-get install php-xml And then restart …

Required XMLReader PHP extension is missing on your server! Read More »

Woocommerce: How to change currency symbol programmatically

woocommerce change currency programmatically

Woocommerce change currency programmatically In this tutorial, we will discuss two ways of changing currency symbol by editing the plugins or by code snippet. Either one should work. Editing Woocommerce plugin php file: The file that holds the code is: File: wc-core-functions.php Location: /[your-theme-folder]/wp-content/plugins/woocommerce/includes On line 520, you will see this: In this example, we …

Woocommerce: How to change currency symbol programmatically Read More »

Changing server time zone — Ubuntu

This is very important when you have some programs scheduled to run using cron. Display current timezone cat /etc/timezone Because I’m using New York timezone, this will display:America/New_York How to change the server timezone? I’d like to change the server to Dubai timezone, so I’ll enter: ln -sf /usr/share/zoneinfo/Asia/Dubai /etc/localtime To list other countries timezone …

Changing server time zone — Ubuntu Read More »

Create a sudo user — Ubuntu

To have an administrator privileges, you have to add the user to sudo group. Log in to your Ubuntu server using your root account or a sudo user if you already have. While on the terminal type this command: adduser your_username or sudo adduser your_username Assign a password. Enter it twice. Now that you have …

Create a sudo user — Ubuntu Read More »