With the ones you found in the strong lines factory: Caddy Config your. In the wp-config.php replace the lines: define( 'AUTH_KEY', 'put your unique phrase here' ) ĭefine( 'SECURE_AUTH_KEY', 'put your unique phrase here' ) ĭefine( 'LOGGED_IN_KEY', 'put your unique phrase here' ) ĭefine( 'NONCE_KEY', 'put your unique phrase here' ) ĭefine( 'AUTH_SALT', 'put your unique phrase here' ) ĭefine( 'SECURE_AUTH_SALT', 'put your unique phrase here' ) ĭefine( 'LOGGED_IN_SALT', 'put your unique phrase here' ) ĭefine( 'NONCE_SALT', 'put your unique phrase here' ) Sudo -u www-data sed -i 's/password_here//' /srv/www/wordpress/wp-config.php Sudo -u www-data sed -i 's/username_here/wordpress/' /srv/www/wordpress/wp-config.php GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER ON wordpress.* TO WordPress with that user sudo -u www-data sed -i 's/database_name_here/wordpress/' /srv/www/wordpress/wp-config.php Mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER ON wordpress.* TO FLUSH PRIVILEGES Įnable MySQL with sudo service mysql startĪt this point you should have a note with credentials: DB_NAME=wordpressĬreate the db user and stuff CREATE USER IDENTIFIED BY '' Let’s generate a strong password openssl rand -base64 20 Notice Im not using specif versions, like not, im getting things off the apt shells, they know what they are doing, this way I get a more future resilient script (hopefully). sudo mkdir -p /srv/wwwĬurl | sudo -u www-data tar zx -C /srv/www We also covered how to use the command line and Ubuntu GUI to connect to the FTP server. Step 7 -Change / Set user’s FTP home directory & give group permissions. In this article, we saw how to use VSFTPD to create an FTP server on Ubuntu 20.04 Focal Fossa. Have caddy (v2) working all ready, you cleaned your apache or you nginx, easy apt install caddy after cleaning.ĭownload WordPress from source and manage permissions on the install dir. Step 3 Ensure vsftpd starts on server reboot.Have a domain correctly mapped to that server.Have a ubuntu server up and running, maybe other OS go smooth, but I haven’t tested them. ![]() When the installation is complete, we’ll copy the configuration file so we can start with a blank configuration, saving the original as a backup. ![]() This guide is a mix between an Ubuntu tutorial and gist with some fine tune elements that worked for me. We’ll start by updating our package list and installing the vsftpd daemon: sudo apt-get update. Setting_up_wordpress_with_caddy_on_ubuntu_graph 600×600 15.2 KB
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |