0% found this document useful (0 votes)
21 views3 pages

Tutor

Uploaded by

huskyutube1990
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views3 pages

Tutor

Uploaded by

huskyutube1990
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

=========== install vm tools ====================

apt-get install open-vm-tools-desktop

=========== phpmyadmin msg string error ====================

apt-get install libapache2-mod-php7.0

apt-get install php7.0-mbstring

and then

sudo service apache2 restart.

============ unknow path ./configure ====================

apt-get install gcc

============ fatal error map-server when compile ========

apt-get install g++

============ MYSQL cant connect PHPMYADMIN =============

1. Connect to mysql
sudo mysql --user=root mysql

2. Create a user for phpMyAdmin


Run the following commands (replacing some_pass by the desired password):

CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED BY 'some_pass';


GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

If your phpMyAdmin is connecting to localhost, this should be enough.

3. Optional: allow remote connections


Remember: allow a remote user to have all privileges is a security concern.

With this in mind, if you want this user to have the same privileges during remote
connections, additionally run (replacing some_pass by the password used in Step
#2):

CREATE USER 'phpmyadmin'@'%' IDENTIFIED BY 'some_pass';


GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

4. Update phpMyAdmin
Using sudo, edit /etc/dbconfig-common/phpmyadmin.conf file updating user/password
values in the following sections (replacing some_pass by the password used in Step
#2):

# dbc_dbuser: database user


# the name of the user who we will use to connect to the database.
dbc_dbuser='phpmyadmin'

# dbc_dbpass: database user password


# the password to use with the above username when connecting
# to a database, if one is required
dbc_dbpass='some_pass'

5. Cannot login without pass


This $cfg['Servers'][$i]['AllowNoPassword'] = TRUE; should be added twice in
/etc/phpmyadmin/config.inc.php

if (!empty($dbname)) {
// other configuration options
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
// it should be placed before the following line
$i++;
}

// other configuration options


$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

// ====================================================
error reg date solution :

Critical MySQL error in Installer/Updater: Invalid default value for 'reg_date'

go to flux folder /data/schema/logindb/cp_createlog


*The easy fix would be to replace all our 0000-00-00 with other values (either
1970-01-01 or

// ---------------seting time zone----------------

# mv /etc/localtime /etc/localtime.bak
# ln -s /usr/share/zoneinfo/Asia/Jakarta /etc/localtime

// ======flux cp =============
i see.. try this..

1. login by root via ssh. delete the whole html folder.

2. logout root. login as non-root user (user which u use to run rA). extract back
FluxCP-master.zip

3. rename the FluxCP-master folder to html

4. logout non root user. login back as root via SSH.


5. Execute this command.

chown -R 33:33 /var/www/html/data/logs


chown -R 33:33 /var/www/html/data/itemshop
chown -R 33:33 /var/www/html/data/tmp

6. refresh ur browser. see either it works or not.

// ======phpmyadmin not found url ============


Have you tried to:

# sudo -H gedit /etc/apache2/apache2.conf


Then add the following line to the end of the file:

# Include /etc/phpmyadmin/apache.conf
Then restart apache
# service apache2 restart

You might also like