MyBB Community Forums

Full Version: Stuck on install
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello, I am running a ubuntu VPS trying to install MyBB. I followed this guide (https://www.rosehosting.com/blog/install...ntu-16-04/) step by step. 

I found out I didn't have Apache, so I installed that. Now I am closer than I ever was. My problem is that when I go to my domain it takes me to a index of / where all I can do is navigate the mybb files on my VPS. I've done the configuring on the /etc/apache2/sites-available/mybb.conf file, as my domain formatted like this "www.mydomain.org." Did I mess that up? Is there a secret permissions I have to add in CHMOD?

I've gotten really frustrated trying to fix this problem. Can anyone help?

Thanks,
Sk33t
You need to add mybb.conf in httpd.conf so apache can handle all requests for your virtualhost, also why don't you try to delete mybb.conf and upload mybb files to var/www/html (just saying).
(2017-04-02, 01:13 PM)Dark-Power-Invader Wrote: [ -> ]You need to add mycc.conf in httpd.conf so apache can handle all requests for your virtualhost, also why don't you try to delete mybb.conf and upload mybb files to var/www/html (just saying).

Ok, to clarify before I do this, you are saying to delete the mybb.config from /apache2/sites-avalible and to add mycc.config? Is that the same file? Last, I did upload the rest into /www/html, the files like /upload and /documentation into a folder I named mybb.

Thank you for your response, I wasn't expecting to get help.
Sorry my bad i accidentally write that mycc it was meant to mybb. You need to upload the content inside the upload folder to var/www/html.
(2017-04-03, 02:22 PM)Dark-Power-Invader Wrote: [ -> ]Sorry my bad i accidentally write that mycc it was meant to mybb. You need to upload the content inside the upload folder to var/www/html.

All the /Upload contents I downloaded are in /var/www/html/mybb. I moved the mybb.config file to that same folder, and when I attempted a restart it failed and said that the sites-enabled file wasn't working and told it to look for the config file in /sites-available. When I tried to "nano" into it, there was nothing into that file it said was bugged. Moved mybb.conf back into /sites-avalible, re-enabled the site, and restarted Apache, still only showing a index of the html folder. (in the web browser) when I click on the "mybb" folder, it just shows this long PHP file.
I installed the /Upload folder into the mybb one, so is something wrong with PHP? (also have PHP on my server)

This PHP file (this is just a snippet.)
"
<?php
/**
* MyBB 1.8
* Copyright 2014 MyBB Group, All Rights Reserved
*
* Website: http://www.mybb.com
* License: http://www.mybb.com/about/license
*
*/

define('IN_MYBB', 1);
define('THIS_SCRIPT', 'index.php');

$templatelist = "index,index_whosonline,index_whosonline_memberbit,forumbit_depth1_cat,forumbit_depth2_cat,forumbit_depth2_forum,forumbit_depth1_forum_lastpost,forumbit_depth2_forum_lastpost,forumbit_moderators";
$templatelist .= ",index_birthdays_birthday,index_birthdays,index_logoutlink,index_statspage,index_stats,forumbit_depth3,forumbit_depth3_statusicon,index_boardstats,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_viewers";
$templatelist .= ",forumbit_moderators_group,forumbit_moderators_user,forumbit_depth2_forum_lastpost_hidden,forumbit_subforums,forumbit_depth2_forum_unapproved_posts,forumbit_depth2_forum_unapproved_threads";


"
You need to install PHP too, and then restart Apache.
PHP is installed as far as I know, looks like it anyways. And it still won't work.
My guess would be that you have PHP installed but that the module didn't get loaded for some reason.

Run
$ apache2ctl -D DUMP_MODULES

If you don't see a php5 or php7 module in the "Loaded Modules" output, you might need to run:
$ a2enmod php5
(The 5 might need to be replaced with a 7 if you're running PHP 7.)
move the files from the folder /var/www/html/mybb to /var/www/html and for the php7 you might need apel release to get it work, try this apt install epel -y then update command like apt update -y, after update search for php7, if its available on epel you can install it.
Tried all that, it said "module doesn't exist" so I tried installing php 5-7 and neither worked. I then looked up how to install php7 and now I'm confident I have php7 on my server. When I ran the command "a2enmod php7" it still said mod doesn't exist.

Seems like you guys have helped narrow my problem down.

Update:

I messed around with some "apt-get" and "apt install" and I think I now have the module php. I ran "a2enmod php7.0" and it now says it's enabled, when I list the modules it says "php7_module (shared)" My site still only shows the code. Yes, I restarted Apache multiple times and even restarted the server.
Pages: 1 2