![]() |
|
Need help with LC-CMS 4.0.1 - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Website Scripting & Security (https://lckb.dev/forum/forumdisplay.php?fid=197) +---- Forum: LastChaos - CMS (https://lckb.dev/forum/forumdisplay.php?fid=182) +----- Forum: ToXiC Support (https://lckb.dev/forum/forumdisplay.php?fid=206) +----- Thread: Need help with LC-CMS 4.0.1 (/showthread.php?tid=4789) |
- Jack41 - 07-25-2021 Hello, I have this screen and I don't understand : /monthly_2021_07/lc-cms01.png.2f1ce8f5560081e08ff4070177fcf266.png" /> To configure my server on Centos 7, I made : To understand, I used : 2 2 // Go to root sudo -i // Update OS yum update -y // Firewalld for later - Will need more rules yum install firewalld -y systemctl start firewalld systemctl enable firewalld firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https firewall-cmd --reload systemctl stop firewalld // Set Timezone timedatectl set-timezone Europe/Paris // Installation Time Server yum install ntp -y systemctl start ntpd systemctl enable ntpd // Installation Apache2 yum install httpd -y systemctl start httpd systemctl enable httpd // Test Apache2 on a browser http://your_server_ip // VirtualHost - Need to change 'example.com' by your website mkdir -p /var/www/example.com/html mkdir -p /var/www/example.com/log chown -R $USER:$USER /var/www/example.com/html chmod -R 777 /var/www Upload CMS to /var/www/example.com/html chmod -R 755 /var/www mkdir /etc/httpd/sites-available /etc/httpd/sites-enabled vi /etc/httpd/conf/httpd.conf Add this line at the bottom : IncludeOptional sites-enabled/*.conf vi /etc/httpd/sites-available/example.com.conf Add this : <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/www/example.com/html ErrorLog /var/www/example.com/log/error.log CustomLog /var/www/example.com/log/requests.log combined </VirtualHost> ln -s /etc/httpd/sites-available/example.com.conf /etc/httpd/sites-enabled/example.com.conf // Right on VirtualHost setsebool -P httpd_unified 1 ls -dZ /var/www/example.com/log/ semanage fcontext -a -t httpd_log_t "/var/www/example.com/log(/.*)?" restorecon -R -v /var/www/example.com/log ls -dZ /var/www/example.com/log/ // Test VirtualHost systemctl restart httpd ls -lZ /var/www/example.com/log // Installation mariadb yum install mariadb mariadb-server -y systemctl start mariadb systemctl enable mariadb mysql_secure_installation Set Password to root, etc, etc... mysql -u root -p set global max_allowed_packet=100000000; CREATE USER 'USER' IDENTIFIED BY 'PASSWORD'; CREATE database db_db; CREATE database db_data; CREATE database db_db_auth; CREATE database db_web; GRANT ALL ON db_db.* TO 'USER'@'%' IDENTIFIED BY 'PASSWORD'; GRANT ALL ON db_data.* TO 'USER'@'%' IDENTIFIED BY 'PASSWORD'; GRANT ALL ON db_db_auth.* TO 'USER'@'%' IDENTIFIED BY 'PASSWORD'; GRANT ALL ON db_web.* TO 'USER'@'%' IDENTIFIED BY 'PASSWORD'; flush privileges; quit // Import database with Navicat : data, db, db_aut and web // Install PHP yum install php php-mysql -y // Restart Apache2 systemctl restart httpd // Config of file '/var/www/example.com/html/configure/configure.php' : <?php // Your Time Zone // List of Supported Timezones // 2 date_default_timezone_set('Europe/Paris'); // Auth Version (EP1,EP2,EP3,EP4) $dbhash["auth_version"] = 'EP4'; // Mysql IP $dbhash["cms_lc_host"] = 'X.X.X.X'; // dns or ip // I tried with 127.0.0.1 and the public IP address too // Mysql Login $dbhash["cms_lc_username"] = 'USER'; // Mysql username $dbhash["cms_lc_password"] = 'PASSWORD'; // Mysql password // The user and password created // Mysql Databases $dbhash["cms_lc_auth"] = 'db_db_auth'; // auth database $dbhash["cms_lc_db"] = 'db_db'; // db database $dbhash["cms_lc_data"] = 'db_data'; // data database $dbhash["cms_lc_site"] = 'db_web'; // Website Database Name // t_users Database $dbhash["cms_lc_authORdb"] = 'db_db_auth'; //GM Guild Name (removes from ranks) $gm_guild = 'XXXXX'; // Status page settings $ptime = "3"; // Timeout limit $Lip = "X.X.X.X"; // Login IP $Lport = "XXXX"; // Login Port $Bip = "X.X.X.X"; // Billing IP $Bport = "XXXX"; // Billing Port $G1ip = "X.X.X.X"; // GS1 IP $G1port = "XXXX"; //GS1 Port $G2ip = "X.X.X.X"; // GS2 IP $G2port = "XXXX"; //GS2 Port $G3ip = "X.X.X.X"; // GS3 IP $G3port = "XXXX"; //GS3 Port $G4ip = "X.X.X.X"; // GS4 IP $G4port = "XXXX"; //GS4 Port $G5ip = "X.X.X.X"; // GS5 IP $G5port = "XXXX"; //GS5 Port $G6ip = "X.X.X.X"; // GS6 IP $G6port = "XXXX"; //GS6 Port // FOR EVENTS ADDS % CASH // Say you run a cash event so when someone donates you give them 30% more cash you put 30 in below $BonusCash = "30"; /* SMTP Server PHP Support set to yes if your php supports smtp. Set to no if you get smtp error when registering. */ $Allow_Email_sending = 'no'; // no or yes // SMTP Settings to send email messages $SMTP_Host = "smtp.gmail.com"; $SMTP_Username = ""; $SMTP_Password = ""; // IMPORTANT : // Never share this salt with anyone! //(you should change this to match your server if running ep2!!) $config["Salt"] = 'phoohie1yaihooyaequae7PuiWoeNgahjieth3ru3yeeghaepahb7aeYaipe2we6zii6mai6uweig8siasheinoungeoyeiLohShi2xoh2xi8ooxee9ahpiehahc9Phe'; ?> So, to test the connectivity, I used Telnet : telnet X.X.X.X 3306 It's OK I connected from another server Linux (wich has the package mysql to use the commandline) : mysql -h X.X.X.X -u USER -p SHOW DATABASES; I saw my 4 databases, I created. Someone have an idea ? Thank you. - rondo157 - 07-27-2021 so easy. Create a new user mysql with full permissions. - Jack41 - 07-27-2021 I tried this : mysql -u root -p #Password of root CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost'; flush privileges; quit I have the same problem even after a reboot. |