I just bought a new domain, though I used Moniker instead of what I normally use, GoDaddy.
I uploaded all of the MyBB files with FileZilla and readied myself for installation.
Then, when I went to /install, it asked me if I wanted to download the file, and then the same thing on any other page. BUT when I upload index.html that says Hello World, it executes.
I have 4-5 PHP applications running on the same exact server (it's a VPS) and one of them is another MyBB forum. So why can I not install this one, but the others work fine?
Do you have a non-default-MyBB .htaccess file?? Somewhere there will be something configured to tell the server to serve these files for download rather than execute them.
I uploaded only what came in the MyBB package. This is the htaccess file:
Options -MultiViews +FollowSymlinks -Indexes
#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
# MediaTemple, it is known to cause random Internal Server
# errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
# the setting enabled in the Admin CP and you have this file
# named .htaccess
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]
RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]
RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]
RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]
RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]
RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]
<IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</IfModule>
#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
</IfModule>
Do you have any other .htaccess files in any other directories anywhere in the file system?? There's something different about the configuration of this site, it's not an issue with the files themselves.
(2011-09-25, 09:57 AM)MattRogowski Wrote: [ -> ]Do you have any other .htaccess files in any other directories anywhere in the file system?? There's something different about the configuration of this site, it's not an issue with the files themselves.
No where on this account, no.
It really doesn't make sense to me. I know it's NOT a bug in MyBB because I have the same script running on my other site on the same server. But I also don't understand how it could be my server when I have the same script running on another site on the same server.
How about if its a fresh install, try deleting and reuploading and installing again?
<?php
phpinfo();
?>
See if that works - with nothing else in the root directory. If not, call Moniker tech support. (Are you sure you didn't buy IIS hosting, with no PHP?)
(2011-09-25, 10:09 PM)Rukbat Wrote: [ -> ]<?php
phpinfo();
?>
See if that works - with nothing else in the root directory. If not, call Moniker tech support. (Are you sure you didn't buy IIS hosting, with no PHP?)
I didn't buy IIS hosting. I have five other PHP scripts on the same server and one of them in MyBB.
It tries to download phpinfo.
(2011-09-25, 10:14 PM)Siege Wrote: [ -> ]It tries to download phpinfo.
That says that PHP isn't running for that URL (I can't even guess further, let alone diagnose further). Call tech support.