BITNAMI Multisite wordpress stack installation issues and fixes

Jan 11, 2013   //   by contactng   //   Blogging Tips  //  4 Comments

While installing and configuring BITNAMI
WordPress Multisite stack on WINDOWS using subdirectory method faced some critical issues like images and css configuration is not reflecting, wp-admin not working in subdirectory blogs, please find related information below.

Installation of BITNAMI WordPress multisite is straight forward, download windows exe version and just execute and it will be done in not more than 30 min if everything goes fine, use below reference link to download and install this wonderful tool,

Download link: http://bitnami.org/stack/wordpress

Installation method: http://wiki.bitnami.org/Applications/BitNami_WordPress_Multisite

Some detailed installation and troubleshooting tips while installing multisite are available at following links,

http://sumtips.com/2011/01/enable-multisite-feature-wordpress-3-1.html

http://codex.wordpress.org/Tools_Network_Screen

http://answers.bitnami.org/questions/8691/wordpress-multiple-sites-redirect-problems-with-subdomains

http://journalxtra.com/websiteadvice/wordpress/how-to-force-multi-site-to-use-subdirectories-2427/

http://answers.bitnami.org/questions/3706/multi-site-installation-missing-images-on-subdirectory-sites-urgent

 

While installing on my local windows 7 system, I faced some issues,

Error 1: “Unable to bind to the 80 port number. WordPress Multisite only supports this port for the apache server”

Issue: As WordPress require port 80 to host Multisite functionality hence if some application is already using port 80 (like IIS) then Bitnami will throw this erro at first installtino screen

Fix: I have explained the fix at following link, http://lostincreativity.com/blog/error-unable-to-bind-to-the-80-port-number/

 

Error 2: After successfully creating subdirectory blog (for e.g. testblog), when going to root link say at http://127.0.0.1/ then all images and css are working fine but when going to newly created subdirectory blog http://127.0.0.1/testblog/ it is showing the data without images and css as below,

 

And when accessing dashboard or http://127.0.0.1/testblog/wp-admin/ it is showing page not found error as,

Issue: These were failing because of mod_rewrite rules for apache .htaccess file and BITNAMI wordpress.conf file

Fix: Fix is to update below code in .htaccess file present in \BitNami WordPress Multisite Stack\apps\wordpress\htdocs\ folder of your installation directory and wordpress.conf file present in \BitNami WordPress Multisite Stack\apps\wordpress\conf\ folder of your installation directory

Open .htaccess and replace text between # BEGIN WordPress and # END WordPress as below,

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
</IfModule>

Once done, save file and open wordpress.conf file and replace the text started with RewriteEngine ON till RewriteRule . index.php [L] (see highlighted one in image),

 

with below text,

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

Final files will look like attached,

Highlighted section below is the updated one,

After doing above, restart your database and apache server and images/CSS should work absolutely fine, have fun!


 

4 Comments

  • I was suggested this website by my cousin. I am not sure whether this post is written by him as no one else know
    such detailed about my trouble. You’re amazing! Thanks!

  • Thank you! This realy saves my day!

  • Miracle from god! Thank you! This worked on a ec2 bitnami wordpress multisite ami installation.

  • Hi. I’m dealing with the first error, ‘Error 1: “Unable to bind to the 80 port number. WordPress Multisite only supports this port for the apache server”. Went through the troubleshooting steps of connecting the PID to port 80. It seem that the Apache HTTP server(.exe) is listening to port 80. Now I”m stumped. Can anyone help?

    PS. On Windows 8.1

Leave a comment to Jairo Rodriguez

Subscribe to LostinCreativity.com

Enter your email address to subscribe to this website and receive notifications of new posts by email.

Join 111 other subscribers