ELS - Easy Linux Security script

MySQL optimizer

Hi smtalk,

Thanks for your script :)
I have at little problem:
[root@server ~]# els --optimizemysqlconf

grep: /etc/my.cnf: No such file or directory
grep: /etc/my.cnf: No such file or directory
This feature can secure and optimize your MySQL configuration.
Proceed? (y/n): y
Checking MySQL version. This may take a few seconds...
MySQL was not detected.
Please ensure the MySQL-server RPM package is installed.
[root@server ~]# locate my.cnf
[root@server ~]#

It seems like I dont have a my.cnf and I did install MySQL using RPM's.

I am also using JTbox for upgrading phpmyadmin and webmail.
Maybe you could add this to your package. I know its easy to upgrade yourself, but I am lazy ;)
 
I'm still geting the suhosin problem on Centos4.4

This feature can optimize and repair all the MySQL database tables.
Proceed? (y/n): n
Skipping MySQL database tables optimization.

PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/suhosin/suhosin.so' - /usr/local/lib/php/suhosin/suhosin.so: cannot open shared o
bject file: No such file or directory in Unknown on line 0

./els.sh --suhosin
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/lib/php/suhosin/suhosin.so' - /usr/local/lib/php/suhosin/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0

suhosin is up to date [ Version: 0.9.18 ]
 
have you done a search to make sure that suhosin.so is in the directory that it thinks it's in?

And is the path that is specified in php.ini the correct one? I know I had to fully qualify my path because it didn't install it in my defined "extension_dir" location.

One question on this though, how can I tell if it's installed and working? I don't seem to be able to find suhosin in PHP info.
 
jw00dy, it should be in your phpinfo, can I take a look at your server?
 
Never mind I got it sorted. It was pre-pending the path to my extension_dir which was not correct.

I ended up just creating a symlink from the real one to my extension dir.

Also, just FYI, in your script it says:
ionCube Loaders are installed. APC is not compatable
with ionCube. Uninstall ioncube and try again to install APC.
I already use APC, and I have Ioncube installed and working. So unless their is some problem I'm not aware of, this is not true.

GREAT script btw. Very handy.
 
Sheesh, one more thing.

Has anyone successfully installed ImageMagick with this script? For some reason I'm getting a lot of different errors on install. I'll have to clean up the install and try it again so I can tell you what the errors are.
 
Hi smtalk,

Thanks for your script :)
I have at little problem:
[root@server ~]# els --optimizemysqlconf

grep: /etc/my.cnf: No such file or directory
grep: /etc/my.cnf: No such file or directory
This feature can secure and optimize your MySQL configuration.
Proceed? (y/n): y
Checking MySQL version. This may take a few seconds...
MySQL was not detected.
Please ensure the MySQL-server RPM package is installed.
[root@server ~]# locate my.cnf
[root@server ~]#

It seems like I dont have a my.cnf and I did install MySQL using RPM's.

I am also using JTbox for upgrading phpmyadmin and webmail.
Maybe you could add this to your package. I know its easy to upgrade yourself, but I am lazy ;)

Code:
# echo > /etc/my.cnf
Then try it again.
 
Sheesh, one more thing.

Has anyone successfully installed ImageMagick with this script? For some reason I'm getting a lot of different errors on install. I'll have to clean up the install and try it again so I can tell you what the errors are.

There are no known problems with ImageMagick.
 
A new version of ImageMagick has been released yesterday, I've just updated it in ELS, maybe now you will have no problems with it.
 
have you done a search to make sure that suhosin.so is in the directory that it thinks it's in?

And is the path that is specified in php.ini the correct one? I know I had to fully qualify my path because it didn't install it in my defined "extension_dir" location.

One question on this though, how can I tell if it's installed and working? I don't seem to be able to find suhosin in PHP info.

I have done a search and the system doesn't see suhosin. The path I put in is the one suggested here for Centos4.4. There is a suhosin dir in /usr/local/lib/php/ , but not suhosin.so
 
rldev, please post the output of:
Code:
# grep "extension_dir =" /usr/local/lib/php.ini
# ls -la /usr/local/lib/php/suhosin
 
extension_dir = "/usr/local/lib/php/"

/usr/local/lib/php/suhosin

is empty.
 
That's why you have this problem... Try this:
Code:
# cd /usr/local/src
# wget http://www.servermonkeys.com/projects/els/suhosin/suhosin-0.9.18.tgz
# tar xzf suhosin-0.9.18.tgz
# cd suhosin*
# /usr/local/bin/phpize
# ./configure
# make
# mv --force ./modules/suhosin.so /usr/local/lib/php/suhosin/suhosin.so
# service httpd restart

Now it should work.
 
Last edited:
./configure: line 2906: php-config: command not found
configure: error: Cannot find php-config. Please use --with-php-config=PATH
 
Try
Code:
./configure --with-php-config=/usr/local/bin/php-config
instead of
Code:
./configure
 
SM you are the man. I will make a donation for this great script. I just wish I had an answer for els.sh --vps does not work:)

Also how about adding pspell since that can he a headache.

Thanks again.
 
Back
Top