Advertisement:

Install SMF after blog software WordPress MU

Aloittaja mshao, elokuu 22, 2006, 05:30:44 IP

« edellinen - seuraava »

mshao

SMF Version: SMF 1.1 RC2
Hi,
I have WordPress MU installed and running.  So I downloaded and uploaded SMF to /public_html/smf/.  But when I try to run the install.php in the directory, it tells me the file not found because it tries to find a blog page with this name.  It seems that it has some thing to do with the RewriteRule in the .htaccess file.

Any ideas on how to handle this situation.

Thanks

Kindred

disable that rewrite rule in your .htaccess file... otherwise you are going to have issues running with smf at all, let alone installation.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mshao

I don't know which specific RewriteRule that causes the problem?  Do you mean that I should turn off the RewriteEngine (in .htaccess, set RewriteEngine off) while installing SMF?  Then turn it back on after SMF installation is done?

Thanks

Kindred

no...

the chances are that if it is messing with the install, it will also mess with the proper running of the forum as well.   Post your .htaccess here...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

mshao

#4
Following is the .htaccess:

#php_flag register_globals 0
#php_flag display_errors 0
RewriteEngine On
RewriteBase /

# Rewrite www.domain.com to domain.com
RewriteCond %{HTTP_http://archexpression.com} ^www\.(.*)
RewriteRule ^(.*)       http://%1/$1 [R,L]

###
#### blogs
###
RewriteRule ^([_0-9a-zA-Z-]+)/templates/(.*) /wp-inst/wp-content/blogs/$1/templates/$2 [L]

# mshao, 04/19, commented out
#RewriteRule ^([_0-9a-zA-Z-]+)/files/(.*)                  /wp-inst/wp-content/blogs.php?file=$1 [L]

#mshao, 04/19, added
RewriteRule ^files/(.*)                  /wp-inst/wp-content/blogs.php?file=$1 [L]


RewriteRule ^([_0-9a-zA-Z-]+)/wp-content/blogs/(.*)/files/(.*) /wp-inst/wp-content/blogs.php?file=$3 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-content/themes/(.*) /wp-inst/wp-content/themes/$2 [L]
RewriteRule ^wp-content/themes/(.*) /wp-inst/wp-content/themes/$1 [L]

# rewrite these
RewriteRule ^([_0-9a-zA-Z-]+)/category/(.*)/page/(.*)/ /wp-inst/index.php?wpblog=$1&category_name=$2&paged=$3 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-inst/wp-feed.php?wpblog=$1&category_name=$2&feed=$3 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/category/?(.*) /wp-inst/index.php?wpblog=$1&category_name=$2 [L]

RewriteRule ^([_0-9a-zA-Z-]+)/tag/(.*)/page/(.*)/ /wp-inst/index.php?wpblog=$1&category_name=$2&paged=$3 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/tag/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-inst/wp-feed.php?wpblog=$1&category_name=$2&feed=$3 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/tag/?(.*) /wp-inst/index.php?wpblog=$1&category_name=$2 [L]

RewriteRule ^([_0-9a-zA-Z-]+)/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-inst/wp-feed.php?wpblog=$1&author_name=$2&feed=$3 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/author/?(.*) /wp-inst/index.php?wpblog=$1&author_name=$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-zA-Z-]+)?/?([0-9]+)?/?$   /wp-inst/index.php?wpblog=$1&year=$2&monthnum=$3&day=$4&name=$5&page=$6 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/([0-9]{4})/?([0-9]{1,2})/([0-9]{1,2})/([_0-9a-zA-Z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wp-inst/wp-feed.php?wpblog=$1&year=$2&monthnum=$3&day=$4&name=$5&feed=$6 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/([0-9]{4})/?([0-9]{1,2})/([0-9]{1,2})/([_0-9a-zA-Z-]+)/trackback/?$ /wp-inst/wp-trackback.php?wpblog=$1&year=$2&monthnum=$3&day=$4&name=$5 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/page/?([0-9]+)?/?$ /wp-inst/index.php?paged=$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/feed/?([_0-9a-zA-Z-]+)?/?$ /wp-inst/wp-feed.php?wpblog=$1&feed=$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/comments/feed/?([_0-9a-zA-Z-]+)?/?$ /wp-inst/wp-feed.php?wpblog=$1&feed=$2&withcomments=1 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/archives/p/([0-9]+)/?(.*)? /wp-inst/index.php?wpblog=$1&redirect=yes&p=$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/archives/cat/([0-9]+)/?(.*)? /wp-inst/index.php?wpblog=$1&redirect=yes&cat=$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/archives/m/([0-9]+)\#?(.*)? /wp-inst/index.php?wpblog=$1&redirect=yes&m=$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/b2rss2.php(.*)? /wp-inst/wp-feed.php?wpblog=$1&feed=rss2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/b2rdf.php(.*)? /wp-inst/wp-feed.php?wpblog=$1&feed=rdf [L]

# We want to pass these files straight through

# mshao 07/12 RewriteRule ^([_0-9a-zA-Z-]+)/?wp-comments-post.php(.*)  /wp-inst/wp-comments-post.php    [L]
RewriteRule ^([_0-9a-zA-Z-]*)/?wp-comments-post.php(.*)     /wp-inst/wp-comments-post.php [L]

RewriteRule ^([_0-9a-zA-Z-]+)/go.php(.*) /wp-inst/go.php$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/pages/(.*) /wp-inst/pages/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-admin/(.*) /wp-inst/wp-admin/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-atom.php(.*) /wp-inst/wp-atom.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-comments-popup.php(.*) /wp-inst/wp-comments-popup.php [L]

# mshao 07/12 RewriteRule ^([_0-9a-zA-Z-]+)/wp-comments-post.php(.*) /wp-inst/wp-comments-post.php [L]
RewriteRule ^([_0-9a-zA-Z-]*)/?wp-comments-post.php(.*)     /wp-inst/wp-comments-post.php [L]

RewriteRule ^([_0-9a-zA-Z-]+)/wp-commentsrss2.php(.*) /wp-inst/wp-commentsrss2.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-counter.php(.+)? /wp-inst/wp-counter.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-feed.php(.*) /wp-inst/wp-feed.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-images/(.*) /wp-inst/wp-images/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-links-opml.php(.*) /wp-inst/wp-links-opml.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-login.php(.*) /wp-inst/wp-login.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-mail.php(.*) /wp-inst/wp-mail.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-pass.php(.*) /wp-inst/wp-pass.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-rdf.php(.*) /wp-inst/wp-rdf.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-register.php(.*) /wp-inst/wp-register.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-rss.php(.*) /wp-inst/wp-rss.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-rss2.php(.*) /wp-inst/wp-rss2.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-sidebar.php(.*) /wp-inst/wp-sidebar.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-trackback.php(.*) /wp-inst/wp-trackback.php [L]
RewriteRule ^([_0-9a-zA-Z-]+)/xmlrpc.php(.*) /wp-inst/xmlrpc.php [L]  
RewriteRule ^([_0-9a-zA-Z-]+)/maintenance.php /wp-inst/maintenance.php [L]  
RewriteRule ^([_0-9a-zA-Z-]+)/favicon.ico /wp-inst/favicon.ico [L]  
RewriteRule ^([_0-9a-zA-Z-]+)/wp-includes/images/(.*) /wp-inst/wp-includes/images/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+)/wp-includes/js/(.*) /wp-inst/wp-includes/js/$2 [L]

RewriteRule ^wp-newblog.php$ /wp-inst/wp-newblog.php [L]
RewriteRule ^wp-login.php /wp-inst/wp-login.php [L]
RewriteRule ^wp-admin/(.*) /wp-inst/wp-admin/$1 [L]
RewriteRule ^wp-includes/images/(.*) /wp-inst/wp-includes/images/$1 [L]
RewriteRule ^wp-includes/js/(.*) /wp-inst/wp-includes/js/$1 [L]
RewriteRule ^signup/ /wp-inst/wp-newblog.php [L]
RewriteRule ^invite/(.*)/? /wp-inst/wp-newblog.php?u=$1 [L]
RewriteRule ^index.php /wp-inst/index.php [L]

RewriteRule ^$ /wp-inst/index.php [L]

# catch all rules
RewriteRule ^([_0-9a-zA-Z-]+)/ /wp-inst/index.php [L]
RewriteRule ^([_0-9a-zA-Z-]+) $1/ [R,L]

AddType text/css .css

# mshao, 08/10/06
php_value upload_max_filesize 3M
php_flag register_globals off

青山 素子

Scanning through very quickly, these two rules can cause the problems you are seeing:


# catch all rules
RewriteRule ^([_0-9a-zA-Z-]+)/ /wp-inst/index.php [L]
RewriteRule ^([_0-9a-zA-Z-]+) $1/ [R,L]
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


mshao

Thanks for the reply.
I will try to comment the two lines out and see if I can access /smf/install.php.  But will doing so impact my blog setup of sub-domain, DNS alias, etc. (WordPress)?  I am new to .htaccess.  By the way, my web site is http://www.archexpression.com/ [nofollow]

Thanks

青山 素子

Yes, it very likely will, depending on how links to it are formatted. Perhaps your host offers you subdomains? You can then set the SMF subdirectory as the root of a subdomain, and avoid the whole mess.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


mshao

Great idea.  Yes, my host offers sub-domain.  So I will set up a sub-domain like http://smf.mysite.com/ [nofollow], which is pointed to the physical path of /public_html/smf/.  Then I will run the installation file from http://smf.mysite.com/install.php [nofollow].  Is this right?

Thanks a lot.

青山 素子

Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


mshao

I tried last night.  Still no good after setting a sub-domain, http://smf.mysite.com.  My site was trying to find a blog named "smf", which doesn't exist.  I think the answer still lies in the .htaccess.  I am continuing to try.  In the mean time, if any ideas, I appreciate it.

AngelSL

If you put a .htaccess in the folder SMF is in, Apache would read that than the one doing the blog.
If you don't know what I mean, just swap places - Put SMF in the index and blog in a folder.

mshao

Yes, I got it.  Great idea.
If I put a blank .htaccess in the /smf/ folder to fool the server, Apache will ignore the .htaccess file in /public_html/ when I refer to /public_html/smf/install.php.  I will try it tonight and hope it will work.  Thanks for the clue.

Advertisement: