Trying to install WordPress on WSL Windows 10, and running into issues with wp-cli and “wp db create”

The error has nothing to do with your setup. It says that your connection credential to MySQL database is incorrect. ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES) When you were setting up the MySQL by following the tutorial sudo apt install -y lamp-server^ It probably did ask you to set a … Read more

WSOD for admin when using PHP 7

After a lot of testing and considerable frustration, I discovered the problem. I am including this solution in the hope that it saves someone else a lot of frustration if they encounter a similar problem. The problem to be the presence of a PHP closing tag ‘?> ‘ in the functions.php file of the child-theme. … Read more

Multisite configuration fails with css/js files

The problem was in the .htaccess file the installation script generated. Specificaly, those two lines: RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) home/itaymoav/dev/lmspages/$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ home/itaymoav/dev/lmspages/$2 [L] The path in there is the actual path to the files. While it had to be the relative path from root dir of the worpress installation. Or, to put it simply: RewriteRule … Read more

Repeatable configuration package

Not exactly what you are asking for, but very close. There is a concept of ‘dropin’ plugins that exists primarily to override or add to core functions The dropins will always load. So one ftp’s up wordpress including whatever plugin files you want that will create your default environment. These should be in the top … Read more

Why did installing wordpress in url root jack up underlying WP sites?

In each of the web.config files for each directory, they will look much like this: <rewrite> <rules> <rule name=”wordpress” stopProcessing=”true”> <match url=”*” /> <conditions> <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” /> <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” /> </conditions> <action type=”Rewrite” url=”index.php” /> </rule> </rules> </rewrite> For each sub-site, you need to change the rule name and add a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)