Mybb Image Guide Mybb Stack Components
Total Page:16
File Type:pdf, Size:1020Kb
MyBB Image Guide Version 1.8.10 Websoft9 MyBB is a pre-configured, ready to run image for running MyBB on Alibaba Cloud. MyBB is the free and open source, intuitive, extensible, and incredibly powerful forum software you’ve been looking for.With everything from forums to threads, posts to private messages, search to profiles, and reputation to warnings, MyBB features everything you need to run an efficient and captivating community. Through plugins and themes, you can extend MyBB’s functionality to build your community exactly as you’d like it. MyBB Stack Components Software Version: MyBB 1.8.10 Software directory: /data/wwwroot/default/mybb Basic software environment: LAMP (http://en.websoft9.com/xdocs/php- stack-linux-image-guide/) PHP Configuration File: /usr/local/php/etc/php.ini Virtual host Configuration File directory: /usr/local/apache/conf/vhost Virtual host Configuration Command: /root/oneinstack/vhost.sh Database install directory: /usr/local/mysql Database data directory: /data/mysql Database Configuration File: /etc/my.cnf Verify the Image After the installation of Image,please verify it Login on Alibaba Cloud console,get you Internet IP Address Open you Chrome or Firefox on your local PC,visit the http://Internet IP Address/ If verify successfully,you can enter the boot page of Websoft9 below If no response from browser,please check the Security Group settings (https://www.alibabacloud.com/help/doc-detail/25471.htm) to ensure that port 80 is been allowed Database Password This Image use MySQL for database #default user/password:root/123456 MySQL User Guide: Click here (http://en.websoft9.com/xdocs/manage- mysql%ef%bc%88lnmplamp-image-%ef%bc%89) Getting Started with MyBB Step1. Create a database 1.login in MySQL: Method 1:Use following URL to open phpMyAdmin page: http://< Public net IP >/phpMyAdmin Method 2:Use SSH command to login in. mysql -uroot –p #enter mysql console #default user/password:root/123456 More MySQL User Guide: Click here (http://en.websoft9.com/xdocs/manage-mysql%ef%bc%88lnmplamp- image-%ef%bc%89) 2.create a database: MySQL [(none)]> create database mydbname; MySQL [(none)]> show databases; 3.Create a Database User and grants permissions to the User: MySQL [(none)]> grant all privileges on mydbname.* to username@'localhost' identified by 'userpassword'; MySQL [(none)]> flush privileges; MySQL [(none)]> exit; (http://libs.websoft9.com/Websoft9/DocsPicture/en/common/before2.png) Step2. Add a virtual host Use SSH Command to Add a virtual host: [root@iZbp1i4rjdsy216yq7lgucZ ~]# cd /root/oneinstack [root@iZbp1i4rjdsy216yq7lgucZ oneinstack]# ./vhost.sh (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb00.png) Step3. Install MyBB Open your domain name via browser: 1. Click “Next”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb01.png) 2. Click “Next”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb02.png) 3. Click “Next”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb03.png) 4. Fill in Database Configuration, Click “Next”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb04.png) 5. Click “Next”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb05.png) 6. Click “Next”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb06.png) 7. Click “Next”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb07.png) 8. Set your Forum Configuration, Click “Next”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb08.png) 9. Set your Administrator Account, Click “Next”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb10.png) 10. OK, it has been installed successfully,Click “Admin Control Panel”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb11.png) 11. Enter your username and password, Click “login”; (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb12.png) Admin Control Panel: (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb12.png) Use http://<domain name>/ to go to your index page. (http://libs.websoft9.com/Websoft9/DocsPicture/en/mybb/mybb14.png) Using Plugins MyBB has one of the most advanced plugin systems found in modern forum software. It takes only minutes to install plugins that can make MyBB suit your needs even better. Most plugins will come with their own documentation on where the files included should go! If the mod does not come with documentation and contains a single php file then that file should be uploaded to MyBB Root Folder/inc/plugins . If the plugin still lacks documentation on where the files go, but there are directories such as jscripts , inc , or admin at the root of the plugin download’s folder, then upload the files within those directories to the respective folders of your MyBB installation. If you then browse to Admin Control Panel -> Configuration -> Plugins you will see the plugin that you have recently uploaded listed. Click the Install or Activate links to install the plugin. Upgrade Preparing for your Upgrade Before you upgrade, you should do the following steps: 1. First, you may want to shut down your forum. Doing this means that no one will interrupt the upgrade process accidentally. Please remember that switching the forum off by using the Board Online/Offline setting is not recommended. The best method is to use a .htaccess restriction on your forum’s root folder so that no one can access the front-end.To restrict access to your forum except from your IP address, you need to place the following code in your root .htaccess file if you’re using apache or in the server block of your site’s config file if you’re using nginx. Replace 127.0.0.1 with your IP address.Apache 2.4: Require all denied Require ip 127.0.0.1 2. Secondly, you should back up your files and database and store them in a safe place. Just in case something goes wrong, you can restore the backup and start again. You can back up the database using the MyBB Admin CP or your database management software. 3. You must deactivate (or disable) all of your plugins. This is because it is likely they will need to be updated to work on the new version and can cause problems if they are left active. You can deactivate (or disable) your plugins by going to Admin CP > Board Settings > General Configuration and changing “Disable All Plugins” to Yes. Beginning the Upgrade Once you’ve downloaded the correct upgrade package for you, it’s time to do the upgrade. Please follow these steps carefully. 1. Upload all of the files and folders inside the package (from inside the Upload/ folder if using the full package), including the install/ folder (if it exists), overwriting the existing copies of the files in your file system. 2. If the blog post announcement mentions that the upgrade script is required, then perform the following: 1. Open your forum’s home page in your web browser and add /install/ to the URL. For example, www.yourdomain.com/install/ or www.yourdomain.com/forum/install/ . 2. It might ask you to remove a file called lock in this folder. Use an FTP Client or a File Manager to remove the install/lock file. 3. You should see a drop down list asking what version of MyBB you’re upgrading from. Remember to select the correct version – the one you’re currently using – or else the upgrade will not work correctly. 4. Follow the instructions to run the upgrade. 5. After the upgrade has finished, check that the file called lock was created in the install/ folder. If it is missing, create it yourself or delete the install/ folder from your server. For extra protection, chmod 644 inc/config.php . 3. If the blog post announcement mentions that there are theme changes, then perform the following: 1. Go to Admin CP > Templates & Style > Templates > Find Updated Templates. This will show you a list of all the templates that have changed during the upgrade. 2. You can either revert these templates to their default – meaning all the changes you’ve made to it will be removed – or you can see a Diff Report which will show you exactly what’s changed. If you have a custom theme installed, it is probably best that you look at the Diff Report and apply the changes you need. 4. If the blog post announcement mentions that there are language changes and you’ve either customised your English language pack (the default pack) or installed a custom language pack, then perform the following: 1. Check to see if the language pack you’re using has already been updated in the Translation Releases Forum (https://community.mybb.com/forum-169.html). Download and install any updates you need. 2. If you have made customisations to the packs yourself, or you manage a language pack for MyBB, then read through the blog post announcement for a list of changes to the language packs and apply the changes as necessary. 5. The upgrade process should now be complete! You may want to re- open your forum by removing the .htaccess block or turning your forum on again. Before you do this, ensure that your forum functions correct and it looks the way it’s supposed to look! Take your time don’t rush it. Backup & Restore There are three main “sections” of the migration process(Restore): backups/export of data, uploading of data to the new host, and domain transfer. From the database backups page, you can easily create backups that are either stored on your server or downloaded to your computer. The database backups listing page shows you all backups that are currently stored on your server, the size of the backup, the time and day of creation, and allows you to download or delete the backup.