Saturday, January 15, 2022

After installed GCI Windows Server 2019 still error

This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".


Solution:

%windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/handlers

Wednesday, November 3, 2021

Install Python on M1 Mac

Install Python on M1 Mac
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/usr/local/bin/brew shellenv)"
arch -x86_64 pyenv install 2.7.18
-----------------------------------------------------------------------
Python build fails on M1 Apple Silicon with arm64 homebrew 

BUILD FAILED (OS X 11.6 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/h8/kskgcwkx4gb614nhfhhh0xgw0000gn/T/python-build.20211103220722.87338
Results logged to /var/folders/h8/kskgcwkx4gb614nhfhhh0xgw0000gn/T/python-build.20211103220722.87338.log

Solution
Type which brew in the terminal and it's shows you the location of brew! You're actually overwriting an existing install having a broken core tap.
Run these commands into your terminal

rm -fr $(brew --repo homebrew/core) # because you can't brew untap homebrew/core
brew tap homebrew/core

Thursday, September 23, 2021

brew install and brew update hang with error: 'refs/remotes/origin/master': unknown revision or path not in the working tree

error: Not a valid ref: refs/remotes/origin/master fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.

 -----Solution------ 

rm -fr $(brew --repo homebrew/core) # because you can't `brew untap homebrew/core` 

brew tap homebrew/core

Saturday, July 17, 2021

Nicepage: Export and Update of WP Content from App

Exporting Pages and Plugin from Application

If you have changes in your Nicepage desktop projects, you can export and
import the Nicepage pages and Plugin to your existing WordPress website. 

Run the installed Nicepage application for Windows or Mac OS.

Open your working project.
Create a new page using templates or from scratch.
Click the Export button. 
In the Export Dialog, select the WordPress Tab.
Uncheck the Theme box.
Please make sure you have the "Pages and Editor Plugin" box checked.
Click the "Export" button to export the zip file with the Pages and Plugin.
Reinstalling Plugin
Open your WordPress Administration.
Deactivate and delete the previously installed Nicepage plugin, if it exists.
Your pages will not be affected by the removal of the Nicepage Plugin.
Click "Add New" to reinstall the Plugin.
Click the "Upload Plugin" button.
Browse for the zip file or drag it from the file explorer. 
Click "Install Now."
Activate the installed Plugin.
You can skip the Content import If you do not need it.

Replacing Content
You can update pages previously created in the desktop application by
exporting and replacing them on your WordPress website. All other pages will
stay unchanged. It helps if you work mainly in your desktop application, and then
move changes to your WordPress website.
While staying in the Wizard, click the "Replace previously imported content" button.
Note that you can restart the Wizard from "Nicepage -> Plugin Wizard."
When finished, open Pages.
Switch windows to compare your WordPress pages to your desktop ones.


Summary
You have learned:

How to export the Plugin and Pages from the Nicepage Desktop Application.
How to update the Nicepage WordPress Plugin and replace the WordPress Content.

 https://nicepage.com/doc/67690/export-and-update-of-wp-content-from-app

Wednesday, April 14, 2021

Create First Root User

mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'PASSWORD';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;

Thursday, March 25, 2021

Grant Single DB to MYSQL User

CREATE USER 'username'@'%' IDENTIFIED BY 'password';

GRANT ALL PRIVILEGES ON dbname.* TO 'username'@'%';


FLUSH PRIVILEGES;

Sunday, March 21, 2021

Apache permission denied (Ubuntu)

[Mon Mar 22 06:43:51.067590 2021] [core:error] [pid 25490] (13)Permission denied: [client 27.109.115.156:55380] AH00035: access to /pssusermanipulation/ denied (filesystem path '/var/www/api/folder/folder') because search permissions are missing on a component of the path 


Solution: chmod a+rX -R /var/www