{"id":18529,"date":"2016-02-03T14:18:25","date_gmt":"2016-02-03T20:18:25","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=18529"},"modified":"2022-06-03T03:43:50","modified_gmt":"2022-06-03T08:43:50","slug":"install-minibb-forum-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-minibb-forum-on-centos-7\/","title":{"rendered":"Install miniBB forum on CentOS 7"},"content":{"rendered":"
miniBB or Mini Bulletin Board is a PHP based standalone, open source program for building your own Internet forums. In this tutorial we will install miniBB on a CentOS 7 VPS<\/a><\/strong> with Apache, PHP and MariaDB. <\/p>\n Log in to your CentOS server via SSH as user root<\/p>\n and first of all make sure that all packages installed on your server are up to date:<\/p>\n miniBB requires and empty database, so we will have to install a database server. Run the following command to install MariaDB server:<\/p>\n Start the MariaDB database server and enable it to start at the boot time:<\/p>\n Run the ‘mysql_secure_installation’ script to secure the database server and set your MariaDB root password.<\/p>\n Log in to the MariaDB server using the MySQL ‘root’ user and create new database and user for miniBB:<\/p>\n Don’t forget to replace ‘PASSWORD’ with a strong password.<\/p>\n Install Apache web server<\/p>\n Start the web server and add it to automatically start on the system start-up:<\/p>\n miniBB is a PHP based application and it requires PHP. So, install PHP on your server:<\/p>\n Download the latest stable release of miniBB forum from their official website. At the moment of writing this article it is version 3.2.1.<\/p>\n Unpack the downloaded zip archive to the document root directory on your server:<\/p>\n If you are not sure where is your document root directory you can use the following command to find out:<\/p>\n Change the ownership of the miniBB files:<\/p>\n Now, open the ‘setup_options.php’ file which contains almost every common option of miniBB. We will enter the information of the MySQL database we created in this post and create a new administrator user.<\/p>\n More information about the options available in the configuration file you can find at miniBB’s official website<\/a><\/p>\n Next, create Apache virtual host for your domain. Create ‘\/etc\/httpd\/conf.d\/vhosts.conf’ file with the following content<\/p>\n and create the virtual host<\/p>\n Restart the Apache web server for the changes to take effect.<\/p>\n Now, navigate your favorite web browser to http:\/\/yourdomain.com\/_install.php to finish the miniBB installation.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install miniBB<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/span><\/strong><\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" miniBB or Mini Bulletin Board is a PHP based standalone, open source program for building your own Internet forums. In … <\/p>\n
\n<\/span><\/p>\nssh rooot@your_IP<\/pre>\n
yum -y update<\/pre>\n
yum install mariadb mariadb-server<\/pre>\n
systemctl start mariadb\r\nsystemctl enable mariadb<\/pre>\n
mysql -u root -p\r\n\r\nCREATE DATABASE minibb;\r\nCREATE USER 'minibbuser'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nGRANT ALL PRIVILEGES ON `minibb`.* TO 'minibbuser'@'localhost';\r\nFLUSH PRIVILEGES;<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum install php php-common<\/pre>\n
unzip minibb.zip -d \/var\/www\/html<\/pre>\n
grep -i '^documentroot' \/etc\/httpd\/conf\/httpd.conf\r\nDocumentRoot \"\/var\/www\/html\"<\/pre>\n
chown -R apache:apache \/var\/www\/html\/minibb<\/pre>\n
vim \/var\/www\/html\/minibb\/setup_options.php\r\n\r\n$DBhost='localhost';\r\n$DBname='minibb';\r\n$DBusr='minibbuser';\r\n$DBpwd='PASSWORD';\r\n$admin_usr = 'ADMIN_USR';\r\n$admin_pwd = 'ADMIN_PASSWORD';\r\n$admin_email = 'admin@yourdomain.com';\r\n$main_url='http:\/\/yourdomain.com';<\/pre>\n
vim \/etc\/httpd\/conf.d\/vhosts.conf\r\n\r\nIncludeOptional vhosts.d\/*.conf<\/pre>\n
vim \/etc\/httpd\/vhosts.d\/yourdomain.com.conf\r\n\r\n<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \"\/var\/www\/html\/minibb\/\"\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\nErrorLog \"\/var\/log\/httpd\/yourdomain.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/yourdomain.com-access_log\" combined\r\n\r\n<Directory \"\/var\/www\/html\/minibb\/\">\r\nDirectoryIndex index.html index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n<\/Directory>\r\n<\/VirtualHost><\/pre>\n
systemctl restart httpd<\/pre>\n