Posts

Showing posts from April, 2025

wordpress using nginx php mysql on macos

  🧰 Prerequisites (via Homebrew) Open Terminal and install the essentials: bash Copy Edit brew install nginx mysql php unzip Start services: bash Copy Edit brew services start nginx brew services start mysql brew services start php Optional: You can check versions with nginx -v , mysql --version , php -v . 🗃️ Create a MySQL Database for WordPress bash Copy Edit mysql -u root Then inside MySQL shell: sql Copy Edit CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; CREATE USER 'wpuser' @ 'localhost' IDENTIFIED BY 'wppassword' ; GRANT ALL PRIVILEGES ON wordpress. * TO 'wpuser' @ 'localhost' ; FLUSH PRIVILEGES; EXIT; 📥 Download and Place WordPress bash Copy Edit cd /usr/local/var/www curl -O https://wordpress.org/latest.zip unzip latest.zip mv wordpress wordpress.local rm latest.zip You now have the site files in: /usr/local/var/www/wordpress.local 🔧 Configure Nginx Nginx config li...

wordpress setup

  Welcome to WordPress. Before getting started, you will need to know the following items. Database name Database username Database password Database host Table prefix (if you want to run more than one WordPress in a single database) This information is being used to create a  wp-config.php  file.  If for any reason this automatic file creation does not work, do not worry. All this does is fill in the database information to a configuration file. You may also simply open  wp-config-sample.php  in a text editor, fill in your information, and save it as  wp-config.php .  Need more help?  Read the support article on  wp-config.php . In all likelihood, these items were supplied to you by your web host. If you do not have this information, then you will need to contact them before you can continue. If you are ready…

wordpress