ELS - Easy Linux Security script

Set extension dir to /usr/local/lib/php into /usr/local/lib/php.ini if you want to use APC.
 
So disable it into /usr/local/lib/php.ini. What shows: mytop ?

[root@xxx ~]# mytop
Can't locate Term/ReadKey.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/bin/mytop line 165.
 
After

digi, do:
Code:
cpan
install Term::ReadKey

[root@xxx ~]# mytop
Cannot connect to MySQL server. Please check the:

* database you specified "mysql" (default is "test")
* username you specified "root" (default is "root")
* password you specified "" (default is "")
* hostname you specified "localhost" (default is "localhost")
* port you specified "3306" (default is 3306)
* socket you specified "" (default is "")

The options my be specified on the command-line or in a ~/.mytop
config file. See the manual (perldoc mytop) for details.

Here's the exact error from DBI. It might help you debug:

Access denied for user 'root'@'localhost' (using password: NO)
 
Now edit /root/.mytop and place "user=da_admin" and "password=da_admin_password" on the 2nd line.
 
Now edit /root/.mytop and place "user=da_admin" and "password=da_admin_password" on the 2nd line.

can you post the content of ./mytop, because there is no second line....
Only data in ./mytop is // db=mysql //

Thanks
 
Do this:
Code:
echo "user=da_admin" > /root/.mytop
PWD=`grep "^passwd=" /usr/local/directadmin/conf/mysql.conf | cut -d= -f2`
echo pass=$PWD >> /root/.mytop
 
Last edited:
Do this:
Code:
echo "user=da_admin" > /root/.mytop
PWD=`grep "^passwd=" /usr/local/directadmin/conf/mysql.conf | cut -d= -f2`
echo password=$PWD > /root/.mytop

when I exactly copy this i've still the same last error
 
What error do you get now? It should be different.



[root@xxx ~]# mytop
Cannot connect to MySQL server. Please check the:

* database you specified "test" (default is "test")
* username you specified "root" (default is "root")
* password you specified "" (default is "")
* hostname you specified "localhost" (default is "localhost")
* port you specified "3306" (default is 3306)
* socket you specified "" (default is "")

The options my be specified on the command-line or in a ~/.mytop
config file. See the manual (perldoc mytop) for details.

Here's the exact error from DBI. It might help you debug:

Access denied for user 'root'@'localhost' (using password: NO)
 
Fixed. You just needed to run my commands, but you've posted it to the file :)
 
Back
Top