vi /etc/ssh/sshd_config
--
..
PermitRootLogin no
..
2. disable root login in phpmyadmin
vi config.inc.php
--
..
$cfg['Servers'][$i]['AllowRoot'] = FALSE;
..
vi /etc/ssh/sshd_config
--
..
PermitRootLogin no
..
vi config.inc.php
--
..
$cfg['Servers'][$i]['AllowRoot'] = FALSE;
..
pacman -S lighttpd php phpmyadmin mysql
/etc/rc.d/mysqld start
vi /etc/my.cnf
--
..
[client]
default-character-set = utf8
..
[mysqld]
default-character-set = utf8
..
groupadd http
adduser http
chown -R http /var/log/lighttpd
server.modules = (
..
"mod_fastcgi",
..
..
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/var/run/lighttpd/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi"
)
)
)
..
cgi.fix_pathinfo=1
..
extension=mysql.so
..
vi /srv/http/phpMyAdmin/config.inc.php
--
<?php
/* Servers configuration */
$i = 0;
/* First server */
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['verbose'] = 'name_of_server';
/* End of servers configuration */
?>
/etc/rc.d/lighttpd start
sudo vi /etc/mysql/my.cnf
--
[client]
default-character-set = utf8
<Directory "/usr/share/phpmyadmin">
Order Deny,Allow
# Deny from all
Allow from all # If you want to connect it from anywhere
</Directory>
..
..
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'RANDOMTEXT'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';