Brancms on linux error

gochad

Lacrim
Feb 9, 2019
122
20
Hey there i need some help

$db['host'] = 'idk'; //Mysql's Host
$db['port'] = '3306'; //Mysql's port
$db['user'] = "root"; //Mysql's user
$db['pass'] = 'iknow'; //Mysql's password
$db['db'] = "iknow"; //Mysql's database

what should i put into host because im using different server for the database im not having the database on the same server i get this error

BrainCMS Configuration Error:
I was unable to connect to the provided MySQL server. Please ask the administrator to review the error message log for details.
 

gochad

Lacrim
Feb 9, 2019
122
20
You put in the IP address of the server that has MySQL running on it.
i did i got this error now
Not Found
The requested URL /index was not found on this server. it says this in the console
and im running braincms on linux
GET 404 (Not Found)
Navigated to
 

gochad

Lacrim
Feb 9, 2019
122
20
You do not have mod_rewrite setup and/or you do not have the rewrite rules in place. What is the contents of the .htaccess file?
RewriteEngine On

RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteRule ^news/([a-zA-Z0-9_-]+)(|/)$ index.php?url=news&id=$1
RewriteRule ^home/([a-zA-Z0-9_-]+)(|/)$ index.php?url=home&user=$1
RewriteRule ^settings2fa/([a-zA-Z0-9_-]+)(|/)$ index.php?url=settings2fa&step=$1
RewriteRule ^swf/habbo-imaging/badge/([a-zA-Z0-9_-]+)(|/)$ swf/habbo-imaging/badge.php?badge=$1
RewriteRule ^register/([a-zA-Z0-9_-]+)(|/)$ index.php?url=register&userref=$1
RewriteRule ^newpassword/([a-zA-Z0-9_-]+)(|/)$ index.php?url=newpassword&key=$1
 

Ecko

23:37 [autobots] -!- eckostylez [[email protected]]
Nov 25, 2012
1,398
962
Did you install the rewrite apache extension?
He wouldn't get a 404 if mod_rewrite was not installed.

You are missing rewrite conditions. You coud try, but not guaranteed to work:
Code:
RewriteEngine On

RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^news/([a-zA-Z0-9_-]+)(|/)$ index.php?url=news&id=$1
RewriteRule ^home/([a-zA-Z0-9_-]+)(|/)$ index.php?url=home&user=$1
RewriteRule ^settings2fa/([a-zA-Z0-9_-]+)(|/)$ index.php?url=settings2fa&step=$1
RewriteRule ^swf/habbo-imaging/badge/([a-zA-Z0-9_-]+)(|/)$ swf/habbo-imaging/badge.php?badge=$1
RewriteRule ^register/([a-zA-Z0-9_-]+)(|/)$ index.php?url=register&userref=$1
RewriteRule ^newpassword/([a-zA-Z0-9_-]+)(|/)$ index.php?url=newpassword&key=$1[code]
 

gochad

Lacrim
Feb 9, 2019
122
20
He wouldn't get a 404 if mod_rewrite was not installed.

You are missing rewrite conditions. You coud try, but not guaranteed to work:
Code:
RewriteEngine On

RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^news/([a-zA-Z0-9_-]+)(|/)$ index.php?url=news&id=$1
RewriteRule ^home/([a-zA-Z0-9_-]+)(|/)$ index.php?url=home&user=$1
RewriteRule ^settings2fa/([a-zA-Z0-9_-]+)(|/)$ index.php?url=settings2fa&step=$1
RewriteRule ^swf/habbo-imaging/badge/([a-zA-Z0-9_-]+)(|/)$ swf/habbo-imaging/badge.php?badge=$1
RewriteRule ^register/([a-zA-Z0-9_-]+)(|/)$ index.php?url=register&userref=$1
RewriteRule ^newpassword/([a-zA-Z0-9_-]+)(|/)$ index.php?url=newpassword&key=$1[code]
i replaced the whole htaccess file into the code u sent me but still doesent work
Post automatically merged:

did someone figure something out
 
Last edited:

Users who are viewing this thread

Top