Can WordPress be installed at the root level, if a homepage called index.php already exists?

In theory, you could rename the file and change the rewrite rule accordingly. Assuming you rename it to wp-index.php, it would look something like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wp-index.php [L] </IfModule> There are a few references to index.php in the WP source, but they’re … Read more

Programatically Creating Initial WordPress Site

I’d highly recommend WP-CLI for such tasks. It is a tool that allows installation and configuration of WordPress on the command line. What you are trying could easily be done: wp core download wp core config –dbname=<dbname> –dbuser=<dbuser> –dbpass=<dbpass> wp core install –url=<url> –title=<site-title> –admin_user=<username> –admin_password=<password> –admin_email=<email> There are a lot of other commands that … Read more

WordPress package configuration in Ubuntu Server?

The code you posted is to have multiple wp-config.php-style wordpress configuration files with one codebase. the configuration is then based on the domain name. imagine the localserver is listening on http://localhost.localdomain/ (no idea which one is the default with ubuntu), then the configuration file would be: /etc/wordpress/config-localhost.localdomain.php. This is made so that the wordpress package … Read more

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

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

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