1,008 B
1,008 B
| slug |
|---|
| wp-config |
WordPress Configuration
- Make sure that the virtual host in the web server is enabled to serve PHP files
- If you had a Content-Security-Policy, you need to throw that out the window. If you want to keep it, you'll need to modify it to include
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.example.com; style-src 'self' 'unsafe-inline' data:; font-src 'self' data:; img-src https://*.gravatar.com https://woocommerce.com - Change dir to
/srv/www/main/htmland usewget https://wordpress.org/latest.tar.gzthen extract it withtar -xzvf latest.tar.gz - If you
lsthe current dir, you should have a folder called wordpress socdinto it. Usemv ./* ..to move the files where they're supposed to be.cd ..thenrm -rf wordpressonce you've verified that all the files have moved andwordpressis empty mv wp-sample-config.php wp-config.phpthen set DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST to the values you set in MySQL