PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, July 3, 2022

[FIXED] How to configure correctly Wordpress Multi Site on Amazon AWS EC2?

 July 03, 2022     amazon-ec2, amazon-web-services, multisite, wordpress     No comments   

Issue

I created an amazon ec2 t2micro instance and installed on it Wordpress Multi Site (Bitnami) from the aws marketplace. After the installation I couldn't add a site to the network. I decided to change the mode to sub_folder instead of sub_domain, so I connected through ssh to edit the wp-config file.

I changed define('SUBDOMAIN_INSTALL', true); to define('SUBDOMAIN_INSTALL', false);

After this editing nothing changed so I decided to look for the .htaccess file. I edited the htaccess this way

`RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]`

Now I'm trying again to add a site to the network but after the creation of the new site I can't see the dashboard. What should I do?


Solution

  • Missed these commands from bitnami documentation

    sudo ./bnconfig --machine_hostname my-domain.com
    
    sudo mv bnconfig bnconfig.disabled
    
  • Assigned the DNS to Route53 setting custom DNS on my namecheap account. Added an A type DNS Record for the specific subdomain that points to my Elastic Ip Address.

It works now!



Answered By - Alessandro Carrese
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing