Things to remember when setting up a WordPress site on an Apache server
/etc/hosts
add local url to 127.0.0.1
/etc/apache2/extra/httpd-vhosts.conf
add vhost config for site
- If Wordpress/bedrock the path needs to be the projectfolder/web
At this point, run sudo apachectl restart
to restart apache. (anytime you mess with apache config files)
.htaccess file with default Wordpress rules added to the web folder
Secure database dump, Find and replace prod domain with local domain in sql, and import into Sequel Pro
- Specifically, update the
site_url
andhome
fields in the_options
table.
- If Bedrock: In
.env
, the DB_USER and DB_PASSWORD are your MYSQL credentials (Zach look in last pass you saved it there) - If Vanilla: In
wp-config.php
, theDB_USER
andDB_PASSWORD
are your MYSQL credentials (Zach look in last pass you saved it there)
- MAKE SURE TO CHECK FOLDER PERMISSIONS FOR UPLOADS SO THAT WORDPRESS CAN UPLOAD TO IT