Skip to content

Instantly share code, notes, and snippets.

@chankruze
Last active May 12, 2019 02:24
Show Gist options
  • Save chankruze/fedc02100e2c37725bfc61ddbfecd1d1 to your computer and use it in GitHub Desktop.
Save chankruze/fedc02100e2c37725bfc61ddbfecd1d1 to your computer and use it in GitHub Desktop.

File Permissions

sudo mv inc/config.default.php inc/config.php
sudo chmod 666 inc/config.php inc/settings.php
chmod 777 cache/ cache/themes/ uploads/ uploads/avatars/

optional

chmod 666 inc/languages/english/*.php inc/languages/english/admin/*.php
chmod 777 cache/ cache/themes/ uploads/ uploads/avatars/ admin/backups/

Installer

Open the URL and navigate to installed directory. There will be installer page ready.

@chankruze
Copy link
Author

chankruze commented May 2, 2019

Install MySQL

sudo apt-get install mysql-server
mysql_secure_installation

If Error like below happens,


Securing the MySQL server deployment.

Enter password for user root: 
Error: Access denied for user 'root'@'localhost'

Fix

sudo nano /etc/mysql/my.cnf

add to the end:

[mysqld]
skip-grant-tables

restart MySQL : systemctl restart mysql.service

You should be able to login to mysql now using the below command mysql -u root -p

Run mysql> flush privileges;

Set new password by ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPassword';

Go back to /etc/my.cnf and remove/comment skip-grant-tables

Restart Mysql & login to mysql now using the below command mysql -u root -p

If error like below happens,

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'chandu';
ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded

Then do these:

use mysql;
update user set authentication_string=PASSWORD("") where User='root';
update user set plugin="mysql_native_password" where User='root';  # THIS LINE

flush privileges;
quit;

@chankruze
Copy link
Author

For below errors:

Supported DB Extensions: None
MyBB requires one or more suitable database extensions to be installed. Your server reported that none were available.

You are missing php-mysql.

Fix

sudo apt install php-mysql

for example for PHP 7.2.17-0ubuntu0.19.04.1 i did

sudo apt remove php*-mysql
sudo apt install php7.2-mysql

Then you need to enable mysql extension in php.ini file add extension=mysql.so and restart server.

Hola ! Fixed MyBB DB extension issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment